This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/78562] Wrong warning for built-in functions with -flto
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 28 Nov 2016 14:26:10 +0000
- Subject: [Bug lto/78562] Wrong warning for built-in functions with -flto
- Auto-submitted: auto-generated
- References: <bug-78562-4@http.gcc.gnu.org/bugzilla/>
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)?