http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46147
Summary: g++ segfault compiling gnat 0.8.8 on mips-linux n32 Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: virik...@gmail.com Created attachment 22132 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22132 The preprocessed source causing the trouble. At the middle of building gnat 0.8.8 (with boost 1.44.0) g++ dies with an internal error related to a segmentation fault. I'm using gcc 4.5.1 with glibc 2.12.1 in a mips64-linux running n32 userland code, and binutils from a snapshot of the end of august (for the loongson2f fix). The gcc is built, as a special flag, with --with-arch=loongson2f. I attach the preprocessed file that triggers the error. Compile the file with the same flags the gnash build system decided: g++ -g -O2 -fvisibility-inlines-hidden -fPIC -c Removing only "-fPIC", the problem goes away. Using "-O0" instead, also makes the problem go away. Removing only "-fvisibility-inlines-hidden" also makes the problem go away. The system has 1GiB of RAM, and monitoring with 'top', I see g++ never goes beyond 300MiB.