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 tree-optimization/51680] [4.7 Regression] g++ 4.7 fails to inline trivial template stuff


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51680

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |hubicka at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #12 from Jan Hubicka <hubicka at gcc dot gnu.org> 2012-01-07 17:30:24 UTC ---
Well, on second thought, we already have logic for -Os and cold calls that
COMDAT functions are unlikely to be shared across compilation units. There is
nothing that prevents us from enabling this also for -O2.  Additionally Maxim's
code has thinko in it disabling itself for indirect calls in many cases.

Obviously this will still break when process_fun_at will be called more than
one in the unit. But that is for 4.8.

I am testing patch.


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