[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#169909: gcc-3.2: Internal error when using -O2



Package: gcc-3.2
Version: 1:3.2.1-0pre6
Severity: normal

pont@machia:/space/1/moz/mozilla/security/nss/lib/pkcs12$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.1/specs
Configured with: /home/packages/gcc/3.2/gcc-3.2-3.2.1ds5/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.2.1 20021111 (Debian prerelease)

When compiling Mozilla from CVS as of Nov 20 2002, the compilation fails on
mozilla/security/nss/lib/pkcs12/p12e.c if one uses optimization (tested with 
-O and -O2):

pont@machia:/space/1/moz/mozilla/security/nss/lib/pkcs12$ gcc -save-temps -o Linux2.4_x86_glibc_PTH_OPT.OBJ/p12e.o -c -O2  -fPIC -DLINUX1_2 -Di386 -D_XOPEN_SOURCE -DLINUX2_1 -ansi -Wall -DLINUX -Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR -DXP_UNIX -UDEBUG -DNDEBUG -D_REENTRANT -I/space/1/moz/mozilla/dist/include  -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/include -I/space/1/moz/mozilla/dist/include/nspr -I/space/1/moz/mozilla/dist/include/dbm -I../../../../dist/public/dbm  p12e.c 
p12e.c: In function `sec_PKCS12CreateSafeBag':
p12e.c:763: Internal compiler error in merge_blocks_move_predecessor_nojumps, at cfgcleanup.c:650
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
pont@machia:/space/1/moz/mozilla/security/nss/lib/pkcs12$ 

Without optimization however, it works perfectly:

pont@machia:/space/1/moz/mozilla/security/nss/lib/pkcs12$ gcc -save-temps -o Linux2.4_x86_glibc_PTH_OPT.OBJ/p12e.o -c -fPIC -DLINUX1_2 -Di386 -D_XOPEN_SOURCE -DLINUX2_1 -ansi -Wall -DLINUX -Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR -DXP_UNIX -UDEBUG -DNDEBUG -D_REENTRANT -I/space/1/moz/mozilla/dist/include  -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/include -I/space/1/moz/mozilla/dist/include/nspr -I/space/1/moz/mozilla/dist/include/dbm -I../../../../dist/public/dbm  p12e.c 
pont@machia:/space/1/moz/mozilla/security/nss/lib/pkcs12$ 

Files created by -save-active when using -O2 are at 
<URL:http://soua.net/p12e.i.breaks> and 
<URL:http://soua.net/p12e.s.breaks>. The same files when not using 
-O2 are at <URL:http://soua.net/p12e.i.works> and 
<URL:http://soua.net/p12e.s.works>.

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux machia 2.4.18 #9 Mon Aug 5 22:05:57 CEST 2002 i686
Locale: LANG=C, LC_CTYPE=sv_SE

Versions of packages gcc-3.2 depends on:
ii  binutils                  2.13.90.0.10-2 The GNU assembler, linker and bina
ii  cpp-3.2                   1:3.2.1-0pre6  The GNU C preprocessor.
ii  gcc-3.2-base              1:3.2.1-0pre6  The GNU Compiler Collection (base 
ii  libc6                     2.3.1-5        GNU C Library: Shared libraries an
ii  libgcc1                   1:3.2.1-0pre6  GCC support library.




Reply to: