gcc 4.4.3 exhausted all memory(3.2G) and got stuck in an infinite loop:
gcc-4.4.3 -O3 MTest-1.c
while gcc-4.4.1 works fine with the same option.

gcc-4.4.3 config options:
^_^ $../../exe/bin/gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../src/configure
--prefix=/home/wuwei/testbed/gcc-4.4.3/obj/../exe --enable-languages=c
Thread model: posix
gcc version 4.4.3 (GCC) 

and config info of the compiler which compiled gcc 4.4.3:
^_^ $gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu9'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9)


-- 
           Summary: infinite & memory leak when using -O3 option
           Product: gcc
           Version: 4.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wuwei08 at iscas dot ac dot cn
 GCC build triplet: x86_32-Ubuntu-Linux
  GCC host triplet: x86_32-Ubuntu-Linux
GCC target triplet: x86_32-Ubuntu-Linux


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

Reply via email to