This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/51680] [4.7 Regression] g++ 4.7 fails to inline trivial template stuff
- From: "hubicka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 07 Jan 2012 17:30:24 +0000
- Subject: [Bug tree-optimization/51680] [4.7 Regression] g++ 4.7 fails to inline trivial template stuff
- Auto-submitted: auto-generated
- References: <bug-51680-4@http.gcc.gnu.org/bugzilla/>
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.