Hello! I've encountered internal compiler error which affects the whole 4.3
branch (source from vlc):
It fails with 4.3.3, 4.3.4 and 4.3-branch taken from svn (i didn't try 4.3.2).
It works ok with 4.4 branch and latest trunk.

sal...@salmin:~/gccbug$ ../systemroot/bin/g++4.3-branch -v -save-temps -O3
-ftree-parallelize-loops=2 AtmoZoneDefinition_cpped.cpp
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ./configure : (reconfigured) ./configure
--prefix=/home/salmin/systemroot --program-suffix=4.3-branch
--enable-languages=c,c++
Thread model: posix
gcc version 4.3.5 20091105 (prerelease) (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-O3' '-ftree-parallelize-loops=2'
'-shared-libgcc' '-mtune=generic' '-pthread'
 /home/salmin/systemroot/libexec/gcc/x86_64-unknown-linux-gnu/4.3.5/cc1plus -E
-quiet -v -D_GNU_SOURCE -D_REENTRANT AtmoZoneDefinition_cpped.cpp
-mtune=generic -ftree-parallelize-loops=2 -O3 -fpch-preprocess -o
AtmoZoneDefinition_cpped.ii
ignoring nonexistent directory
"/home/salmin/systemroot/lib/gcc/x86_64-unknown-linux-gnu/4.3.5/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:

/home/salmin/systemroot/lib/gcc/x86_64-unknown-linux-gnu/4.3.5/../../../../include/c++/4.3.5

/home/salmin/systemroot/lib/gcc/x86_64-unknown-linux-gnu/4.3.5/../../../../include/c++/4.3.5/x86_64-unknown-linux-gnu

/home/salmin/systemroot/lib/gcc/x86_64-unknown-linux-gnu/4.3.5/../../../../include/c++/4.3.5/backward
 /usr/local/include
 /home/salmin/systemroot/include
 /home/salmin/systemroot/lib/gcc/x86_64-unknown-linux-gnu/4.3.5/include
 /home/salmin/systemroot/lib/gcc/x86_64-unknown-linux-gnu/4.3.5/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-O3' '-ftree-parallelize-loops=2'
'-shared-libgcc' '-mtune=generic' '-pthread'
 /home/salmin/systemroot/libexec/gcc/x86_64-unknown-linux-gnu/4.3.5/cc1plus
-fpreprocessed AtmoZoneDefinition_cpped.ii -quiet -dumpbase
AtmoZoneDefinition_cpped.cpp -mtune=generic -auxbase AtmoZoneDefinition_cpped
-O3 -version -ftree-parallelize-loops=2 -o AtmoZoneDefinition_cpped.s
GNU C++ (GCC) version 4.3.5 20091105 (prerelease) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.3.5 20091105 (prerelease), GMP version
4.3.1, MPFR version 2.4.1-p2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 75c935b73fe74f5f276e5cfd3e1d84c4
AtmoZoneDefinition.cpp: In member function 'void
CAtmoZoneDefinition::Fill(unsigned char)':
AtmoZoneDefinition.cpp:22: internal compiler error: in get_smt_for, at
tree-ssa-alias.c:3310
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


Removing either -O3 or -ftree-parallelize-loops avoids the crash.
You can find the preprocessed source file here:
http://crocodile.iis.nsk.su/~salmin/AtmoZoneDefinition_cpped.cpp
I can try to reduce it if necessary.


-- 
           Summary: Internal error with -O3 and -ftree-parallelize-loops
           Product: gcc
           Version: 4.3.5
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: alexey dot salmin at gmail dot com
 GCC build triplet: Debian, x86_64
  GCC host triplet: Debian, x86_64
GCC target triplet: Debian, x86_64


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

Reply via email to