gcc: Unconditionally add some upstream RISC-V patches.

+6 -4
+6 -4
pkgs/development/compilers/gcc/7/default.nix
··· 57 57 enableParallelBuilding = true; 58 58 59 59 patches = 60 - [ ] 60 + [ # https://gcc.gnu.org/ml/gcc-patches/2018-02/msg00633.html 61 + ./riscv-pthread-reentrant.patch 62 + # https://gcc.gnu.org/ml/gcc-patches/2018-03/msg00297.html 63 + ./riscv-no-relax.patch 64 + ] 61 65 ++ optional (targetPlatform != hostPlatform) ../libstdc++-target.patch 62 66 ++ optional noSysDirs ../no-sys-dirs.patch 63 67 ++ optional (hostPlatform != buildPlatform) (fetchpatch { # XXX: Refine when this should be applied 64 68 url = "https://git.busybox.net/buildroot/plain/package/gcc/7.1.0/0900-remove-selftests.patch?id=11271540bfe6adafbc133caf6b5b902a816f5f02"; 65 69 sha256 = "0mrvxsdwip2p3l17dscpc1x8vhdsciqw1z5q9i6p5g9yg1cqnmgs"; 66 70 }) 67 - ++ optional langFortran ../gfortran-driving.patch 68 - # https://gcc.gnu.org/ml/gcc-patches/2018-02/msg00633.html 69 - ++ optional targetPlatform.isRiscV ./riscv-pthread-reentrant.patch; 71 + ++ optional langFortran ../gfortran-driving.patch; 70 72 71 73 javaEcj = fetchurl { 72 74 # The `$(top_srcdir)/ecj.jar' file is automatically picked up at