diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-06-17 07:53:19 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-06-17 07:53:19 -0700 |
commit | 00401e65be3c141e56f0e4dfd3181867fed447ea (patch) | |
tree | e7de0b16fd96a7e227fa6f95c8ddc99b76776ad1 /ld/testsuite/ld-elf/linux-x86.exp | |
parent | 22aa1d51198689f5f3f01a874b405bf4449cbfb0 (diff) |
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.
Diffstat (limited to 'ld/testsuite/ld-elf/linux-x86.exp')
-rw-r--r-- | ld/testsuite/ld-elf/linux-x86.exp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/linux-x86.exp b/ld/testsuite/ld-elf/linux-x86.exp index 7a311ae431..8d7546a888 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" |