i'm using amd turion RM75 CPU under msys-mingw64 i want to make a fully optimized gcc of my own, so first i generated a general version of gcc. when i was making binutils the second time with -march=k8-sse3, i got this message:
gcc -o chew.$$ -O3 -fomit-frame-pointer -pipe -march=k8-sse3 -mfpmath=sse -m64 - mthreads -minline-stringops-dynamically -mcmodel=large -s -Wl,--as-needed \ -I.. -I../../../src/bfd/doc/.. -I../../../src/bfd/doc/../../include - I../../../src/bfd/doc/../../intl -I../../intl ../../../src/bfd/doc/chew.c; \ /bin/sh ../../../src/bfd/doc/../../move-if-change chew.$$ chew.exe ../../../src/bfd/doc/chew.c: In function 'push_number': ../../../src/bfd/doc/chew.c:403:10: warning: cast from pointer to integer of dif ferent size ../../../src/bfd/doc/chew.c: In function 'compile': ../../../src/bfd/doc/chew.c:1364:29: warning: cast to pointer from integer of di fferent size ../../../src/bfd/doc/chew.c: In function 'bang': ../../../src/bfd/doc/chew.c:1386:4: warning: cast to pointer from integer of dif ferent size ../../../src/bfd/doc/chew.c: In function 'atsign': ../../../src/bfd/doc/chew.c:1395:13: warning: cast to pointer from integer of di fferent size ../../../src/bfd/doc/chew.c:1571:1: error: unable to find a register to spill in class 'AREG' ../../../src/bfd/doc/chew.c:1571:1: error: this is the insn: (insn 1666 1663 1668 74 ../../../src/bfd/doc/chew.c:1235 (set (mem/f/c/i:DI (sym bol_ref:DI ("tos") [flags 0x2] <var_decl 00000000039FE780 tos>) [10 tos+0 S8 A12 8]) (symbol_ref:DI ("stack") [flags 0x2] <var_decl 00000000039FE6E0 stack>)) 90 {*movabsdi_1_rex64} (expr_list:REG_EQUAL (symbol_ref:DI ("stack") [flags 0x2 ] <var_decl 00000000039FE6E0 stack>) (nil))) ../../../src/bfd/doc/chew.c:1571:1: internal compiler error: in spill_failure, a t reload1.c:2158 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. i don't know whether it's a bug of gcc or simply AMD hadn't fully supported SSE3 thx -- Summary: -march=k8-sse3 on turion-rm75 failed Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: aflyhorse at foxmail dot com GCC host triplet: x86_64-w64-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43477