This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/59813] tail-call elimintation didn't fired with left-shift of char to cout
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Jan 2014 00:13:22 +0000
- Subject: [Bug c++/59813] tail-call elimintation didn't fired with left-shift of char to cout
- Auto-submitted: auto-generated
- References: <bug-59813-4 at http dot gcc dot gnu dot org/bugzilla/>
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.