aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-06-17 07:53:19 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-06-17 07:53:19 -0700
commit00401e65be3c141e56f0e4dfd3181867fed447ea (patch)
treee7de0b16fd96a7e227fa6f95c8ddc99b76776ad1
parent22aa1d51198689f5f3f01a874b405bf4449cbfb0 (diff)
downloadgdb-00401e65be3c141e56f0e4dfd3181867fed447ea.zip
gdb-00401e65be3c141e56f0e4dfd3181867fed447ea.tar.gz
gdb-00401e65be3c141e56f0e4dfd3181867fed447ea.tar.bz2
ld: Suppress warning for unsupported attribute from older GCC
Suppress warning for unsupported attribute from older GCC: .../ld/testsuite/ld-elf/pr25754-1a.c:9: warning: 'noclone' attribute directive ignored .../ld/testsuite/ld-elf/pr25754-1a.c:9: warning: 'noclone' attribute directive ignored ERROR: .../ld/testsuite/ld-elf/pr25754-1a.c: compilation failed UNRESOLVED: Build pr25754-1a ( ) * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Append "-w" to cflags.
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/testsuite/ld-elf/linux-x86.exp3
2 files changed, 8 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 68b463e..45cf948 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,10 @@
2020-06-17 H.J. Lu <hongjiu.lu@intel.com>
+ * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Append "-w"
+ to cflags.
+
+2020-06-17 H.J. Lu <hongjiu.lu@intel.com>
+
* testsuite/ld-elf/linux-x86.exp: Require GCC 5 for Build
pr25749-1b (-pie -fPIE).
diff --git a/ld/testsuite/ld-elf/linux-x86.exp b/ld/testsuite/ld-elf/linux-x86.exp
index 7a311ae..8d7546a 100644
--- a/ld/testsuite/ld-elf/linux-x86.exp
+++ b/ld/testsuite/ld-elf/linux-x86.exp
@@ -124,6 +124,9 @@ proc check_pr25749a {testname srcfilea srcfileb cflags ldflags lderror} {
}
}
+ # Suppress warning for unsupported attribute from older GCC.
+ append cflags " -w"
+
exec cp $srcdir/$subdir/$srcfilea $srcfilea
exec chmod +w $srcfilea
set pr25749_bin "$objcopy -B $output_arch -I binary -O $output_target $srcfilea tmpdir/pr25749-bin.o"