public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PING^4] Fix -fvar-tracking problems on big-endian systems
@ 2007-12-14  8:13 Richard Sandiford
  2007-12-14 11:20 ` Eric Botcazou
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Sandiford @ 2007-12-14  8:13 UTC (permalink / raw)
  To: gcc-patches

(One last try!)

http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00835.html
Fix various problems with -fvar-tracking on big-endian systems.

http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00836.html
Follow-on patch to fix problems with pass-by-reference parameters
(affects both big- and little-endian).

Richard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PING^4] Fix -fvar-tracking problems on big-endian systems
  2007-12-14  8:13 [PING^4] Fix -fvar-tracking problems on big-endian systems Richard Sandiford
@ 2007-12-14 11:20 ` Eric Botcazou
  2007-12-14 12:42   ` Richard Sandiford
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Botcazou @ 2007-12-14 11:20 UTC (permalink / raw)
  To: Richard Sandiford; +Cc: gcc-patches

> http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00835.html
> Fix various problems with -fvar-tracking on big-endian systems.
>
> http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00836.html
> Follow-on patch to fix problems with pass-by-reference parameters
> (affects both big- and little-endian).

I'm not sure we want this for 4.3, these are not trivial patches and the 
benefit doesn't look very high to me.

-- 
Eric Botcazou

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PING^4] Fix -fvar-tracking problems on big-endian systems
  2007-12-14 11:20 ` Eric Botcazou
@ 2007-12-14 12:42   ` Richard Sandiford
  2007-12-14 12:45     ` Jakub Jelinek
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Sandiford @ 2007-12-14 12:42 UTC (permalink / raw)
  To: Eric Botcazou; +Cc: gcc-patches

Eric Botcazou <ebotcazou@libertysurf.fr> writes:
>> http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00835.html
>> Fix various problems with -fvar-tracking on big-endian systems.
>>
>> http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00836.html
>> Follow-on patch to fix problems with pass-by-reference parameters
>> (affects both big- and little-endian).
>
> I'm not sure we want this for 4.3, these are not trivial patches and the 
> benefit doesn't look very high to me.

I think the benefit could be quite marked for big-endian systems
for -O2 -g (which is after all our library default).  The problem
is that the effect on -O2 -g itself is hard to quantify; there's no
off-the-shelf way of measuring it.  That's why I had to resort to
the two main measures I used:

  - GDB testing with an explicit -fvar-tracking.  This showed what
    I thought were pretty significant (though perhaps not massive)
    improvements

  - A comparison of assembly language output at -O2 -g, which showed
    many cases where bugs in the var-tracking output (and thus
    incorrect or misleading debug information).

This is also something that might have regressed from 4.2 in some cases,
because my 2007-10-12 patch created lowparts in cases where 4.2 didn't.
(And we needed to do that to avoid a bug which I think would otherwise
still exist after your patch.  I still believe that creating lowparts
in those situations is the right thing to do, but the problem is that
var-tracking generally mishandles lowparts on big-endian systems.)

I would understand your concern if the patch affected code generation,
but the patch only really touches code related to var-tracking on
big-endian systems, which is the problem area.

I wanted to push back a little because I think the benefit is higher
than you made it sound.  If you say no again, I'll accept it.

Richard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PING^4] Fix -fvar-tracking problems on big-endian systems
  2007-12-14 12:42   ` Richard Sandiford
@ 2007-12-14 12:45     ` Jakub Jelinek
  2007-12-26 18:49       ` Mark Mitchell
  0 siblings, 1 reply; 7+ messages in thread
From: Jakub Jelinek @ 2007-12-14 12:45 UTC (permalink / raw)
  To: Eric Botcazou, gcc-patches, rsandifo

On Fri, Dec 14, 2007 at 12:18:19PM +0000, Richard Sandiford wrote:
> I wanted to push back a little because I think the benefit is higher
> than you made it sound.  If you say no again, I'll accept it.

I agree with Richard here that the benefit of this is quite big
and it would be good to have this in 4.3.

	Jakub

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PING^4] Fix -fvar-tracking problems on big-endian systems
  2007-12-14 12:45     ` Jakub Jelinek
