public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: fortran/8445: optimizer bug?
@ 2002-11-27  2:34 toon
  0 siblings, 0 replies; 3+ messages in thread
From: toon @ 2002-11-27  2:34 UTC (permalink / raw)
  To: eckmann, gcc-bugs, gcc-prs, nobody, toon

Synopsis: optimizer bug?

Responsible-Changed-From-To: unassigned->toon
Responsible-Changed-By: toon
Responsible-Changed-When: Tue Nov 19 13:25:25 2002
Responsible-Changed-Why:
    Fortran Maintainer.
State-Changed-From-To: open->feedback
State-Changed-By: toon
State-Changed-When: Tue Nov 19 13:25:25 2002
State-Changed-Why:
    Does it make any difference compiling this example with
    g77 -O1 -ffloat-store
    ?

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


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

* Re: fortran/8445: optimizer bug?
@ 2003-02-14 21:09 toon
  0 siblings, 0 replies; 3+ messages in thread
From: toon @ 2003-02-14 21:09 UTC (permalink / raw)
  To: eckmann, gcc-bugs, gcc-prs, jean-pierre.eckmann, toon

Synopsis: optimizer bug?

State-Changed-From-To: feedback->closed
State-Changed-By: toon
State-Changed-When: Fri Feb 14 21:09:02 2003
State-Changed-Why:
    This is a classical case of x86-ism.
    
    The symptoms are:
    
    1. Comparison of two floating point values, one computed
       and one stored.
    
    2. Works on all architectures except x86.
    
    3. Problem goes away when adding -ffloat-store to
       the compiler options.

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


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

* fortran/8445: optimizer bug?
@ 2002-11-03 23:46 eckmann
  0 siblings, 0 replies; 3+ messages in thread
From: eckmann @ 2002-11-03 23:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8445
>Category:       fortran
>Synopsis:       optimizer bug?
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 03 23:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     eckmann
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
changing optimizations from O0 to O1 changes output from 1
to 2 lines. There is no problem on macs. but it appears on RH
with gcc 2.95.2 and 2.95.3 on ix86

>How-To-Repeat:
g77 -O0 bug.f -o bug;bug
--------------------------------------
g77 version 2.95.2 19991024 (release) (from FSF-g77 version 0.5.25 19991024 (release))
Driving: g77 -ffixed-line-length-none -v bug.f -o bug -lg2c -lm
Reading specs from /usr/local/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /usr/local/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/f771 bug.f -quiet -dumpbase bug.f -version -fversion -ffixed-line-length-none -o /tmp/cckHiTym.s
GNU F77 version 2.95.2 19991024 (release) (i686-pc-linux-gnu) compiled by GNU C version 2.95.2 19991024 (release).
GNU Fortran Front End version 0.5.25 19991024 (release)
 as -V -Qy -o /tmp/ccAPMuUB.o /tmp/cckHiTym.s
GNU assembler version 2.9.1 (i386-redhat-linux), using BFD version 2.9.1.0.24
 /usr/local/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/collect2 -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o bug /usr/lib/crt1.o /usr/lib/crti.o /usr/local/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/crtbegin.o -L/usr/local/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2 -L/usr/local/gcc-2.95.2/lib /tmp/ccAPMuUB.o -lg2c -lm -lgcc -lc -lgcc /usr/local/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/crtend.o /usr/lib/crtn.o
-------------------------
similar on RH72, with gcc-2.95.3
>Fix:

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

ICAgICAgaW1wbGljaXQgbm9uZQogICAgICBpbnRlZ2VyKjQgaSxqCiAgICAgIGludGVnZXIqNCBu
cyxuc3QsY291bnRlcgogICAgICByZWFsKjggc29ydGVkKDEwKQogICAgICByZWFsKjggcQpjICAg
ICAgY29tbW9uIHNvcnRlZCxucyxpLHEKCiAgICAgIGludGVnZXIqNCBudW1iZXJzKDIpCiAgICAg
IAogICAgICAKICAgICAgbnVtYmVycygxKT01NDI1CiAgICAgIG51bWJlcnMoMik9bnVtYmVycygx
KQogICAgICBzb3J0ZWQoMSk9MAogICAgICBzb3J0ZWQoMik9MS4KICAgICAgbnM9MgoKICAgICAg
ZG8gY291bnRlcj0wLDEKICAgICAgICAgcT1udW1iZXJzKGNvdW50ZXIrMSkvMTAwMDAuMEQwMAog
ICAgICAgICBuc3Q9bnMKICAgICAgICAgZG8gaT0xLG5zdAogICAgICAgICAgICBpZiAocS5lcS5z
b3J0ZWQoaSkpIHRoZW4gCiAgICAgICAgICAgICAgIGdvdG8gMiAKICAgICAgICAgICAgZW5kaWYg
CiAgICAgICAgICAgIGlmIChxLmx0LnNvcnRlZChpKS5hbmQuIHEuZ3Quc29ydGVkKGktMSkpIHRo
ZW4gCiAgICAgICAgICAgICAgIGRvIGo9bnN0KzEsaSsxLC0xCiAgICAgICAgICAgICAgICAgIHNv
cnRlZChqKT1zb3J0ZWQoai0xKQogICAgICAgICAgICAgICBlbmRkbyAKICAgICAgICAgICAgICAg
c29ydGVkKGkpPXEKICAgICAgICAgICAgICAgbnM9bnMrMQogICAgICAgICAgICAgICBnb3RvIDIg
CiAgICAgICAgICAgIGVuZGlmIAogICAgICAgICBlbmRkbyAKICAgICAgICAgcHJpbnQgKiwnc2hv
dWxkIG5vdCBoYXZlIGdvdHRlbiBoZXJlJwogICAgICAgICBzdG9wCiAyICAgICAgIGNvbnRpbnVl
IAogICAgICBlbmRkbyAKICAgICAgZG8gaT0yLG5zLTEKICAgICAgICAgcHJpbnQgKiwgaSxzb3J0
ZWQoaSkKICAgICAgZW5kZG8gCgoKICAgICAgZW5kCgogICAgICAK


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

end of thread, other threads:[~2003-02-14 21:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-27  2:34 fortran/8445: optimizer bug? toon
  -- strict thread matches above, loose matches on Subject: below --
2003-02-14 21:09 toon
2002-11-03 23:46 eckmann

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