[Bug lto/78562] Wrong warning for built-in functions with -flto
rguenther at suse dot de
gcc-bugzilla@gcc.gnu.org
Mon Nov 28 14:42:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78562
--- Comment #3 from rguenther at suse dot de <rguenther at suse dot de> ---
On Mon, 28 Nov 2016, gjl at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78562
>
> --- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
> Thanks for looking into it.
>
> IIUC it's a backend issue.
>
> config/avr/builtins.def sets library names for some built-ins, and some
> libnames are the same because the libgcc asm code is exactly the same, even if
> the used types on C level are different.
>
> So the fix for this one would be to use different asm names (pointing to the
> same code)?
Yes, using aliases would be a good workaround.
Richard.
More information about the Gcc-bugs
mailing list