http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59935
Bug ID: 59935 Summary: [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org markus@x4 src % gcc -P --save-temps -O3 -o cairo-ft-font.o -c -I../../../../dist/system_wrappers -include /var/tmp/mozilla-central/config/gcc_hidden.h -DPACKAGE_VERSION='"moz"' -DPACKAGE_BUGREPORT='"http://bugzilla.mozilla.org/"' -DCAIRO_HAS_PTHREAD -D_GNU_SOURCE -DMOZ_TREE_CAIRO -DMOZ_TREE_PIXMAN -DMOZ_GLUE_IN_PROGRAM -DNO_NSPR_10_SUPPORT -I/var/tmp/mozilla-central/gfx/cairo/cairo/src -I. -I../../../../dist/include -I/var/tmp/moz-build-dir/dist/include/nspr -I/var/tmp/moz-build-dir/dist/include/nss -I/usr/include/freetype2 -I/usr/include/freetype2 -fPIC -include ../../../../mozilla-config.h -DMOZILLA_CLIENT -MD -MP -MF .deps/cairo-ft-font.o.pp -Wall -Wpointer-arith -Wdeclaration-after-statement -Werror=return-type -Werror=int-to-pointer-cast -Wtype-limits -Wempty-body -Wsign-compare -Wno-unused -Wcast-align -march=native -std=gnu99 -fgnu89-inline -fno-strict-aliasing -fno-math-errno -pthread -pipe -DNDEBUG -DTRIMMED -O3 -fomit-frame-pointer -Wno-missing-field-initializers -Wno-conversion /var/tmp/mozilla-central/gfx/cairo/cairo/src/cairo-ft-font.c gcc: warning: -pipe ignored because -save-temps specified /var/tmp/mozilla-central/gfx/cairo/cairo/src/cairo-ft-font.c:64:0: warning: "_GNU_SOURCE" redefined [enabled by default] #define _GNU_SOURCE /* for RTLD_DEFAULT */ ^ <command-line>:0:0: note: this is the location of the previous definition <built-in>: internal compiler error: Segmentation fault 0x99c78f crash_signal ../../gcc/gcc/toplev.c:337 0xf0d0a7 add_file_to_cache_tab ../../gcc/gcc/input.c:296 0xf0d0a7 lookup_or_add_file_to_cache_tab ../../gcc/gcc/input.c:330 0xf0d0a7 location_get_source_line(expanded_location, int*) ../../gcc/gcc/input.c:704 0xf07feb diagnostic_show_locus(diagnostic_context*, diagnostic_info const*) ../../gcc/gcc/diagnostic.c:304 0xf0902b diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*) ../../gcc/gcc/diagnostic.c:800 0x5cde84 c_cpp_error(cpp_reader*, int, int, unsigned int, unsigned int, char const*, __va_list_tag (*) [1]) ../../gcc/gcc/c-family/c-common.c:9638 0xf17856 cpp_error_with_line(cpp_reader*, int, unsigned int, unsigned int, char const*, ...) ../../gcc/libcpp/errors.c:163 0xf278ff _cpp_create_definition ../../gcc/libcpp/macro.c:3124 0xf14051 do_define ../../gcc/libcpp/directives.c:584 0xf15887 _cpp_handle_directive ../../gcc/libcpp/directives.c:492 0xf223dc _cpp_lex_token ../../gcc/libcpp/lex.c:2067 0xf26fcf cpp_get_token_1 ../../gcc/libcpp/macro.c:2362 0x5e9d5f scan_translation_unit ../../gcc/gcc/c-family/c-ppoutput.c:176 0x5e9d5f preprocess_file(cpp_reader*) ../../gcc/gcc/c-family/c-ppoutput.c:101 0x5e8778 c_common_init() ../../gcc/gcc/c-family/c-opts.c:1040 0x57ad4d c_objc_common_init() ../../gcc/gcc/c/c-objc-common.c:65 0x99e7e6 lang_dependent_init ../../gcc/gcc/toplev.c:1712 0x99e7e6 do_compile ../../gcc/gcc/toplev.c:1900 Perhaps not surprisingly compiling the preprocessed file works fine. Started with r206957.