Article View: gnu.g++.bug
Article #55-fstrength-reduce problem
From: James Clark
Date: Mon, 12 Jun 1989 19:16
Date: Mon, 12 Jun 1989 19:16
30 lines
1242 bytes
1242 bytes
-fstrength-reduce loses on the following:
Script started on Mon Jun 12 20:14:14 1989
jclark% cat bug.c
class A {
static A *list;
A *next;
int n;
public:
void foo();
};
void A::foo()
{
for (int i = 0; i < 1024; i++)
list[i].next = list + i + 1;
}
jclark% g++ -O -fstrength-reduce -c -v bug.c
g++ version 1.35.1-
/usr/local/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__OPTIMIZE__ bug.c /tmp/cca23235.cpp
GNU CPP version 1.35
/usr/local/lib/gcc-cc1plus /tmp/cca23235.cpp -quiet -dumpbase bug.c -fstrength-reduce -opt -version -o /tmp/cca23235.s
GNU C++ version 1.35.1- (sparc) compiled by GNU C version 1.35.
g++: Program cc1plus got fatal signal 6.
jclark% exit
jclark%
script done on Mon Jun 12 20:14:34 1989
James Clark
jjc@jclark.uucp
Technical Details
Message-ID:
<8906121916.AA23238@jclark.uucp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!UUNET.UU.NET!jclark!jjcShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!UUNET.UU.NET!jclark!jjc From: jclark!jjc@UUNET.UU.NET (James Clark) Newsgroups: gnu.g++.bug Subject: -fstrength-reduce problem Message-ID: <8906121916.AA23238@jclark.uucp> Date: 12 Jun 89 19:16:11 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 30