This is the mail archive of the gcc-patches@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]

Re: [c++ patch] avoid inlining twice


Jan Hubicka wrote:

Jan Hubicka wrote:



Hi,
I've sent this few times already, but this time I really need it.
Inlining is currently performced twice - once in optimize_function in
C++ frontend, later in cgraph_optimize_function in the backend.  This
kills the first.  It is needed for my cgraph code changes where inlining
must happent after original body has been saved.

Bootstrapped/regtested i686-pc-gnu-linux, OK?




What if !flag_unit_at_a_time?



Even in non-unit-at-a-time, the cgraphunit will do the inlining, there
is no difference from frontend side anymore.


The patch is OK, then.

--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com


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