http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53789
Bug #: 53789 Summary: ICE in gen_reg_rtx, at emit-rtl.c:864/865 when compiling GNU MPFR on parisc Classification: Unclassified Product: gcc Version: 4.4.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: vincent-...@vinc17.net Created attachment 27712 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27712 preprocessed file When compiling GNU MPFR on a parisc machine (gcc61.fsffrance.org), I get an ICE (see below). This can be reproduced with: /opt/cfarm/release/4.4.1/bin/gcc -O3 tconst_pi.i where tconst_pi.i is attached. The bug is not reproducible with -O2 only. I couldn't find a similar bug report (including among the closed bugs), and there doesn't seem to be a more recent GCC version on this machine. $ ./config.status -V MPFR config.status 3.1.1-rc1 configured by ../mpfr-3.1.1-rc1/configure, generated by GNU Autoconf 2.69, with options "'--enable-assert=full' '--enable-thread-safe'" [GMP 4.2.2] $ gcc --version gcc (Debian 4.3.2-1.1) 4.3.2 $ make && make check [...] ../../mpfr-3.1.1-rc1/tests/tconst_log2.c: In function 'main': ../../mpfr-3.1.1-rc1/tests/tconst_log2.c:201: internal compiler error: in gen_reg_rtx, at emit-rtl.c:865 Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.3/README.Bugs> for instructions. make[2]: *** [tconst_log2.o] Error 1 make[2]: Leaving directory `/tmp/mpfrtests-vinc17-13638/obj/tests' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/tmp/mpfrtests-vinc17-13638/obj/tests' make: *** [check-recursive] Error 1 $ ./config.status -V MPFR config.status 3.1.1-rc1 configured by ./configure, generated by GNU Autoconf 2.69, with options "'--enable-assert=full' '--enable-thread-safe' 'CC=/opt/cfarm/release/4.4.1/bin/gcc' 'CFLAGS=-Wall -O3 -mpa-risc-1-1 -std=gnu99'" [GMP 4.2.2] $ /opt/cfarm/release/4.4.1/bin/gcc --version gcc (GCC) 4.4.1 $ make && make check [...] tconst_pi.c: In function 'main': tconst_pi.c:186: internal compiler error: in gen_reg_rtx, at emit-rtl.c:864 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make[2]: *** [tconst_pi.o] Error 1 make[2]: Leaving directory `/tmp/mpfrtests-vinc17-1115/mpfr-3.1.1-rc1/tests' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/tmp/mpfrtests-vinc17-1115/mpfr-3.1.1-rc1/tests' make: *** [check-recursive] Error 1 This also occurred with MPFR 3.0.0 and 3.1.0 (at least).