[Bug middle-end/60235] Inlining fails with template specialization and -fPIC on Linux AMD64

2014-02-17 Thread joker.eph at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60235 --- Comment #7 from Mehdi Amini --- Yeah I can declare it inline, indeed I already did, I was just considering it a workaround for a "missing compiler optimization" ;-)

[Bug middle-end/60235] Inlining fails with template specialization and -fPIC on Linux AMD64

2014-02-17 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60235 --- Comment #6 from Jakub Jelinek --- Clang doesn't care about lots of things. Anyway, why don't you make the specialization inline?

[Bug middle-end/60235] Inlining fails with template specialization and -fPIC on Linux AMD64

2014-02-17 Thread joker.eph at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60235 --- Comment #5 from Mehdi Amini --- (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

[Bug middle-end/60235] Inlining fails with template specialization and -fPIC on Linux AMD64

2014-02-17 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60235 --- Comment #4 from Jan Hubicka --- Even at -O3 we inline only functions that either can not be interposed (i.e. static or -fno-pic) or are known to be same everywhere (comdat and functions declared inlined). I was considering command line option

[Bug middle-end/60235] Inlining fails with template specialization and -fPIC on Linux AMD64

2014-02-17 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60235 --- Comment #3 from Richard Biener --- (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 wheth

[Bug middle-end/60235] Inlining fails with template specialization and -fPIC on Linux AMD64

2014-02-17 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60235 Jakub Jelinek changed: What|Removed |Added CC||hubicka at gcc dot gnu.org,

[Bug middle-end/60235] Inlining fails with template specialization and -fPIC on Linux AMD64

2014-02-16 Thread joker.eph at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60235 --- Comment #1 from Mehdi Amini --- Created attachment 32149 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32149&action=edit Test Case