public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/5076: gcc3 regression: yet another strength reduction bug
@ 2002-01-30 22:36 rth
  0 siblings, 0 replies; 2+ messages in thread
From: rth @ 2002-01-30 22:36 UTC (permalink / raw)
  To: gbeauchesne, gcc-bugs, gcc-prs, nobody, rth

Synopsis: gcc3 regression: yet another strength reduction bug

Responsible-Changed-From-To: unassigned->rth
Responsible-Changed-By: rth
Responsible-Changed-When: Wed Jan 30 22:36:56 2002
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Wed Jan 30 22:36:56 2002
State-Changed-Why:
    http://gcc.gnu.org/ml/gcc-patches/2002-01/msg02199.html

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


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

* optimization/5076: gcc3 regression: yet another strength reduction bug
@ 2001-12-11  8:16 gbeauchesne
  0 siblings, 0 replies; 2+ messages in thread
From: gbeauchesne @ 2001-12-11  8:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5076
>Category:       optimization
>Synopsis:       gcc3 regression: yet another strength reduction bug
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 11 08:16:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Gwenole Beauchesne
>Release:        3.0.X, 3.1, "2.96"
>Organization:
>Environment:
i586-mandrake-linux-gnu
ia64-mandrake-linux-gnu
>Description:
The attached test case is extracted/reduced from PR 2847 that was closed earlier. gcc3 series compilers are affected, unlike gcc-2.95.X. (gcc-"2.96" is affected too).

* Failures on ix86:

[gbeauchesne@thalys vrac]$ CC="gcc-$(gcc31-version)" sh bugstrength.c
Reading specs from /usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.1/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-cstdio=stdio --enable-clocale=generic --with-gxx-include-dir=/usr/include/g++-v31 --enable-languages=c,c++ --program-suffix=-3.1 --enable-objc-gc --host=i586-mandrake-linux-gnu
Thread model: posix
gcc version 3.1 20011203 (experimental)
CC: gcc-3.1; CFLAGS: -O1
> > PASS
CC: gcc-3.1; CFLAGS: -O1 -fstrength-reduce
> > FAIL
CC: gcc-3.1; CFLAGS: -O2
> > FAIL
CC: gcc-3.1; CFLAGS: -O2 -fno-strength-reduce
> > PASS

[gbeauchesne@thalys vrac]$ CC="gcc-$(gcc3-version)" sh bugstrength.c
Reading specs from /usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.0.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-cstdio=stdio --enable-clocale=generic --enable-languages=c,c++,f77,objc,java --program-suffix=-3.0.2 --enable-objc-gc --host=i586-mandrake-linux-gnu
Thread model: posix
gcc version 3.0.2
CC: gcc-3.0.2; CFLAGS: -O1
> > PASS
CC: gcc-3.0.2; CFLAGS: -O1 -fstrength-reduce
> > FAIL
CC: gcc-3.0.2; CFLAGS: -O2
> > FAIL
CC: gcc-3.0.2; CFLAGS: -O2 -fno-strength-reduce
> > PASS

* Similar failures on ia64:

[gb@lion vrac]$ CC=gcc-3.0.2 sh bugstrength.c
Reading specs from /usr/lib/gcc-lib/ia64-mandrake-linux-gnu/3.0.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-cstdio=stdio --enable-clocale=generic --enable-languages=c,c++,f77,objc,java --program-suffix=-3.0.2 --enable-objc-gc --host=ia64-mandrake-linux-gnu
Thread model: posix
gcc version 3.0.2
CC: gcc-3.0.2; CFLAGS: -O1
> > PASS
CC: gcc-3.0.2; CFLAGS: -O1 -fstrength-reduce
> > FAIL
CC: gcc-3.0.2; CFLAGS: -O2
> > FAIL
CC: gcc-3.0.2; CFLAGS: -O2 -fno-strength-reduce
> > PASS

* Success on powerpc-mandrake-linux-gnu with gcc-2.95.X:

Reading specs from /usr/lib/gcc-lib/ppc-mandrake-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release - Linux-Mandrake 8.0 for PPC)
CC: gcc; CFLAGS: -O1
> > PASS
CC: gcc; CFLAGS: -O1 -fstrength-reduce
> > PASS
CC: gcc; CFLAGS: -O2
> > PASS
CC: gcc; CFLAGS: -O2 -fno-strength-reduce
> > PASS
>How-To-Repeat:
Compile attachment with -O1 -fstrength-reduce to exhibit an abort() in the resulting executable. Alternatively, type "sh ./bugstrength.c"
>Fix:
Don't use strength reduction.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bugstrength.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bugstrength.c"

I2lmIDAKJHtDQzo9Z2NjfSAtdjsgZmlsZT0kezAvL1wuYy99OyBjYXQgJGZpbGUuYyB8IHNlZCAt
biAnL15cL1wvICpcKC4qXCkgKiMuKi9zLy9cMS9wJyB8ICggd2hpbGUgcmVhZCBvcHRpb25zOyBk
byBlY2hvICJDQzogJENDOyBDRkxBR1M6ICRvcHRpb25zIjsgJHtDQ30gLW8gJGZpbGUgJHtvcHRp
b25zfSAkZmlsZS5jICYmIC4vJGZpbGU7ICggWyAkPyAtZXEgMCBdICYmIGVjaG8gIj4+IFBBU1Mi
ICkgfHwgZWNobyAiPj4gRkFJTCI7IHJtIC1mIC4vJGZpbGU7IGRvbmUgKSAyPiAvZGV2L251bGwK
ZXhpdCAwCiNlbmRpZgoKLy8gLU8xCQkJCSMgUEFTUwovLyAtTzEgLWZzdHJlbmd0aC1yZWR1Y2UJ
IyBGQUlMCi8vIC1PMgkJCQkjIEZBSUwKLy8gLU8yIC1mbm8tc3RyZW5ndGgtcmVkdWNlCSMgUEFT
UwoKc3RhdGljIGludCBjb3VudCA9IDA7CgpzdGF0aWMgdm9pZCBpbmModm9pZCkKewogIGNvdW50
Kys7Cn0KCmludCBtYWluKGludCBhcmdjLCBjaGFyICphcmd2KQp7CiAgaW50IGlOYnIgPSAxOwog
IGludCB0ZXN0ID0gMDsKICB3aGlsZSh0ZXN0ID09IDApIHsKCWluYygpOwoJaWYgKGlOYnIgPT0g
MCkKCSAgYnJlYWs7CgllbHNlIHsKCSAgaW5jKCk7CgkgIGlOYnItLTsKCX0KCXRlc3QgPSAxOwog
IH0KICBpZiAoY291bnQgIT0gMikKCWFib3J0KCk7CiAgcmV0dXJuIDA7Cn0K


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

end of thread, other threads:[~2002-01-31  6:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-30 22:36 optimization/5076: gcc3 regression: yet another strength reduction bug rth
  -- strict thread matches above, loose matches on Subject: below --
2001-12-11  8:16 gbeauchesne

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