Article View: gnu.g++.bug
Article #1533g++ 1.27 dies on sparc
From: "Douglas C. Schmidt"
Date: Sat, 19 Nov 1988 20:50
Date: Sat, 19 Nov 1988 20:50
32 lines
1449 bytes
1449 bytes
Hi,
The following short program kills g++ 1.27 on the sun 4. Here's
the code:
----------------------------------------
main ( ) {
int j;
j = ({register int _x = 7; ( (!_x) ? 1 :
(_x-=1,_x|=_x>>1,_x|=_x>>2,_x|=_x>>4,
_x|=_x>>8,_x|=_x>>16,(_x+1) ) );});
}
----------------------------------------
and here's the diagnostic:
----------------------------------------
g++ version 1.27.0
echo use .cc filename extension!
use .cc filename extension!
/usr/public/lib/g++/gcc-cpp+ -v -I/cd/ua/schmidt/include/ -undef -D__GNU__ -D__GNUG__ -Dsparc -Dsun -Dunix -+ food.c /tmp/cca08005.cpp
GNU CPP version 1.27.0
/usr/public/lib/g++/gcc-c++ /tmp/cca08005.cpp -quiet -dumpbase food.c -finline-functions -fmemoize-lookups -fsave-memoized -fchar-charconst -version -o /tmp/cca08005.s
food.c:5: Segmentation violation
/usr/public/g++: Program c++ got fatal signal 11.
----------------------------------------
this source code works fine with gcc 1.28 on the sparc.
Doug
Technical Details
Message-ID:
<8811191250.aa24713@PARIS.ICS.UCI.EDU>Path:
arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!ORION.CF.UCI.EDU!schmidt%crimee.ics.uci.eduShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!ORION.CF.UCI.EDU!schmidt%crimee.ics.uci.edu
From: schmidt%crimee.ics.uci.edu@ORION.CF.UCI.EDU ("Douglas C. Schmidt")
Newsgroups: gnu.g++.bug
Subject: g++ 1.27 dies on sparc
Message-ID: <8811191250.aa24713@PARIS.ICS.UCI.EDU>
Date: 19 Nov 88 20:50:00 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 32