public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: haruki.kodera@nifty.com
To: gcc-gnats@gcc.gnu.org
Subject: optimization/5422: powerpc -O2 -fssa -fdce misoptimization
Date: Fri, 18 Jan 2002 01:36:00 -0000	[thread overview]
Message-ID: <20020118092930.17999.qmail@sources.redhat.com> (raw)


>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:


             reply	other threads:[~2002-01-18  9:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-18  1:36 haruki.kodera [this message]
2002-03-13 14:26 dje

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020118092930.17999.qmail@sources.redhat.com \
    --to=haruki.kodera@nifty.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).