------- Comment #8 from wlodzimierz dot lipert+gcc at gmail dot com 2010-02-07 19:06 ------- Hi,
I think problem may be in gcc.c do_spec_1() function, GCC segfaults after calling do_spec() -> do_spec_2() -> do_spec_1() (seg fault here). Building of libgcc with DEBUG_SPECS. /home/vlad/opt/gcc-build/./gcc/xgcc -B/home/vlad/opt/gcc-build/./gcc/ -B/home/vlad/CPU12/m68hc12-elf/bin/ -B/home/vlad/CPU12/m68hc12-elf/lib/ -isystem /home/vlad/CPU12/m68hc12-elf/include -isystem /home/vlad/CPU12/m68hc12-elf/sys-include -O2 -g -save-temps -g -DDEBUG_SPECS -m68hc11 -Os -mrelax -DUSE_GAS -DIN_GCC -Dinhibit_libc -g -DIN_LIBGCC2 -I. -I. -I../../.././gcc -I../../../../gcc/libgcc -I../../../../gcc/libgcc/. -I../../../../gcc/libgcc/../gcc -I../../../../gcc/libgcc/../include -DHAVE_CC_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../../../../gcc/libgcc/../gcc/libgcc2.c \ Processing spec (trad_capable_cpp), which is 'cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}' Processing spec (cpp_options), which is '%(cpp_unique_options) %1 %{m*} %{std*&ansi&trigraphs} %{W*&pedantic*} %{w} %{f*} %{g*:%{!g0:%{!fno-working-directory:-fworking-directory}}} %{O*} %{undef} %{save-temps:-fpch-preprocess}' Processing spec (cpp_unique_options), which is '%{C|CC:%{!E:%eGCC does not support -C or -CC without -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*&F*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{!MT:%{!MQ:%{MD|MMD:%{o*:-MQ %*}}}}}}} %{remap} %{g3|ggdb3|gstabs3|gcoff3|gxcoff3|gvms3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{fmudflap:-D_MUDFLAP -include mf-runtime.h} %{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include mf-runtime.h} %{E|M|MM:%W{o*}}' Processing spec (cc1_options), which is '%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*&ansi&trigraphs} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{--help=*:--help=%(VALUE)} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} %{fmudflap|fmudflapth:-fno-builtin -fno-merge-constants} %{coverage:-fprofile-arcs -ftest-coverage}' Processing spec (invoke_as), which is '%{!S:-o %|.s | as %(asm_options) %m.s %A }' ../../../../gcc/libgcc/../gcc/libgcc2.c: In function '__muldi3': ../../../../gcc/libgcc/../gcc/libgcc2.c:566: internal compiler error: Segmentation fault -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42940