[Bug middle-end/60235] Inlining fails with template specialization and -fPIC on Linux AMD64
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 17 08:15:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60235
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org,
| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
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, or for -O2 without -fpic
because the symbol can't be interposed. Or use the inline keyword for the
specialization.
More information about the Gcc-bugs
mailing list