[Bug c++/20025] New: Internal error while compiling

sjt at star dot sr dot bham dot ac dot uk gcc-bugzilla@gcc.gnu.org
Thu Feb 17 16:43:00 GMT 2005

While compiling the routine datatypes.cpp in the GDL package, g++ generates an
internal error. This appears to be powerpc specific. 

Command line & Error messages follow.
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.3  -O2  -MT datatypes.o
-MD -MP -MF ".deps/datatypes.Tpo"   -c -o datatypes.o  datatypes.cpp -save-temps
In file included from /usr/include/python2.3/Python.h:8,
                 from basegdl.hpp:26,
                 from datatypes.hpp:31,
                 from dstructgdl.hpp:25,
                 from datatypes.cpp:27:
/usr/include/python2.3/pyconfig.h:856:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/c++/3.3/powerpc-linux/bits/os_defines.h:39,
                 from /usr/include/c++/3.3/powerpc-linux/bits/c++config.h:35,
                 from /usr/include/c++/3.3/iomanip:45,
                 from datatypes.cpp:24:
/usr/include/features.h:131:1: warning: this is the location of the previous
In file included from datatypes.cpp:40:
default_io.cpp: In function `std::istream& operator>>(std::istream&,
   Data_<Sp2>&) [with Sp2 = SpDFloat, Sp = SpDFloat]':
default_io.cpp:185: error: insn does not satisfy its constraints:
(insn 2857 445 511 12 (nil) (set (reg:SI 9 r9)
        (reg/f:SI 114 virtual-stack-vars)) 298 {*movsi_internal1} (nil)
default_io.cpp:185: internal compiler error: in reload_cse_simplify_operands,
   at reload1.c:8394
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions, see

Compiling the included default_io.cpp on its own does NOT generate the error. 
Removing the optimization flag genrates a segfault at the same location.
The datatypes.ii file is too large (1.5MB) to attach here and can be obtained
at:  ftp://ftp.sr.bham.ac.uk/pub/sjt/datatypes.ii
Since the machine doesn't have problems with other large compiles (e.g. the
Linux kernel) I don't think it's a hardware problem.

           Summary: Internal error while compiling
           Product: gcc
           Version: 3.3.5
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sjt at star dot sr dot bham dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-unknown-linux-gnu
  GCC host triplet: powerpc-unknown-linux-gnu
GCC target triplet: powerpc-unknown-linux-gnu


More information about the Gcc-bugs mailing list