http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57559
Bug ID: 57559 Summary: S/390: ICE with lra Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: krebbel at gcc dot gnu.org t.c: typedef int int32_t; typedef unsigned char uint8_t; typedef unsigned int uint32_t; struct _IO_marker { }; static const int32_t mfcone = 1; static const uint8_t *mfctop = (const uint8_t *) &mfcone; int32_t decContextTestEndian (uint8_t quiet) { int32_t res = 0; uint32_t dle = (uint32_t) 0; if (*mfctop != 0) { res = (int32_t) * mfctop - dle; } return res; } cc1 -fpreprocessed -quiet -march=z10 -m64 -mzarch -O1 t.c -o t.s t.c: In function ‘decContextTestEndian’: t.c:19:1: internal compiler error: Max. number of generated reload insns per insn is achieved (90) } ^ 0x806b1637 lra_constraints(bool) /home/andreas/clean/gcc-head/gcc/lra-constraints.c:3698 0x80697d8b lra(_IO_FILE*) /home/andreas/clean/gcc-head/gcc/lra.c:2278 0x80621aeb do_reload /home/andreas/clean/gcc-head/gcc/ira.c:4641 0x80621dfd rest_of_handle_reload /home/andreas/clean/gcc-head/gcc/ira.c:4753 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. The testcase works fine with either -mno-lra or -march=z9-109