diff options
author | obache <obache> | 2013-07-28 12:54:52 +0000 |
---|---|---|
committer | obache <obache> | 2013-07-28 12:54:52 +0000 |
commit | a23089483d85d5172a80cb63c05c9faf9624adee (patch) | |
tree | a5efeb7ee8885a950709ed338a5822467efa2ecc /lang/g95 | |
parent | 2e713bbf9b5d3a2b9fc15478577abdf1b8736e24 (diff) | |
download | pkgsrc-a23089483d85d5172a80cb63c05c9faf9624adee.tar.gz |
fixes missng restore stack address.
PR pkg/47906
Bump PKGREVISION.
Diffstat (limited to 'lang/g95')
-rw-r--r-- | lang/g95/Makefile | 4 | ||||
-rw-r--r-- | lang/g95/distinfo | 3 | ||||
-rw-r--r-- | lang/g95/patches/patch-libf95.a-0.93_runtime_main.c | 30 |
3 files changed, 34 insertions, 3 deletions
diff --git a/lang/g95/Makefile b/lang/g95/Makefile index 552db66563a..47ee1e7406e 100644 --- a/lang/g95/Makefile +++ b/lang/g95/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.17 2013/06/01 14:44:01 tron Exp $ +# $NetBSD: Makefile,v 1.18 2013/07/28 12:54:52 obache Exp $ DISTNAME= g95_source PKGNAME= g95-0.93 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= lang MASTER_SITES= http://ftp.g95.org/v${PKGVERSION_NOREV}/ EXTRACT_SUFX= .tgz diff --git a/lang/g95/distinfo b/lang/g95/distinfo index 530202945d5..969bfa7e4b6 100644 --- a/lang/g95/distinfo +++ b/lang/g95/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.15 2013/05/20 05:47:34 adam Exp $ +$NetBSD: distinfo,v 1.16 2013/07/28 12:54:52 obache Exp $ SHA1 (g95_source.tgz) = b5e503fd6459b65cbda73190685f9490230d9cff RMD160 (g95_source.tgz) = 98d03e9a1835f4b3553a72a798bdf1d90a757176 @@ -26,3 +26,4 @@ SHA1 (patch-libf95.a-0.93_io_read.c) = 594bcfb15e59dcaaec5a6a21a58af17e8f41eae9 SHA1 (patch-libf95.a-0.93_math_ff.c) = 353121bc08a86765d18b0e6f051ba91f7e65e9c2 SHA1 (patch-libf95.a-0.93_math_x87.S) = d1eb02bd2358b6abb9b8dc3e32629cba540adcc4 SHA1 (patch-libf95.a-0.93_quad_power16.c) = fc7375aa90ecf75bb8ba26d41739614040b16e09 +SHA1 (patch-libf95.a-0.93_runtime_main.c) = 8b870b363c3f0d108979fe44248632b77258eb0d diff --git a/lang/g95/patches/patch-libf95.a-0.93_runtime_main.c b/lang/g95/patches/patch-libf95.a-0.93_runtime_main.c new file mode 100644 index 00000000000..0c19b8aa1cb --- /dev/null +++ b/lang/g95/patches/patch-libf95.a-0.93_runtime_main.c @@ -0,0 +1,30 @@ +$NetBSD: patch-libf95.a-0.93_runtime_main.c,v 1.1 2013/07/28 12:54:52 obache Exp $ + +* fixes missing restore stack address. PR pkg/47906 + +--- libf95.a-0.93/runtime/main.c.orig 2010-04-18 15:47:28.000000000 +0000 ++++ libf95.a-0.93/runtime/main.c +@@ -50,9 +50,11 @@ int main(int argc, char *argv[]) { + * unaligned. */ + + #if HAVE_REAL_10 == 1 || HAVE_REAL_10 == 2 ++ int diff; + asm("mov %%esp, %%eax\n" + "and $0x04, %%eax\n" +- "sub %%eax, %%esp\n" : : : "%eax"); ++ "movl %%eax, %0\n" ++ "sub %%eax, %%esp\n" : "=r"(diff) : : "%eax"); + #endif + + g95_runtime_start(argc, argv); +@@ -62,5 +64,10 @@ int main(int argc, char *argv[]) { + memory_done(); + g95_runtime_stop(); + ++#if HAVE_REAL_10 == 1 || HAVE_REAL_10 == 2 ++ asm("mov %0, %%eax\n" ++ "add %%eax, %%esp\n" : : "r"(diff) : "%eax"); ++#endif ++ + return 0; + } |