Created attachment 23710 [details] The preprocessed file (*.i*) that triggers the bug, generated by adding -save-temps to the complete compilation command, compressed with gzip. I am trying to compile the CGAL v3.7 ("www.cgal.org") library on IA-64, which fails with: In file included from /scratch/build/CGAL-3.7/src/CGAL/all_files.cpp:37:0: /scratch/build/CGAL-3.7/src/CGAL/MP_Float.cpp: In function ‘std::pair<std::pair<double, double>, int> CGAL::to_interval_exp(const CGAL::MP_Float&)’: /scratch/build/CGAL-3.7/src/CGAL/MP_Float.cpp:400:1: internal compiler error: in issue_nops_and_insn, at config/ia64/ia64.c:8258 Continuing as per "http://gcc.gnu.org/bugs/#report". Full Terminal output follows here, the output from "-save-temps" comes as an attachment. /home/radar-08/modules-ia64/gcc/4.5.2/bin/g++ -v -save-temps -DCGAL_EXPORTS -DNDEBUG -frounding-math -O3 -DNDEBUG -fPIC -I/scratch/build/CGAL-3.7/include -I/home/h0/radar-08/modules-ia64/cgal/3.7/release/include -I/home/radar-08/modules-ia64/cgal/3.7/release/include -o CMakeFiles/CGAL.dir/all_files.cpp.o -c /scratch/build/CGAL-3.7/src/CGAL/all_files.cpp Using built-in specs. COLLECT_GCC=/home/radar-08/modules-ia64/gcc/4.5.2/bin/g++ COLLECT_LTO_WRAPPER=/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../libexec/gcc/ia64-unknown-linux-gnu/4.5.2/lto-wrapper Target: ia64-unknown-linux-gnu Configured with: ../gcc-4.5.2/configure --prefix=/home/radar-08/modules-ia64/gcc/4.5.2 --with--mpfr=/home/radar-08/modules-ia64/gcc/4.5.2 --with-gmp=/home/radar-08/modules-ia64/gcc/4.5.2 --with-mpc=/home/radar-08/modules-ia64/gcc/4.5.2 --with-libelf=/home/radar-08/modules-ia64/gcc/4.5.2 --enable-lto --enable-gold --enable-bootstrap Thread model: posix gcc version 4.5.2 (GCC) COLLECT_GCC_OPTIONS='-v' '-save-temps' '-DCGAL_EXPORTS' '-DNDEBUG' '-frounding-math' '-O3' '-DNDEBUG' '-fPIC' '-I/scratch/build/CGAL-3.7/include' '-I/home/h0/radar-08/modules-ia64/cgal/3.7/release/include' '-I/home/radar-08/modules-ia64/cgal/3.7/release/include' '-o' 'CMakeFiles/CGAL.dir/all_files.cpp.o' '-c' '-shared-libgcc' /home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../libexec/gcc/ia64-unknown-linux-gnu/4.5.2/cc1plus -E -quiet -v -I/scratch/build/CGAL-3.7/include -I/home/h0/radar-08/modules-ia64/cgal/3.7/release/include -I/home/radar-08/modules-ia64/cgal/3.7/release/include -iprefix /home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/ -D_GNU_SOURCE -DCGAL_EXPORTS -DNDEBUG -DNDEBUG /scratch/build/CGAL-3.7/src/CGAL/all_files.cpp -frounding-math -fPIC -O3 -fpch-preprocess -o all_files.ii ignoring nonexistent directory "/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../ia64-unknown-linux-gnu/include" ignoring duplicate directory "/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/../../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2" ignoring duplicate directory "/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/../../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/ia64-unknown-linux-gnu" ignoring duplicate directory "/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/../../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/backward" ignoring duplicate directory "/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/../../lib/gcc/ia64-unknown-linux-gnu/4.5.2/include" ignoring duplicate directory "/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/../../lib/gcc/ia64-unknown-linux-gnu/4.5.2/include-fixed" ignoring nonexistent directory "/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/../../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../ia64-unknown-linux-gnu/include" ignoring duplicate directory "/home/radar-08/modules-ia64/cgal/3.7/release/include" #include "..." search starts here: #include <...> search starts here: /scratch/build/CGAL-3.7/include /home/h0/radar-08/modules-ia64/cgal/3.7/release/include /home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2 /home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/ia64-unknown-linux-gnu /home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/backward /home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/include /home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/include-fixed /usr/local/include /home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/../../include /usr/include End of search list. COLLECT_GCC_OPTIONS='-v' '-save-temps' '-DCGAL_EXPORTS' '-DNDEBUG' '-frounding-math' '-O3' '-DNDEBUG' '-fPIC' '-I/scratch/build/CGAL-3.7/include' '-I/home/h0/radar-08/modules-ia64/cgal/3.7/release/include' '-I/home/radar-08/modules-ia64/cgal/3.7/release/include' '-o' 'CMakeFiles/CGAL.dir/all_files.cpp.o' '-c' '-shared-libgcc' /home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../libexec/gcc/ia64-unknown-linux-gnu/4.5.2/cc1plus -fpreprocessed all_files.ii -quiet -dumpbase all_files.cpp -auxbase-strip CMakeFiles/CGAL.dir/all_files.cpp.o -O3 -version -frounding-math -fPIC -o all_files.s GNU C++ (GCC) version 4.5.2 (ia64-unknown-linux-gnu) compiled by GNU C version 4.5.2, GMP version 4.3.2, MPFR version 3.0.0, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU C++ (GCC) version 4.5.2 (ia64-unknown-linux-gnu) compiled by GNU C version 4.5.2, GMP version 4.3.2, MPFR version 3.0.0, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: bc569a0bfc4176672ca2778f0e5982ab In file included from /scratch/build/CGAL-3.7/src/CGAL/all_files.cpp:37:0: /scratch/build/CGAL-3.7/src/CGAL/MP_Float.cpp: In function ‘std::pair<std::pair<double, double>, int> CGAL::to_interval_exp(const CGAL::MP_Float&)’: /scratch/build/CGAL-3.7/src/CGAL/MP_Float.cpp:400:1: internal compiler error: in issue_nops_and_insn, at config/ia64/ia64.c:8258 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.
Created attachment 23714 [details] shorter test case Shorter test case. Reproducible on IA64 HP-UX as well with -mlp64 (and -O3 -fPIC).
I can reproduce this using GCC 4.5.2 on HP-UX but I cannot reproduce it with Top of tree or the 4.6 branch.
It looks like this is the same problem as PR 43603 (but with a different error result). I can reproduce it on the trunk at r167587, but it is fixed at r167588. To fix it in the 4.5 branch we just need to backport the fix to PR 43603 to the 4.5 branch.
(In reply to comment #3) > It looks like this is the same problem as PR 43603 (but with a different error > result). I can reproduce it on the trunk at r167587, but it is fixed at > r167588. Confirming fixed in r167588. Should we mark this one as a duplicate of PR 43603?
This is a duplicate of 43603 which is fixed on ToT for 4.6 and later and should be back ported on to the 4.5 branch. *** This bug has been marked as a duplicate of bug 43603 ***