one of our more ambitious users discovered an ICE while building libmsn with
-O1 -ftree-loop-distribution -floop-block.  dropping any one of these flags
makes it go away.  i'll attach a reduced testcase which i believe is invalid
code but still ICEs, and the original preprocessed sources.  i also reproduced
the error with a recent 4.4 branch checkout (-r152264).

$ gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.4.1/work/gcc-4.4.1/configure
--prefix=/usr --bindir=/usr/x86_64-unknown-linux-gnu/gcc-bin/4.4.1
--includedir=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/include
--datadir=/usr/share/gcc-data/x86_64-unknown-linux-gnu/4.4.1
--mandir=/usr/share/gcc-data/x86_64-unknown-linux-gnu/4.4.1/man
--infodir=/usr/share/gcc-data/x86_64-unknown-linux-gnu/4.4.1/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/include/g++-v4
--host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu
--disable-altivec --disable-fixed-point --with-ppl --with-cloog --disable-nls
--with-system-zlib --disable-checking --disable-werror --enable-secureplt
--enable-multilib --disable-libmudflap --disable-libssp --enable-libgomp
--enable-cld
--with-python-dir=/share/gcc-data/x86_64-unknown-linux-gnu/4.4.1/python
--disable-libgcj --enable-languages=c,c++ --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.4.1 p1.0'
Thread model: posix
gcc version 4.4.1 (Gentoo 4.4.1 p1.0)


-- 
           Summary: ICE with -O1 -ftree-loop-distribution -floop-block
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dirtyepic at gentoo dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41562

Reply via email to