From c0685ca73fbb109b5488fefb7c710f561ccf1fe4 Mon Sep 17 00:00:00 2001 From: Mark Street Date: Thu, 23 Nov 2023 17:18:33 +0000 Subject: [PATCH] Fix -pipe on gcc 2.5.7-psx --- patches/mips-2.5.7.h.patch | 20 +++++++++++++++----- patches/psx-2.5.7.patch | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/patches/mips-2.5.7.h.patch b/patches/mips-2.5.7.h.patch index 124273a..ea83310 100644 --- a/patches/mips-2.5.7.h.patch +++ b/patches/mips-2.5.7.h.patch @@ -1,8 +1,6 @@ -diff --git "a/config/mips/mips.h" "b/config/mips/mips.h" -index 35a56b8..966f694 100644 ---- "a/config/mips/mips.h" -+++ "b/config/mips/mips.h" -@@ -519,10 +519,6 @@ while (0) +--- config/mips/mips.h 1993-11-15 06:54:12.000000000 +0000 ++++ config/mips/mips-patched.h 2023-11-22 09:50:03.011252767 +0000 +@@ -519,10 +519,6 @@ #error "Define CPP_SPEC in the appropriate tm.h file" #endif @@ -13,3 +11,15 @@ index 35a56b8..966f694 100644 #ifndef LIB_SPEC #error "Define LIB_SPEC in the appropriate tm.h file" #endif +@@ -556,10 +552,7 @@ + #define ASM_SPEC "\ + %{!mgas: \ + %{!mrnames: %{!.s:-nocpp} %{.s: %{cpp} %{nocpp}}} \ +- %{pipe: %e-pipe is not supported.} \ +- %{EB} %{!EB:-EB} \ +- %{EL: %e-EL not supported} \ +- %{mips1} %{mips2} %{mips3} \ ++ %{EB} %{EL} %{mips1} %{mips2} %{mips3} \ + %{noasmopt:-O0} \ + %{!noasmopt:%{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3}} \ + %{g} %{g0} %{g1} %{g2} %{g3} %{v} %{K} \ diff --git a/patches/psx-2.5.7.patch b/patches/psx-2.5.7.patch index 5fb6612..293b437 100644 --- a/patches/psx-2.5.7.patch +++ b/patches/psx-2.5.7.patch @@ -25,7 +25,7 @@ diff --color -ruN -p1 gcc-2.6.3/config/mips/psx.h gcc-2.6.3-psx/config/mips/psx. + +/* Definitions by GIL for PSX */ + -+/*#define TARGET_DEFAULT (MASK_GAS+MASK_SOFT_FLOAT+MASK_GPOPT)*/ ++#define TARGET_DEFAULT (MASK_GAS+MASK_SOFT_FLOAT) + +#define CPP_PREDEFINES "-Dmips -DMIPSEL" +