[Bug tree-optimization/43415] New: [4.4 regression] gcc takes unusually large amounts of memory and time to compile nested for loop at -O3

2010-03-17 Thread wlam at kosmix dot com
.4 --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror
--with-arch-32=i486 --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9)

--and the original source code (from which the above examples were minimized)
previously compiled on a Red Hat version of gcc 4.3.0 without complaint:

$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-cpu=generic --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC)


-- 
   Summary: [4.4 regression] gcc takes unusually large amounts of
memory and time to compile nested for loop at -O3
   Product: gcc
   Version: 4.4.3
Status: UNCONFIRMED
  Severity: normal
      Priority: P3
 Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wlam at kosmix dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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



[Bug tree-optimization/43416] New: [4.4 regression] internal compiler error in C++ template instantiations at -O3

2010-03-17 Thread wlam at kosmix dot com
I came across some code that previously compiled at -O3 without complaint on
gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) and gcc version 4.4.1 (Ubuntu
4.4.1-4ubuntu9), but triggered a segmentation fault on gcc 4.4.3.  After
minimization, here is the segmentation fault:

$ /net/test-hsa014/wlam/local/gcc-4.4.3/bin/gcc -Wfatal-errors -c -O3 -Wall
foo.cc
foo.cc: In member function ‘void TypeRegistry::registerType(int,
const ValueType&) [with ValueType = int (*)()]’:
foo.cc:119: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

$ /net/test-hsa014/wlam/local/gcc-4.4.3/bin/g++ -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.4.3/configure
--prefix=/net/test-hsa014/wlam/local/gcc-4.4.3 --disable-multilib
Thread model: posix
gcc version 4.4.3 (GCC)

(built from the GNU source distribution, though


-- 
   Summary: [4.4 regression] internal compiler error in C++ template
instantiations at -O3
   Product: gcc
   Version: 4.4.3
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wlam at kosmix dot com
 GCC build triplet: x86_64-redhat-linux
  GCC host triplet: x86_64-redhat-linux
GCC target triplet: x86_64-redhat-linux


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



[Bug tree-optimization/43416] [4.4 regression] internal compiler error in C++ template instantiations at -O3

2010-03-17 Thread wlam at kosmix dot com


--- Comment #1 from wlam at kosmix dot com  2010-03-18 03:11 ---
Created an attachment (id=20137)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20137&action=view)
Minimized C++ source causing segmentation fault in gcc 4.4.3 at -O3


-- 


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



[Bug tree-optimization/43416] [4.4 regression] internal compiler error in C++ template instantiations at -O3

2010-03-17 Thread wlam at kosmix dot com


--- Comment #2 from wlam at kosmix dot com  2010-03-18 03:14 ---
Oops, the description is truncated:

(built from the GNU source distribution, though the Fedora version of 4.4.3
shows similar behavior--

$ g++ -Wfatal-errors -c -O3 -Wall foo.ccfoo.cc: In member function ‘void
TypeRegistry::registerType(int, const ValueType&) [with ValueType =
int (*)()]’:
foo.cc:119: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cc1IzDg0.out file, please attach this to
your bugreport.

$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.3 20100127 (Red Hat 4.4.3-4) (GCC)

--as well)


-- 


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



[Bug tree-optimization/43416] [4.4 regression] internal compiler error in C++ template instantiations at -O3

2010-03-18 Thread wlam at kosmix dot com


--- Comment #5 from wlam at kosmix dot com  2010-03-19 04:23 ---
I think you're right--I built gcc trunk at r157545, and I don't see the
segmentation fault there.  (Thanks for your quick response!)


-- 


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



[Bug tree-optimization/43415] [4.4 Regression] Consumes large amounts of memory and time in PRE at -O3

2010-03-19 Thread wlam at kosmix dot com


--- Comment #6 from wlam at kosmix dot com  2010-03-20 06:40 ---
Thanks for the quick fix!  (I was just trying trunk at r157584 after your
comment above.)


-- 


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