Re: [rs6000] Fix compare debug failure on AIX

2015-05-11 Thread Eric Botcazou
> I'm sorry that XCOFF debugging changes the generated code (only in the > sense of allocating a frame), but that is a system dependency. It's > been this way for over 20 years. I see no reason to produce worse > code at -O0 when not debugging simply to make testcases happier. You apparently rea

Re: [rs6000] Fix compare debug failure on AIX

2015-05-04 Thread Tristan Gingold
> On 04 May 2015, at 02:32, David Edelsohn wrote: > > On Sat, May 2, 2015 at 6:04 AM, Eric Botcazou wrote: >>> Why should GCC unnecessarily create stack frames to avoid >>> compare-debug testcase failures? >> >> I'm not sure I understand the question... compare-debug failures are failures >> (

Re: [rs6000] Fix compare debug failure on AIX

2015-05-04 Thread Richard Biener
On Mon, May 4, 2015 at 2:32 AM, David Edelsohn wrote: > On Sat, May 2, 2015 at 6:04 AM, Eric Botcazou wrote: >>> Why should GCC unnecessarily create stack frames to avoid >>> compare-debug testcase failures? >> >> I'm not sure I understand the question... compare-debug failures are failures >> (-

Re: [rs6000] Fix compare debug failure on AIX

2015-05-03 Thread David Edelsohn
On Sat, May 2, 2015 at 6:04 AM, Eric Botcazou wrote: >> Why should GCC unnecessarily create stack frames to avoid >> compare-debug testcase failures? > > I'm not sure I understand the question... compare-debug failures are failures > (-g is not supposed to change the generated code and this XCOFF-

Re: [rs6000] Fix compare debug failure on AIX

2015-05-02 Thread Eric Botcazou
> Why should GCC unnecessarily create stack frames to avoid > compare-debug testcase failures? I'm not sure I understand the question... compare-debug failures are failures (-g is not supposed to change the generated code and this XCOFF-specific bug was reported to us) so they need to be fixed.

Re: [rs6000] Fix compare debug failure on AIX

2015-05-01 Thread Alan Modra
On Fri, May 01, 2015 at 09:48:51AM -0400, David Edelsohn wrote: > On Thu, Apr 30, 2015 at 7:28 AM, Eric Botcazou wrote: > >> We might want to check if doing -Og and not just -O0. > > > > You're right, thanks, amended patch attached, same ChangeLog. > > Why should GCC unnecessarily create stack fr

Re: [rs6000] Fix compare debug failure on AIX

2015-05-01 Thread David Edelsohn
On Thu, Apr 30, 2015 at 7:28 AM, Eric Botcazou wrote: >> We might want to check if doing -Og and not just -O0. > > You're right, thanks, amended patch attached, same ChangeLog. Why should GCC unnecessarily create stack frames to avoid compare-debug testcase failures? - David

Re: [rs6000] Fix compare debug failure on AIX

2015-04-30 Thread Eric Botcazou
> We might want to check if doing -Og and not just -O0. You're right, thanks, amended patch attached, same ChangeLog. -- Eric BotcazouIndex: config/rs6000/rs6000.c === --- config/rs6000/rs6000.c (revision 222439) +++ config/rs6000/r

Re: [rs6000] Fix compare debug failure on AIX

2015-04-29 Thread pinskia
> On Apr 29, 2015, at 3:22 AM, Eric Botcazou wrote: > > You can easily get -fcompare-debug failures on AIX with small functions, in > fact you get the failure for the empty function: > > void foo (void) {} > > eric@polaris:~/build/gcc/powerpc-ibm-aix7.1> gcc/xgcc -Bgcc -S t.c -O - > fcompa

[rs6000] Fix compare debug failure on AIX

2015-04-29 Thread Eric Botcazou
You can easily get -fcompare-debug failures on AIX with small functions, in fact you get the failure for the empty function: void foo (void) {} eric@polaris:~/build/gcc/powerpc-ibm-aix7.1> gcc/xgcc -Bgcc -S t.c -O - fcompare-debug xgcc: error: t.c: -fcompare-debug failure (length) Fixed thusly,