From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12547 invoked by alias); 30 Oct 2008 21:02:41 -0000 Received: (qmail 20970 invoked by uid 48); 30 Oct 2008 21:00:14 -0000 Date: Thu, 30 Oct 2008 21:02:00 -0000 Subject: [Bug c++/37969] New: "-O2 -funswitch-loops" causes ICE in build_int_cst_wide, at tree.c:891 (OpenOffice.org) X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "h dot mth at web dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-10/txt/msg02019.txt.bz2 CFLAGS="-O2 -funswitch-loops" for OpenOffice.org build cause this: # LC_ALL=C g++ -Wreturn-type -fmessage-length=0 -c -O2 -fno-strict-aliasing -Wuninitialized -DENABLE_LAYOUT=0 -I. -I../../unxlngx6.pro/inc/base3d -I../inc -I../../inc/pch -I../../inc -I../../unx/inc -I../../unxlngx6.pro/inc -I. -I/mnt/data/tmp/portage/app-office/openoffice-3.0.0.9999_pre9/work/ooo-build/build/ooo300-m9/solver/300/unxlngx6.pro/inc/stl -I/mnt/data/tmp/portage/app-office/openoffice-3.0.0.9999_pre9/work/ooo-build/build/ooo300-m9/solver/300/unxlngx6.pro/inc/external -I/mnt/data/tmp/portage/app-office/openoffice-3.0.0.9999_pre9/work/ooo-build/build/ooo300-m9/solver/300/unxlngx6.pro/inc -I/mnt/data/tmp/portage/app-office/openoffice-3.0.0.9999_pre9/work/ooo-build/build/ooo300-m9/solenv/unxlngx6/inc -I/mnt/data/tmp/portage/app-office/openoffice-3.0.0.9999_pre9/work/ooo-build/build/ooo300-m9/solenv/inc -I/mnt/data/tmp/portage/app-office/openoffice-3.0.0.9999_pre9/work/ooo-build/build/ooo300-m9/res -I/mnt/data/tmp/portage/app-office/openoffice-3.0.0.9999_pre9/work/ooo-build/build/ooo300-m9/solver/300/unxlngx6.pro/inc/stl -I/mnt/data/tmp/portage/app-office/openoffice-3.0.0.9999_pre9/work/ooo-build/build/ooo300-m9/solenv/inc/Xp31 -I/usr/lib/icedtea-6.1.4.12_pre20081028/include -I/usr/lib/icedtea-6.1.4.12_pre20081028/include/linux -I/usr/lib/icedtea-6.1.4.12_pre20081028/include/native_threads/include -Idefault_x_includes -I/mnt/data/tmp/portage/app-office/openoffice-3.0.0.9999_pre9/work/ooo-build/build/ooo300-m9/solver/300/unxlngx6.pro/inc/offuh -I. -I../../res -I. -pipe -funswitch-loops -w -Wno-ctor-dtor-privacy -fno-use-cxa-atexit -Wall -Wextra -Wendif-labels -Wshadow -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -fpic -DLINUX -DUNX -DVCL -DGCC -DC341 -DX86_64 -DCVER=C341 -DNPTL -DGLIBC=2 -DX86_64 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4 -DSUPD=300 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DGSTREAMER -DCUI -DSOLAR_JAVA -DSHAREDLIB -D_DLL_ -fexceptions -fno-enforce-eh-specs -DEXCEPTIONS_ON -o ../../unxlngx6.pro/slo/b3dgeom.o /mnt/data/tmp/portage/app-office/openoffice-3.0.0.9999_pre9/work/ooo-build/build/ooo300-m9/goodies/source/base3d/b3dgeom.cxx /mnt/data/tmp/portage/app-office/openoffice-3.0.0.9999_pre9/work/ooo-build/build/ooo300-m9/goodies/source/base3d/b3dgeom.cxx: In member function 'void B3dGeometry::CreateDefaultTexture(sal_uInt16, sal_Bool)': /mnt/data/tmp/portage/app-office/openoffice-3.0.0.9999_pre9/work/ooo-build/build/ooo300-m9/goodies/source/base3d/b3dgeom.cxx:837: internal compiler error: in build_int_cst_wide, at tree.c:891 CFLAGS="-O1 -funswitch-loops" compile it just fine. # LC_ALL=C gcc -v Using built-in specs. Target: x86_64-pc-linux-gnu Configured with: /mnt/data/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --disable-libmudflap --disable-libssp --disable-libgomp --enable-cld --disable-libgcj --enable-languages=c,c++,treelang --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.2 p1.0' Thread model: posix gcc version 4.3.2 (Gentoo 4.3.2 p1.0) Gentoo bugreport https://bugs.gentoo.org/show_bug.cgi?id=237997 Failing loop to unswitch http://lxr.go-oo.org/source/graphics/goodies/source/base3d/b3dgeom.cxx#813 -- Summary: "-O2 -funswitch-loops" causes ICE in build_int_cst_wide, at tree.c:891 (OpenOffice.org) Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: h dot mth at web dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37969