public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/10171: [3.2/3.3/3.4 regression] wrong code for inlined function
@ 2003-03-22 22:26 Steven Bosscher
  0 siblings, 0 replies; 9+ messages in thread
From: Steven Bosscher @ 2003-03-22 22:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR optimization/10171; it has been noted by GNATS.

From: Steven Bosscher <s.bosscher@student.tudelft.nl>
To: gcc-gnats@gcc.gnu.org, mchen@vmware.com, gcc-bugs@gcc.gnu.org,
	nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org, agesen@vmware.com,
	mendel@vmware.com, janis187@us.ibm.com
Cc:  
Subject: Re: optimization/10171: [3.2/3.3/3.4 regression] wrong code for inlined
 function
Date: Sat, 22 Mar 2003 23:22:32 +0100

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10171
 
 Janis,
 
 If the patch you identified really breaks stuff, then this PR should be 
 in the
 category "target", agree?
 
 Greetz
 Steven
 
 


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

* Re: optimization/10171: [3.2/3.3/3.4 regression] wrong code for inlined function
@ 2003-03-25 21:06 jason
  0 siblings, 0 replies; 9+ messages in thread
From: jason @ 2003-03-25 21:06 UTC (permalink / raw)
  To: agesen, gcc-bugs, gcc-prs, jason, mchen, mendel, nobody

Synopsis: [3.2/3.3/3.4 regression] wrong code for inlined function

Responsible-Changed-From-To: unassigned->jason
Responsible-Changed-By: jason
Responsible-Changed-When: Tue Mar 25 20:36:55 2003
Responsible-Changed-Why:
    x
State-Changed-From-To: analyzed->closed
State-Changed-By: jason
State-Changed-When: Tue Mar 25 20:36:55 2003
State-Changed-Why:
    fixed

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10171


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

* Re: optimization/10171: [3.2/3.3/3.4 regression] wrong code for inlined function
@ 2003-03-22 23:06 Janis Johnson
  0 siblings, 0 replies; 9+ messages in thread
From: Janis Johnson @ 2003-03-22 23:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR optimization/10171; it has been noted by GNATS.

From: Janis Johnson <janis187@us.ibm.com>
To: Steven Bosscher <s.bosscher@student.tudelft.nl>
Cc: gcc-gnats@gcc.gnu.org, mchen@vmware.com, gcc-bugs@gcc.gnu.org,
   nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org, agesen@vmware.com,
   mendel@vmware.com, janis187@us.ibm.com
Subject: Re: optimization/10171: [3.2/3.3/3.4 regression] wrong code for inlined function
Date: Sat, 22 Mar 2003 15:01:50 -0800

 On Sat, Mar 22, 2003 at 11:22:32PM +0100, Steven Bosscher wrote:
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10171
 > 
 > Janis,
 > 
 > If the patch you identified really breaks stuff, then this PR should be 
 > in the
 > category "target", agree?
 
 Not necessarily; see Jason's comment about how -O2 does some unrolling.
 The identified patch might have merely made that change (as far as this
 problem is concerned).


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

* Re: optimization/10171: [3.2/3.3/3.4 regression] wrong code for inlined  function
@ 2003-03-22 21:46 Janis Johnson
  0 siblings, 0 replies; 9+ messages in thread
From: Janis Johnson @ 2003-03-22 21:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR optimization/10171; it has been noted by GNATS.

From: Janis Johnson <janis187@us.ibm.com>
To: gcc-gnats@gcc.gnu.org, mchen@vmware.com, gcc-bugs@gcc.gnu.org,
   nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org, agesen@vmware.com,
   mendel@vmware.com
Cc:  
Subject: Re: optimization/10171: [3.2/3.3/3.4 regression] wrong code for inlined 
 function
Date: Sat, 22 Mar 2003 13:40:07 -0800

 Not that it's useful, but for i686-linux the regression
 appears with this patch:
 
 Wed Sep  1 21:13:48 1999  Richard Henderson  <rth@cygnus.com>
 
         Merge new ia32 backend from the branch!
 
         * i386.h, i386.c, i386.md, reg-stack.c, i386/unix.h: Many
 changes.
         See ChangeLog.P2 on new_ia32_branch for details.
 
         * rtl.h (stack_regs_mentioned_p): Delete prototype.
         * i386/cygwin.h (SUBTARGET_PROLOGUE): No more do_rtl.
         * i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
         * i386/gas.h (ASM_FILE_START): Define.
         * i386/winnt.c (i386_pe_valid_decl_attribute_p): Update
         for name change of ix86_valid_decl_attribute_p.
         (i386_pe_valid_type_attribute_p): Similarly.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10171
 
 
 


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

* Re: optimization/10171: [3.2/3.3/3.4 regression] wrong code for inlined function
@ 2003-03-21 23:56 Jason Merrill
  0 siblings, 0 replies; 9+ messages in thread
From: Jason Merrill @ 2003-03-21 23:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR optimization/10171; it has been noted by GNATS.

From: Jason Merrill <jason@redhat.com>
To: Steven Bosscher <s.bosscher@student.tudelft.nl>
Cc: gcc-gnats@gcc.gnu.org, mchen@vmware.com, gcc-bugs@gcc.gnu.org,
   nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org, agesen@vmware.com,
   mendel@vmware.com
