public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/10684: register variable update disappears when using -O
@ 2003-05-08 23:46 Jim Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Jim Wilson @ 2003-05-08 23:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Jim Wilson <wilson@tuliptree.org>
To: gcc-gnats@gcc.gnu.org
Cc: Joerg-Cyril.Hoehle@T-Systems.com, gcc-bugs@gcc.gnu.org, bruno@clisp.org,
 sds@gnu.org
Subject: Re: optimization/10684: register variable update disappears when using
 -O
Date: Thu, 08 May 2003 16:39:10 -0400

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10684
 
 This is related to PR c/7871 which I have already done a lot of analysis 
 work on.  There appear to be multiple bugs in the handling of global 
 register variables, and they have been there since the gcc-3.0 release.
 
 Jim
 


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

* Re: optimization/10684: register variable update disappears when using -O
@ 2003-05-08 18:52 ehrhardt
  0 siblings, 0 replies; 2+ messages in thread
From: ehrhardt @ 2003-05-08 18:52 UTC (permalink / raw)
  To: Joerg-Cyril.Hoehle, bruno, gcc-bugs, gcc-prs, nobody, sds

Synopsis: register variable update disappears when using -O

State-Changed-From-To: open->analyzed
State-Changed-By: cae
State-Changed-When: Thu May  8 18:52:25 2003
State-Changed-Why:
    Confirmed, still present in 3.4-cvs. This is a reduced testcase:
    
    register int STACK __asm__("%ebx");
    static void (*p) ();
    void f ()
    {
            STACK += 1;
            p ();
            STACK -= 1;
    }
    
    Looking at the assembly shows that STACK += 1 ist lost if compiled
    with -O. The problem seems to be that life analysis adds a REG_DEAD
    note to the call to (*p) which makes STACK += 1 a dead store.
    
       regards  Christian
    

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


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

end of thread, other threads:[~2003-05-08 23:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-08 23:46 optimization/10684: register variable update disappears when using -O Jim Wilson
  -- strict thread matches above, loose matches on Subject: below --
2003-05-08 18:52 ehrhardt

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