summaryrefslogtreecommitdiff
path: root/lang/g95
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2016-10-02 23:26:39 +0000
committermaya <maya@pkgsrc.org>2016-10-02 23:26:39 +0000
commit472f1661f95e14daeecd9ba3ba48ee9179f24466 (patch)
tree709ca7c5be4636b80a6a3fbdada883f0c9eae04e /lang/g95
parent29b0a9378de1caaa3450cbb987fe560ede5ae146 (diff)
downloadpkgsrc-472f1661f95e14daeecd9ba3ba48ee9179f24466.tar.gz
g95: now that I understand why -mips1 is chosen here, clarify it in the
comment for the patch. note: the choice of o32 for this package is questionable, and defaulting to n32 on gcc/config.gcc instead is probably the right thing, this package won't run on platforms that use o32, and the n32 linker can't handle the o32 objects apparently - it dies with "not enough GOT space for local GOT entries" (PR toolchain/51521). defaulting to n32 will allow deleting this patch, but I won't make the transition because I can't get further in the build and hit a compile assertion about MTYPE not matching CEXT (double float in my case), similar to GCC bug #20633.
Diffstat (limited to 'lang/g95')
-rw-r--r--lang/g95/distinfo4
-rw-r--r--lang/g95/patches/patch-libf95.a-0.93_runtime_mutex.c12
2 files changed, 9 insertions, 7 deletions
diff --git a/lang/g95/distinfo b/lang/g95/distinfo
index dd003d979b1..2a1d0e08768 100644
--- a/lang/g95/distinfo
+++ b/lang/g95/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.27 2016/09/28 15:34:54 maya Exp $
+$NetBSD: distinfo,v 1.28 2016/10/02 23:26:39 maya Exp $
SHA1 (g95_source.tgz) = b5e503fd6459b65cbda73190685f9490230d9cff
RMD160 (g95_source.tgz) = 98d03e9a1835f4b3553a72a798bdf1d90a757176
@@ -33,4 +33,4 @@ SHA1 (patch-libf95.a-0.93_math_ff.c) = d873e3fd699d9c9fd06681c1e136cf16cf013a1a
SHA1 (patch-libf95.a-0.93_math_x87.S) = 25dc2b613969947ae60fdc9b1dc6d9524b0157be
SHA1 (patch-libf95.a-0.93_quad_power16.c) = eb6711bcd1018cac675dbbe212cd22a831a9d191
SHA1 (patch-libf95.a-0.93_runtime_main.c) = dfde68072f38bf5bbb9c54ebeea5b9ce07d0c6be
-SHA1 (patch-libf95.a-0.93_runtime_mutex.c) = 8252537e4cbc5fd53b3f89e4403b581e3c73e52c
+SHA1 (patch-libf95.a-0.93_runtime_mutex.c) = 085b1f7a2bcc1c7de09489cd77e0b773876e2aa2
diff --git a/lang/g95/patches/patch-libf95.a-0.93_runtime_mutex.c b/lang/g95/patches/patch-libf95.a-0.93_runtime_mutex.c
index 7fad226e9f4..4c87eaa5e60 100644
--- a/lang/g95/patches/patch-libf95.a-0.93_runtime_mutex.c
+++ b/lang/g95/patches/patch-libf95.a-0.93_runtime_mutex.c
@@ -1,9 +1,11 @@
-$NetBSD: patch-libf95.a-0.93_runtime_mutex.c,v 1.1 2016/09/28 15:34:54 maya Exp $
+$NetBSD: patch-libf95.a-0.93_runtime_mutex.c,v 1.2 2016/10/02 23:26:40 maya Exp $
-gcc on netbsd/mips rejects ll/sc as it targets mips1 which lacks
-these instructions. tell it it's mips3 code. it will crash
-at runtime for mips1 (unlikely to compile this package), but
-makes it possible to build for newer mips.
+This package builds a gcc on netbsd/mips which defaults to o32 mips1
+output, and then uses it to compile g95 - which then uses assembly that
+is rejected for the chosen -mips1 by the linker.
+
+set mips3 for this segment, it'll stop being rejected by the linker, but
+will crash if anyone runs this code on actual mips1 (rare).
--- libf95.a-0.93/runtime/mutex.c.orig 2008-09-17 03:45:13.000000000 +0000
+++ libf95.a-0.93/runtime/mutex.c