Index: gcc/gcc/config/spu/spu-elf.h |
diff --git a/gcc/gcc/config/spu/spu-elf.h b/gcc/gcc/config/spu/spu-elf.h |
index 532313119cb77d5c1956c15b1e2c268126e0fa75..967c8abc6176d8fd543f101ae9e9a8832b3b8b63 100644 |
--- a/gcc/gcc/config/spu/spu-elf.h |
+++ b/gcc/gcc/config/spu/spu-elf.h |
@@ -48,8 +48,9 @@ |
object constructed before entering `main'. */ |
#undef STARTFILE_SPEC |
-#define STARTFILE_SPEC "%{mstdmain: crt2.o%s} %{!mstdmain: crt1.o%s} \ |
- crti.o%s crtbegin.o%s" |
+#define STARTFILE_SPEC "%{mstdmain: %{pg|p:gcrt2.o%s;:crt2.o%s}}\ |
+ %{!mstdmain: %{pg|p:gcrt1.o%s;:crt1.o%s}}\ |
+ crti.o%s crtbegin.o%s" |
#undef ENDFILE_SPEC |
#define ENDFILE_SPEC "crtend.o%s crtn.o%s" |
@@ -68,8 +69,14 @@ |
#define LINK_SPEC "%{mlarge-mem: --defsym __stack=0xfffffff0 }" |
-#define LIB_SPEC \ |
- "-( %{!shared:%{g*:-lg}} -lc -lgloss -)" |
+#define LIB_SPEC "-( %{!shared:%{g*:-lg}} -lc -lgloss -) \ |
+ %{mno-atomic-updates:-lgcc_cachemgr_nonatomic; :-lgcc_cachemgr} \ |
+ %{mcache-size=128:-lgcc_cache128k; \ |
+ mcache-size=64 :-lgcc_cache64k; \ |
+ mcache-size=32 :-lgcc_cache32k; \ |
+ mcache-size=16 :-lgcc_cache16k; \ |
+ mcache-size=8 :-lgcc_cache8k; \ |
+ :-lgcc_cache64k}" |
/* Turn off warnings in the assembler too. */ |
#undef ASM_SPEC |