public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/3376: optimised code wrong in simple for statement
@ 2001-06-23  0:04 aoliva
  0 siblings, 0 replies; 2+ messages in thread
From: aoliva @ 2001-06-23  0:04 UTC (permalink / raw)
  To: alatham, gcc-bugs, gcc-prs, nobody

Synopsis: optimised code wrong in simple for statement

State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Sat Jun 23 00:04:12 2001
State-Changed-Why:
    It seems that you forgot to attach the short test program.
    
    Anyway, 2.96 is not a version of GCC released by the FSF.  To report bugs in the Red Hat version of GCC, use the Red Hat bug reporting program at bugzilla.redhat.com.  But make sure you get the latest update of the GCC RPMs first.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3376&database=gcc


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

* c/3376: optimised code wrong in simple for statement
@ 2001-06-22 10:56 alatham
  0 siblings, 0 replies; 2+ messages in thread
From: alatham @ 2001-06-22 10:56 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3376
>Category:       c
>Synopsis:       optimised code wrong in simple for statement
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 22 10:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Allan Latham
>Release:        2.96 Red Hat  (for info: NOT a problem in 2.95.3 Suse)
>Organization:
>Environment:
Red Hat 7.0.1J on i586
>Description:
cc -o Atest Atest.c works as expected
cc -O2 -o Atest Atest.c fails

The optimised version pass only one time thru the loop and reports the answer (variable se) as -1 when it should be 1.

>How-To-Repeat:
Compile and run the short test program with gcc 2.96
>Fix:
Recode as in the example.
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2001-06-23  0:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-23  0:04 c/3376: optimised code wrong in simple for statement aoliva
  -- strict thread matches above, loose matches on Subject: below --
2001-06-22 10:56 alatham

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