Skip to content
Permalink
Browse files

Issue pspdev#72: Failed installing: opentri

  • Loading branch information...
iaDRM
iaDRM committed Mar 6, 2017
1 parent 0e71649 commit b25311673f61676bf578d0106e903ed209ed204c
Showing with 21 additions and 0 deletions.
  1. +18 −0 patches/patch-gcc-bug-58158.patch
  2. +3 −0 scripts/005-gcc-stage2.sh
@@ -0,0 +1,18 @@
diff --git a/mids.md b/mips.md
index 70f9f7d..9da8337 100644
--- gcc-4.9.3/gcc/config/mips/mips.md
+++ gcc-4.9.3-psp/gcc/config/mips/mips.md
@@ -6960,10 +6960,10 @@
(if_then_else:GPR (match_dup 5)
(match_operand:GPR 2 "reg_or_0_operand")
(match_operand:GPR 3 "reg_or_0_operand")))]
- "ISA_HAS_CONDMOVE || ISA_HAS_INT_CONDMOVE"
+ "ISA_HAS_CONDMOVE"
{
- if (ISA_HAS_INT_CONDMOVE
- && GET_MODE_CLASS (GET_MODE (operands[0])) == MODE_FLOAT)
+ if (!ISA_HAS_FP_CONDMOVE
+ && !INTEGRAL_MODE_P (GET_MODE (XEXP (operands[1], 0))))
FAIL;

mips_expand_conditional_move (operands);
@@ -23,6 +23,9 @@
cd gcc-$GCC_VERSION
patch -p1 -i ../../patches/gcc-$GCC_VERSION-PSP.patch
patch -p0 -i ../../patches/patch-gcc_cp_cfns.h
if [ "$GCC_VERSION" == "4.9.3" ]; then
patch -p1 -i ../../patches/patch-gcc-bug-58158.patch
fi

## Unpack the library source code.
ln -fs ../gmp-$GMP_VERSION gmp

0 comments on commit b253116

Please sign in to comment.
You can’t perform that action at this time.