Article View: gnu.g++.bug
Article #1689SIGSEGV in GNU C++ version 1.32.0 compiled by GNU C version 1.33
From: Jeff Bilmes
Date: Sat, 18 Feb 1989 04:49
Date: Sat, 18 Feb 1989 04:49
40 lines
1937 bytes
1937 bytes
CODE.
--------------------------------------------------------------------------------
double foo()
{
return 4.0;
}
--------------------------------------------------------------------------------
COMPILATION:
--------------------------------------------------------------------------------
g++ -O -c -v bla.cc
g++ version 1.32.0
/usr/local/lib/gcc-cpp -+ -v -I/usr/local/src/libg++/.
-I/usr/local/src/libg++/g++-include -undef -D__GNU__ -D__GNUG__
-Dmc68000 -Dsun -Dunix -D__OPTIMIZE__ bla.cc /tmp/cca13078.cpp
GNU CPP version 1.33
/usr/local/lib/gcc-c++ /tmp/cca13078.cpp -quiet -dumpbase bla.cc -opt
-version -o /tmp/cca13078.s
GNU C++ version 1.32.0 (68k, MIT syntax) compiled by GNU C version 1.33.
In function double foo ():
bla.cc:4: Segmentation violation
g++: Program c++ got fatal signal 11.
--------------------------------------------------------------------------------
NOTES:
--------------------------------------------------------------------------------
This happens using a 3/<anything> with sunOS 3.5. On a sun 4 with sunOS 4.0,
there is no problem.
tm.h linked to tm-sun3.h
md linked to m68k.md
aux-output.c linked to output-m68k.c
It doesn't seg fault without -O, nor does it with:
--------------------------------------------------------------------------------
double foo(double x)
{
return x;
}
--------------------------------------------------------------------------------
Thanks.
-- Jeff
Technical Details
Message-ID:
<8902180449.AA13111@icsia4>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!BERKELEY.EDU!bilmes%icsia4.Berkeley.EDUShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!BERKELEY.EDU!bilmes%icsia4.Berkeley.EDU From: bilmes%icsia4.Berkeley.EDU@BERKELEY.EDU (Jeff Bilmes) Newsgroups: gnu.g++.bug Subject: SIGSEGV in GNU C++ version 1.32.0 compiled by GNU C version 1.33 Message-ID: <8902180449.AA13111@icsia4> Date: 18 Feb 89 04:49:40 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 40