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.
This commit is contained in:
parent
22aa1d5119
commit
00401e65be
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user