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: Put scope blocks on a diet


On Nov 27, 2007, "Richard Guenther" <richard.guenther@gmail.com> wrote:

> I agree here.  I am currently evaluating what just reverting the following ...

>> 2. this patch delays the garbage-collection of some declarations after
>> inlining, 

> ... part of the patch does to the memory usage regression.

If you're compiling with -g, it won't do anything at all, for the
!cfun->after_inlining is never even reached when debug_info_level >=
DINFO_LEVEL_NORMAL.

Also, please don't call it a memory usage regression.  It's offensive.
If a patch unintentionally dropped entire basic blocks went in and
remained unfixed for months, would the fix that stops them from being
dropped be regarded as a regression in memory usage?  This is
ridiculous!

Let's please revert the patch that introduced the bug in the first
place.  Then we can make an assessment of how much the memory
optimization patch actually gets us without anyone being confused by
the distortions caused by the bug in the patch.

> This part doesn't fix a regression

I don't understand how you got this mistaken impression.  Without this
part of the patch, or something equivalent, the regression in the
property that -g and -g0 emit the same code, introduced by Honza's
initial patch, remains.  This fundamental property held before his
patch, and it stopped holding afterwards.

Do we consciously want to break this for GCC 4.3?

Also, considering how much scope information that patch causes us to
unintentionally discard, do we consciously want to introduce such a
major debug information regression in GCC 4.3, even with -O0?

-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member         http://www.fsfla.org/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


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