This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/60235] Inlining fails with template specialization and -fPIC on Linux AMD64
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Feb 2014 12:37:05 +0000
- Subject: [Bug middle-end/60235] Inlining fails with template specialization and -fPIC on Linux AMD64
- Auto-submitted: auto-generated
- References: <bug-60235-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60235
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #2)
> The specialization is a regular function, not comdat, thus it is not
> appropriate to inline it at -O2 -fpic, only -O3 is inlining functions
> regardless to whether they could be interposed or not,
Wouldn't that be a wrong-code bug though?
> or for -O2 without
> -fpic because the symbol can't be interposed. Or use the inline keyword for
> the specialization.