https://sourceware.org/bugzilla/show_bug.cgi?id=16746

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> ---
(In reply to Richard Guenther from comment #2)
> Hmm, but that breaks the case where the symbol is still referenced from the
> linker plugin provided input
> 
> extern void foobar (void);
> int
> main (int argc, char **argv)
> {
>   if (!__builtin_constant_p (argc))
>     foobar ();
>   return 0;
> }
> 
> add void foobar () {} to t2.c to make the link succeed.

Which of course may simply mean that the path through lang_add_input_file
misses
to emit warnings at all.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to