public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: skal@planet-d.net
To: gcc-gnats@gcc.gnu.org
Cc: pmassimi@ilog.fr
Subject: optimization/6647: -O2 (or above) invalid optimization
Date: Mon, 13 May 2002 08:26:00 -0000	[thread overview]
Message-ID: <20020513151945.30484.qmail@sources.redhat.com> (raw)


>Number:         6647
>Category:       optimization
>Synopsis:       -O2 (or above) invalid optimization
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 13 08:26:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Pascal Massimino
>Release:        2.96 -> 3.0.4
>Organization:
>Environment:
PIII mobile, linux, redhat 7.1
>Description:
Initialization of a 'float/double' variable occurs
after its address taken and derefenced.
Only occurs with -O2 or above.
>How-To-Repeat:
see attached file bug.cpp
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bug.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug.cpp"

Ly8KLy8gQnVnOiBnY2MgMi45NiAtPiAzLjAuNAovLyBQcm9jOiBJbnRlbChSKSBQZW50aXVtKFIp
IElJSSBNb2JpbGUgQ1BVCi8vIE9TOiBMaW51eCAgMi40LjE4LXByZTkgKGZyb20gUmVkaGF0IDcu
MSkKLy8KLy8gQ29tcGlsZWQgd2l0aCAtTywgdGhpcyBwcm9nZ3kgcnVucyBPay4KLy8gQ29tcGls
ZWQgd2l0aCAtTzIgb3IgYWJvdmUsIHRoZSB2YXJpYWJsZQovLyAnZG91YmxlIGQnIGlzIGluaXRp
YWxpemVkICphZnRlciogaXRzCi8vICBhZGRyZXNzIGlzIGxvYWRlZCBpbnRvICpwIChkaXNhc3Nl
bWJseSBzYXlzKS4KLy8gVGhlIHNhbWUgb2NjdXJzIHdpdGggJ2Zsb2F0JyB0eXBlLgovLwovLyAg
IHNrYWxAcGxhbmV0LWQubmV0CgojaW5jbHVkZSA8c3RkaW8uaD4KaW50IG1haW4oKSB7CiAgZG91
YmxlIGQgPSAxLjA7CiAgdW5zaWduZWQgc2hvcnQgKnAgPSAodW5zaWduZWQgc2hvcnQgKikmZDsK
ICBpbnQgQkUgPSAocFswXSAhPSAwKTsKICBpZiAoQkUpCiAgICBwcmludGYoICJlcnJvciEgQkU9
JWRcbiIsIEJFICk7CiAgZWxzZQogICAgcHJpbnRmKCJva1xuIik7CgogIHJldHVybiAwOwp9Cg==


             reply	other threads:[~2002-05-13 15:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-13  8:26 skal [this message]
2002-05-14  8:11 jakub
2002-05-16 18:56 rth

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=20020513151945.30484.qmail@sources.redhat.com \
    --to=skal@planet-d.net \
    --cc=gcc-gnats@gcc.gnu.org \
    --cc=pmassimi@ilog.fr \
    /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).