This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

g++ segfaults whilst compiling Mozilla with -O3


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. 

nsFormControlHelper.ii.bz2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]