public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* optimization/4311: unrolling loops creates non-ending loop
@ 2001-09-12 13:16 guillaume.lemaitre33
  0 siblings, 0 replies; 2+ messages in thread
From: guillaume.lemaitre33 @ 2001-09-12 13:16 UTC (permalink / raw)
  To: gcc-gnats

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]

>Number:         4311
>Category:       optimization
>Synopsis:       unrolling loops creates non-ending loop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 12 13:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Guillaume Lemaître
>Release:        gcc-3.0.1
>Organization:
>Environment:
linux mandrake 8, duron 750 MHz
>Description:
see the source code attached.

a simple 'for' structure goes looping ever and ever
for special values of the upper bound

change the value of 'max' from -5 to -6 for example, and the
program will work
>How-To-Repeat:
gcc -O3 -Wall -funroll-all-loops -s comparaison.c -o comparaison
>Fix:

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

aW50Cm1haW4oIHZvaWQgKSB7CiAgY29uc3QgdW5zaWduZWQgaW50IG1heCA9ICh1bnNpZ25lZCBp
bnQpIC01OwoKICB1bnNpZ25lZCBpbnQgaTsKICB2b2xhdGlsZSB1bnNpZ25lZCBpbnQgajsKCiAg
Zm9yKCBpID0gMDsgaSA8IG1heDsgKytpICkKICAgIGogPSBpOwoKICByZXR1cm4gMDsKfQo=


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

* Re: optimization/4311: unrolling loops creates non-ending loop
@ 2002-04-03  0:07 rth
  0 siblings, 0 replies; 2+ messages in thread
From: rth @ 2002-04-03  0:07 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, guillaume.lemaitre33, nobody, rth

Synopsis: unrolling loops creates non-ending loop

Responsible-Changed-From-To: unassigned->rth
Responsible-Changed-By: rth
Responsible-Changed-When: Wed Apr  3 00:07:02 2002
Responsible-Changed-Why:
    .
State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Wed Apr  3 00:07:02 2002
State-Changed-Why:
    http://gcc.gnu.org/ml/gcc-patches/2002-04/msg00100.html

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


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

end of thread, other threads:[~2002-04-03  8:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-12 13:16 optimization/4311: unrolling loops creates non-ending loop guillaume.lemaitre33
2002-04-03  0:07 rth

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