bilmes%icsia4.Berkeley.EDU@BERKELEY.EDU (Jeff Bilmes) (02/18/89)
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