This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/59813] tail-call elimintation didn't fired with left-shift of char to cout


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]