summaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2022-07-22 11:35:00 -0700
committerH.J. Lu <hjl.tools@gmail.com>2022-07-25 09:59:47 -0700
commite4146092c3f147b8c395febc771edd7de23f724d (patch)
tree3e239f6abac8d6144b1844eb982c803799598657 /ld
parentb669667d0749ccf8d70792bb086f41904157e54d (diff)
ld: Compile 2 CTF tests with -O2
When GCC 12 is used to build binutils with -O0, the following 2 tests failed: FAIL: Conflicted data syms, partially indexed, stripped, with variables FAIL: Conflicted data syms, partially indexed, stripped Compile 2 tests with -O2 to avoid test failures. PR ld/29378 * testsuite/ld-ctf/data-func-conflicted-vars.d: Compile with -O2. * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ld-ctf/data-func-conflicted-vars.d1
-rw-r--r--ld/testsuite/ld-ctf/data-func-conflicted.d1
2 files changed, 2 insertions, 0 deletions
diff --git a/ld/testsuite/ld-ctf/data-func-conflicted-vars.d b/ld/testsuite/ld-ctf/data-func-conflicted-vars.d
index b278dfe5d8..4e570c6a61 100644
--- a/ld/testsuite/ld-ctf/data-func-conflicted-vars.d
+++ b/ld/testsuite/ld-ctf/data-func-conflicted-vars.d
@@ -1,4 +1,5 @@
#as:
+#cc: -O2
#source: data-func-1.c
#source: data-func-2.c
#objdump: --ctf
diff --git a/ld/testsuite/ld-ctf/data-func-conflicted.d b/ld/testsuite/ld-ctf/data-func-conflicted.d
index 7a1b2d7223..b0db511a98 100644
--- a/ld/testsuite/ld-ctf/data-func-conflicted.d
+++ b/ld/testsuite/ld-ctf/data-func-conflicted.d
@@ -1,4 +1,5 @@
#as:
+#cc: -O2
#source: data-func-1.c
#source: data-func-2.c
#objdump: --ctf