https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64919
--- Comment #36 from The Written Word <bugzilla-gcc at thewrittenword dot com> --- (In reply to The Written Word from comment #35) > I am trying to build 4.9.4 with a patched 4.7.4 and am running into the > following failure: > /opt/build/china/gcc-4.9.4/.obj/./gcc/xgcc > -B/opt/build/china/gcc-4.9.4/.obj/./gcc/ > -B/opt/build/gcc49/ia64-hp-hpux11.31/bin/ > -B/opt/build/gcc49/ia64-hp-hpux11.31/lib/ -isystem > /opt/build/gcc49/ia64-hp-hpux11.31/include -isystem > /opt/build/gcc49/ia64-hp-hpux11.31/sys-include -g -O2 -O2 -g -O2 > -DIN_GCC -DUSE_LIBUNWIND_EXCEPTIONS -W -Wall -Wno-narrowing > -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes > -Wmissing-prototypes -Wold-style-definition -isystem ./include -g > -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -I. -I. -I../.././gcc > -I/opt/build/china/gcc-4.9.4/libgcc -I/opt/build/china/gcc-4.9.4/libgcc/. > -I/opt/build/china/gcc-4.9.4/libgcc/../gcc > -I/opt/build/china/gcc-4.9.4/libgcc/../include -DHAVE_CC_TLS -o emutls.o > -MT emutls.o -MD -MP -MF emutls.dep -fexceptions -c > /opt/build/china/gcc-4.9.4/libgcc/emutls.c -fvisibility=hidden -DHIDE_EXPORTS > /opt/build/china/gcc-4.9.4/libgcc/emutls.c: In function > '__emutls_get_address': > /opt/build/china/gcc-4.9.4/libgcc/emutls.c:188:1: internal compiler error: > in simplify_subreg, at simplify-rtx.c:5917 > } > ^ > > Should I build this with -O0 as well? I can build 4.9.3 on HP-UX 11.31/IA but not 4.9.4. So, looks like something changed to break the build in 4.9.4.