mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
db7129469b
bfd/ PR ld/16746 * linker.c (_bfd_generic_link_add_one_symbol): Don't issue a warning for references in LTO IR to warning symbols. ld/testsuite/ PR ld/16746 * ld-plugin/lto.exp: Add 4 tests for PR ld/16746. * ld-plugin/pr16746a.c: New file. * ld-plugin/pr16746b.c: Likewise. * ld-plugin/pr16746c.c: Likewise. * ld-plugin/pr16746d.c: Likewise.
9 lines
126 B
C
9 lines
126 B
C
extern void foobar (void);
|
|
int
|
|
main (int argc, char **argv)
|
|
{
|
|
if (__builtin_constant_p (argc))
|
|
foobar ();
|
|
return 0;
|
|
}
|