@ 2007-12-26 18:49       ` Mark Mitchell
  2007-12-27 12:53         ` Richard Sandiford
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Mitchell @ 2007-12-26 18:49 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Eric Botcazou, gcc-patches, rsandifo

Jakub Jelinek wrote:
> On Fri, Dec 14, 2007 at 12:18:19PM +0000, Richard Sandiford wrote:
>> I wanted to push back a little because I think the benefit is higher
>> than you made it sound.  If you say no again, I'll accept it.
> 
> I agree with Richard here that the benefit of this is quite big
> and it would be good to have this in 4.3.

Eric, would you be willing to review this from a technical perspective,
imagining that it will go into 4.4?  Then, report back with whatever
issues you might find and let us know if you're still concerned about it
going into 4.3.  If so, we can make a final 4.3/4.4 decision at that
time, but at least we'll have the patch reviewed for 4.4.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PING^4] Fix -fvar-tracking problems on big-endian systems
  2007-12-26 18:49       ` Mark Mitchell
@ 2007-12-27 12:53         ` Richard Sandiford
  2007-12-27 23:07           ` Mark Mitchell
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Sandiford @ 2007-12-27 12:53 UTC (permalink / raw)
  To: Mark Mitchell; +Cc: Jakub Jelinek, Eric Botcazou, gcc-patches

Mark Mitchell <mark@codesourcery.com> writes:
> Jakub Jelinek wrote:
>> On Fri, Dec 14, 2007 at 12:18:19PM +0000, Richard Sandiford wrote:
>>> I wanted to push back a little because I think the benefit is higher
>>> than you made it sound.  If you say no again, I'll accept it.
>> 
>> I agree with Richard here that the benefit of this is quite big
>> and it would be good to have this in 4.3.
>
> Eric, would you be willing to review this from a technical perspective,
> imagining that it will go into 4.4?  Then, report back with whatever
> issues you might find and let us know if you're still concerned about it
> going into 4.3.  If so, we can make a final 4.3/4.4 decision at that
> time, but at least we'll have the patch reviewed for 4.4.

Thanks for the reply.  For the record, Eric reviewed (and approved
a revised version of) the patch after Jakub sent his message, but the
discussion went back to the original thread rather than this one.
Sorry for the confusion!

Richard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PING^4] Fix -fvar-tracking problems on big-endian systems
  2007-12-27 12:53         ` Richard Sandiford
@ 2007-12-27 23:07           ` Mark Mitchell
  0 siblings, 0 replies; 7+ messages in thread
From: Mark Mitchell @ 2007-12-27 23:07 UTC (permalink / raw)
  To: Mark Mitchell, Jakub Jelinek, Eric Botcazou, gcc-patches, rsandifo

Richard Sandiford wrote:

>> Eric, would you be willing to review this from a technical perspective,
>> imagining that it will go into 4.4?  Then, report back with whatever
>> issues you might find and let us know if you're still concerned about it
>> going into 4.3.  If so, we can make a final 4.3/4.4 decision at that
>> time, but at least we'll have the patch reviewed for 4.4.
> 
> Thanks for the reply.  For the record, Eric reviewed (and approved
> a revised version of) the patch after Jakub sent his message, but the
> discussion went back to the original thread rather than this one.
> Sorry for the confusion!

OK, very good.  (I was catching up on email backlog, and reading by
thread, so I guess that's why I thought this was still open.)

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-12-27 16:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-14  8:13 [PING^4] Fix -fvar-tracking problems on big-endian systems Richard Sandiford
2007-12-14 11:20 ` Eric Botcazou
2007-12-14 12:42   ` Richard Sandiford
2007-12-14 12:45     ` Jakub Jelinek
2007-12-26 18:49       ` Mark Mitchell
2007-12-27 12:53         ` Richard Sandiford
2007-12-27 23:07           ` Mark Mitchell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).