ld: Suppress warning for unsupported attribute from older GCC
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 17 Jun 2020 14:53:19 +0000 (07:53 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 17 Jun 2020 14:53:19 +0000 (07:53 -0700)
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.

ld/ChangeLog
ld/testsuite/ld-elf/linux-x86.exp

index 68b463e77d389ab6fb86b9a0426bc6b900542395..45cf9485d50223898d4d001db06bb67d89df2b83 100644 (file)
@@ -1,3 +1,8 @@
+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
index 7a311ae431f1febd346eb69ef6bf1c046bd33181..8d7546a88815a3a3fefb31ac8d9973a433493768 100644 (file)
@@ -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"
This page took 0.027474 seconds and 4 git commands to generate.