public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/6647: -O2 (or above) invalid optimization
@ 2002-05-16 18:56 rth
  0 siblings, 0 replies; 3+ messages in thread
From: rth @ 2002-05-16 18:56 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, pmassimi, skal

Synopsis: -O2 (or above) invalid optimization

State-Changed-From-To: analyzed->closed
State-Changed-By: rth
State-Changed-When: Thu May 16 18:56:12 2002
State-Changed-Why:
    Jakub, please just close these after diagnosing not-a-bug.

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


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

* Re: optimization/6647: -O2 (or above) invalid optimization
@ 2002-05-14  8:11 jakub
  0 siblings, 0 replies; 3+ messages in thread
From: jakub @ 2002-05-14  8:11 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, pmassimi, skal

Synopsis: -O2 (or above) invalid optimization

State-Changed-From-To: open->analyzed
State-Changed-By: jakub
State-Changed-When: Tue May 14 08:11:43 2002
State-Changed-Why:
    The optimization is valid, the source is not.
    The code does illegal type punning, see info gcc on
    -fstrict-aliasing for details.
    Either rewrite the code using unions, or use -fno-strict-aliasing.

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


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

* optimization/6647: -O2 (or above) invalid optimization
@ 2002-05-13  8:26 skal
  0 siblings, 0 replies; 3+ messages in thread
From: skal @ 2002-05-13  8:26 UTC (permalink / raw)
  To: gcc-gnats; +Cc: pmassimi


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


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

end of thread, other threads:[~2002-05-17  1:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-16 18:56 optimization/6647: -O2 (or above) invalid optimization rth
  -- strict thread matches above, loose matches on Subject: below --
2002-05-14  8:11 jakub
2002-05-13  8:26 skal

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