https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64919
--- Comment #30 from The Written Word <bugzilla-gcc at thewrittenword dot com> --- (In reply to The Written Word from comment #29) > (In reply to Alexander from comment #28) > > this one file should recompile with -O1 optimization > > Thanks. I rebuilt with charset.c with -O1 and it compiled. I resumed the > build and the compile now fails with: > /opt/build/china/gcc-4.9.3/.obj/./prev-gcc/xg++ > -B/opt/build/china/gcc-4.9.3/.obj/./prev-gcc/ > -B/opt/build/gcc49/ia64-hp-hpux11.31/bin/ -nostdinc++ > -B/opt/build/china/gcc-4.9.3/.obj/prev-ia64-hp-hpux11.31/libstdc++-v3/src/. > libs > -B/opt/build/china/gcc-4.9.3/.obj/prev-ia64-hp-hpux11.31/libstdc++-v3/ > libsupc++/.libs > -I/opt/build/china/gcc-4.9.3/.obj/prev-ia64-hp-hpux11.31/libstdc++-v3/ > include/ia64-hp-hpux11.31 > -I/opt/build/china/gcc-4.9.3/.obj/prev-ia64-hp-hpux11.31/libstdc++-v3/ > include -I/opt/build/china/gcc-4.9.3/libstdc++-v3/libsupc++ > -L/opt/build/china/gcc-4.9.3/.obj/prev-ia64-hp-hpux11.31/libstdc++-v3/src/. > libs > -L/opt/build/china/gcc-4.9.3/.obj/prev-ia64-hp-hpux11.31/libstdc++-v3/ > libsupc++/.libs -c -DUSE_LIBUNWIND_EXCEPTIONS -DIN_GCC_FRONTEND -g -O2 > -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall > -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute > -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings > -DHAVE_CONFIG_H -I. -Ifortran -I/opt/build/china/gcc-4.9.3/gcc > -I/opt/build/china/gcc-4.9.3/gcc/fortran > -I/opt/build/china/gcc-4.9.3/gcc/../include -I./../intl > -I/opt/build/china/gcc-4.9.3/gcc/../libcpp/include > -I/opt/TWWfsw/libgmp51/include -I/opt/TWWfsw/libmpfr31/include > -I/opt/TWWfsw/libmpc10/include > -I/opt/build/china/gcc-4.9.3/gcc/../libdecnumber > -I/opt/build/china/gcc-4.9.3/gcc/../libdecnumber/dpd -I../libdecnumber > -I/opt/build/china/gcc-4.9.3/gcc/../libbacktrace -o fortran/scanner.o -MT > fortran/scanner.o -MMD -MP -MF fortran/.deps/scanner.TPo > /opt/build/china/gcc-4.9.3/gcc/fortran/scanner.c > /opt/build/china/gcc-4.9.3/gcc/fortran/scanner.c: In function 'const char* > gfc_read_orig_filename(const char*, const char**)': > /opt/build/china/gcc-4.9.3/gcc/fortran/scanner.c:2220:1: internal compiler > error: in plus_constant, at explow.c:87 > } > ^ Rebuilding with -O0 or with no optimization specified worked around this. Is that what others have done?