Skip to content

Commit 57e84c3

Browse files
authored
Fix -pipe on gcc 2.5.7-psx (#21)
1 parent dee38eb commit 57e84c3

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

patches/mips-2.5.7.h.patch

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
diff --git "a/config/mips/mips.h" "b/config/mips/mips.h"
2-
index 35a56b8..966f694 100644
3-
--- "a/config/mips/mips.h"
4-
+++ "b/config/mips/mips.h"
5-
@@ -519,10 +519,6 @@ while (0)
1+
--- config/mips/mips.h 1993-11-15 06:54:12.000000000 +0000
2+
+++ config/mips/mips-patched.h 2023-11-22 09:50:03.011252767 +0000
3+
@@ -519,10 +519,6 @@
64
#error "Define CPP_SPEC in the appropriate tm.h file"
75
#endif
86

@@ -13,3 +11,15 @@ index 35a56b8..966f694 100644
1311
#ifndef LIB_SPEC
1412
#error "Define LIB_SPEC in the appropriate tm.h file"
1513
#endif
14+
@@ -556,10 +552,7 @@
15+
#define ASM_SPEC "\
16+
%{!mgas: \
17+
%{!mrnames: %{!.s:-nocpp} %{.s: %{cpp} %{nocpp}}} \
18+
- %{pipe: %e-pipe is not supported.} \
19+
- %{EB} %{!EB:-EB} \
20+
- %{EL: %e-EL not supported} \
21+
- %{mips1} %{mips2} %{mips3} \
22+
+ %{EB} %{EL} %{mips1} %{mips2} %{mips3} \
23+
%{noasmopt:-O0} \
24+
%{!noasmopt:%{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3}} \
25+
%{g} %{g0} %{g1} %{g2} %{g3} %{v} %{K} \

patches/psx-2.5.7.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ diff --color -ruN -p1 gcc-2.6.3/config/mips/psx.h gcc-2.6.3-psx/config/mips/psx.
2525
+
2626
+/* Definitions by GIL for PSX */
2727
+
28-
+/*#define TARGET_DEFAULT (MASK_GAS+MASK_SOFT_FLOAT+MASK_GPOPT)*/
28+
+#define TARGET_DEFAULT (MASK_GAS+MASK_SOFT_FLOAT)
2929
+
3030
+#define CPP_PREDEFINES "-Dmips -DMIPSEL"
3131
+

0 commit comments

Comments
 (0)