public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* optimization/5422: powerpc -O2 -fssa -fdce misoptimization
@ 2002-01-18  1:36 haruki.kodera
  0 siblings, 0 replies; 2+ messages in thread
From: haruki.kodera @ 2002-01-18  1:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5422
>Category:       optimization
>Synopsis:       powerpc -O2 -fssa -fdce misoptimization
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 18 01:36:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     haruki.kodera@nifty.com
>Release:        3.0.3
>Organization:
>Environment:
Configured with: ./configure --target=ppc-eabi --enable-languages=c,c++ --disable-multilib
>Description:
gcc-3.0.3 miscompiles code with -O2 -fssa -fdce

The testcase:
------------ BEGIN -------------
volatile int check = 0;

extern void waitcheck ()
{
  while (!check) {}
}
-------------- END ----------------

Since volatilization specification of
the "check" is carried out, it is a meaningful code.
However, if optimization is applied, it will become
 the function ended immediately.
>How-To-Repeat:
compile with -O2 (or higher) and -fssa and -fdce options.

---
I am sorry that it is poor at English.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: optimization/5422: powerpc -O2 -fssa -fdce misoptimization
@ 2002-03-13 14:26 dje
  0 siblings, 0 replies; 2+ messages in thread
From: dje @ 2002-03-13 14:26 UTC (permalink / raw)
  To: dje, gcc-bugs, gcc-prs, haruki.kodera, nobody

Synopsis: powerpc -O2 -fssa -fdce misoptimization

Responsible-Changed-From-To: unassigned->dje
Responsible-Changed-By: dje
Responsible-Changed-When: Wed Mar 13 14:26:38 2002
Responsible-Changed-Why:
    powerpc
State-Changed-From-To: open->closed
State-Changed-By: dje
State-Changed-When: Wed Mar 13 14:26:38 2002
State-Changed-Why:
    @item -fssa
    @opindex fssa
    Perform optimizations in static single assignment form.  Each function's
    flow graph is translated into SSA form, optimizations are performed, and
    the flow graph is translated back from SSA form.  Users should not
    specify this option, since it is not yet ready for production use.
    
    @item -fdce
    @opindex fdce
    Perform dead-code elimination in SSA form.  Requires @option{-fssa}.  Like
    @option{-fssa}, this is an experimental feature.
    
    The SSA optimizations are experimental and should not be
    used.  The options are known to produce incorrect results.
    Until these options are supported for production use, bug
    reports cannot be addressed.  If you want to help with the
    development of these types of optimizations, please contact
    the developers directly.

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


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

end of thread, other threads:[~2002-03-13 22:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-18  1:36 optimization/5422: powerpc -O2 -fssa -fdce misoptimization haruki.kodera
2002-03-13 14:26 dje

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