[Bug lto/78562] Wrong warning for built-in functions with -flto

2016-11-30 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78562 Georg-Johann Lay changed: What|Removed |Added Priority|P3 |P5 Status|NEW

[Bug lto/78562] Wrong warning for built-in functions with -flto

2016-11-30 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78562 --- Comment #7 from Georg-Johann Lay --- Author: gjl Date: Wed Nov 30 11:08:37 2016 New Revision: 243008 URL: https://gcc.gnu.org/viewcvs?rev=243008&root=gcc&view=rev Log: gcc/lto/ PR lto/78562 * lto-symtab.c (lto_symtab_merge_de

[Bug lto/78562] Wrong warning for built-in functions with -flto

2016-11-28 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78562 --- Comment #6 from 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 #5 from Georg-Johann Lay --- > Maybe it is an option to be less strict? I

[Bug lto/78562] Wrong warning for built-in functions with -flto

2016-11-28 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78562 --- Comment #5 from Georg-Johann Lay --- Maybe it is an option to be less strict? In the test case, both function name and asm name (libname) are in the namespace of the implementation: both start with 2 underscores. The function name even star

[Bug lto/78562] Wrong warning for built-in functions with -flto

2016-11-28 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78562 --- Comment #4 from Georg-Johann Lay --- (In reply to rguent...@suse.de from comment #3) > Yes, using aliases would be a good workaround. hmmm, for libgcc functions written in asm this is easy enough, like .global func1_alias .global func1 fun

[Bug lto/78562] Wrong warning for built-in functions with -flto

2016-11-28 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78562 --- Comment #3 from 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 --- > Thanks for looking into it. > > IIUC it's

[Bug lto/78562] Wrong warning for built-in functions with -flto

2016-11-28 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78562 --- Comment #2 from Georg-Johann Lay --- 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

[Bug lto/78562] Wrong warning for built-in functions with -flto

2016-11-28 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78562 Richard Biener changed: What|Removed |Added CC||hubicka at gcc dot gnu.org,

[Bug lto/78562] Wrong warning for built-in functions with -flto

2016-11-28 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78562 Georg-Johann Lay changed: What|Removed |Added Keywords||diagnostic Target|