Subject: Re: optimization/10171: [3.2/3.3/3.4 regression] wrong code for
 inlined function
Date: Fri, 21 Mar 2003 18:45:52 -0500

 On Sat, 22 Mar 2003 00:33:02 +0100, Steven Bosscher <s.bosscher@student.tudelft.nl> wrote:
 
 >  From your analysis, I would suspect that this PR is a duplicate
 > of high-priority PR opt/8414. Is there any way to verify this?
 
 I don't think so; it doesn't look like the loop in 8414 only has a single
 iteration.
 
 Jason


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

* Re: optimization/10171: [3.2/3.3/3.4 regression] wrong code for inlined function
@ 2003-03-21 23:36 Steven Bosscher
  0 siblings, 0 replies; 9+ messages in thread
From: Steven Bosscher @ 2003-03-21 23:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR optimization/10171; it has been noted by GNATS.

From: Steven Bosscher <s.bosscher@student.tudelft.nl>
To: gcc-gnats@gcc.gnu.org, mchen@vmware.com, gcc-bugs@gcc.gnu.org,
	nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org, agesen@vmware.com,
	mendel@vmware.com, jason@gcc.gnu.org
Cc:  
Subject: Re: optimization/10171: [3.2/3.3/3.4 regression] wrong code for inlined
 function
Date: Sat, 22 Mar 2003 00:33:02 +0100

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10171
 
 Jason,
 
  From your analysis, I would suspect that this PR is a duplicate
 of high-priority PR opt/8414. Is there any way to verify this?
 
 (Hoping you *do* have access to IA64 hardware ;-)
 
 Greetz
 Steven
 
 


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

* Re: optimization/10171: [3.2/3.3/3.4 regression] wrong code for inlined function
@ 2003-03-21  6:17 jason
  0 siblings, 0 replies; 9+ messages in thread
From: jason @ 2003-03-21  6:17 UTC (permalink / raw)
  To: agesen, gcc-bugs, gcc-prs, mchen, mendel, nobody

Synopsis: [3.2/3.3/3.4 regression] wrong code for inlined function

State-Changed-From-To: open->analyzed
State-Changed-By: jason
State-Changed-When: Fri Mar 21 06:17:28 2003
State-Changed-Why:
    This is a bug in loop unrolling; 2.95 shows the bug with
    -funroll-loops.  The only difference is that now we do some
    unrolling at -O2.
    
    The loop optimizer properly calculates that there will
    always be a single pass through the loop.  The unroller
    has a special case for this.  It looks for and deletes an
    unconditional jump to the continue point, then deletes a
    conditional jump from the end of the loop.  Unfortunately,
    this code fails to handle nontrivial for loops, as the
    unconditional jump at the beginning of the loop (created
    previously by loop inversion) is to the test, not to the
    continue point.  So that jump is not deleted, but the
    conditional jump at the end is, and so we just skip over
    the loop.  Oops.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10171


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

* Re: optimization/10171: [3.2/3.3/3.4 regression] wrong code for inlined function
@ 2003-03-21  6:10 jason
  0 siblings, 0 replies; 9+ messages in thread
From: jason @ 2003-03-21  6:10 UTC (permalink / raw)
  To: agesen, gcc-bugs, gcc-prs, mchen, mendel, nobody

Synopsis: [3.2/3.3/3.4 regression] wrong code for inlined function

State-Changed-From-To: analyzed->open
State-Changed-By: jason
State-Changed-When: Fri Mar 21 06:10:14 2003
State-Changed-Why:
    x

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10171


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

* Re: optimization/10171: [3.2/3.3/3.4 regression] wrong code for inlined function
@ 2003-03-20 19:09 bangerth
  0 siblings, 0 replies; 9+ messages in thread
From: bangerth @ 2003-03-20 19:09 UTC (permalink / raw)
  To: agesen, gcc-bugs, gcc-prs, mchen, mendel, nobody

Old Synopsis: contant inline function result evaluated wrong
New Synopsis: [3.2/3.3/3.4 regression] wrong code for inlined function

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu Mar 20 19:09:33 2003
State-Changed-Why:
    Confirmed. Here's the same program, slightly modified:
    ------------------------
    inline int tag() { return 0; }
    
    int main() {
       int i;
       for (i = 0; i < (tag() ? 2 : 1); i++)
         printf("Hello1\n");
    }
    --------------------------
    The loop should be executed at least once, but isn't when
    compiled with -O2 on 3.2, 3.3 and mainline. It worked with
    2.95, though, so this is a regression. A serious one, I'd
    say.
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10171


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

end of thread, other threads:[~2003-03-25 20:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-22 22:26 optimization/10171: [3.2/3.3/3.4 regression] wrong code for inlined function Steven Bosscher
  -- strict thread matches above, loose matches on Subject: below --
2003-03-25 21:06 jason
2003-03-22 23:06 Janis Johnson
2003-03-22 21:46 Janis Johnson
2003-03-21 23:56 Jason Merrill
2003-03-21 23:36 Steven Bosscher
2003-03-21  6:17 jason
2003-03-21  6:10 jason
2003-03-20 19:09 bangerth

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).