Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Jeff Bilmes
Sat, 18 Feb 1989 04:49
SIGSEGV in GNU C++ version 1.32.0 compiled by GNU C version 1.33
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads