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: [PR debug/41343] introduce debug expr temps


On Sep 30, 2009, Richard Guenther <richard.guenther@gmail.com> wrote:

> On Wed, Sep 30, 2009 at 9:25 AM, Alexandre Oliva <aoliva@redhat.com> wrote:
>> What's preventing it is the same code that prevents us from breaking
>> executable code. ÂSay, if we had:
>> 
>> Â<bb 2>
>> Â Âfoo = a;
>> Â Âa = 0
>> 
>> we wouldn't be allowed to move a = 0 before foo = a. ÂOptimizers
>> shouldn't ignore uses along the way, and although they might have to
>> disregard debug stmts when making decision, they ought to adjust them
>> just like they would should they make transformations that would affect
>> executable code.

> But they don't see the DEBUG_STMT uses because DEBUG_STMTs
> do not have virtual operands.

Uhh...  Maybe debug stmts should have VOPs, then...  I don't remember
having thought much about whether or not they should.  I ended up doing
without them, but from what you say I conclude it was a mistake.  Ugh.

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer


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