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 16:03:08 +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 #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
(In reply to rguenther@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
func1_alias:
func1:
;; asm-code
But how can I define an extra symbol for a libgcc function if that function is
written in C? E.g. __countlshi2 from libgcc/config/avr/lib2funcs.c.