g++ segfaults whilst compiling Mozilla with -O3

Kemal Bayram kemal@cins.co.uk
Sat Jun 30 08:28:00 GMT 2001


I get a segfault while compiling the Mozilla browser. It seems to be related
to an optimization enabled by -O3 as compiling with -O2 does not segfault.

gcc -v:

Reading specs from /usr/lib/gcc-lib/i386-linux/3.0/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,proto,objc --prefix=/usr
--infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as
--with-gnu-ld --with-system-zlib --enable-long-long --enable-nls
--without-included-gettext --disable-checking --enable-threads=posix
--enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc
i386-linux
Thread model: posix
gcc version 3.0 (Debian)

Command line plus report:

g++-3.0 -Wall -o nsFormControlHelper.o -c -DOSTYPE=\"Linux2.4\"
-DOSARCH=\"Linux\" -DOJI -D_IMPL_NS_HTML -DENDER_LITE
-I../../../../dist/include -I../../../../dist/include
-I/home/kemal/src/mozilla/dist/include/nspr      -I./../../../base/src
-I./../../base/src -I./../../style/src -I./../../../xul/base/src
-I/usr/X11R6/include     -I/usr/X11R6/include -fno-rtti -fno-exceptions
-Wall -Wconversion -Wpointer-arith -Wbad-function-cast -Wcast-align
-Woverloaded-virtual -Wsynth -Wno-long-long -pipe -fshort-wchar -pthread -O3
-fno-omit-frame-pointer -march=pentiumpro -mcpu=pentiumpro  -DNDEBUG
-DTRIMMED -I/usr/X11R6/include -DMOZILLA_CLIENT -include
../../../../config-defs.h -Wp,-MD,.deps/nsFormControlHelper.pp
nsFormControlHelper.cpp
nsFormControlHelper.cpp: In static member function tatic void 
   nsFormControlHelper::PaintFixedSizeCheckMark(nsIRenderingContext&,
float)':
nsFormControlHelper.cpp:733: Internal error: Segmentation fault

Preprocessed file attached as bzip2 file.

Hopefully I have supplied all the info required. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nsFormControlHelper.ii.bz2
Type: application/x-bzip2
Size: 89468 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20010630/39f5cb4a/attachment.bz2>


More information about the Gcc-bugs mailing list