[Bug c++/59813] tail-call elimintation didn't fired with left-shift of char to cout
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 15 00:13:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59813
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-01-15
Ever confirmed|0 |1
Severity|major |normal
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The early inliner is inlining a function which contains a variable which maybe
escapes (address taken) which is causing the tail-call elimination not to
happen. There are a few ways of fixing this:
1) Changing the the early inlining heuristics so it will not inline functions
where local variables have their address taken.
2) Or have a tail-call optimize pass before early inlining.
More information about the Gcc-bugs
mailing list