pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/openexr Add volatile keyword to inline assemb...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4d636fdc5904
branches: trunk
changeset: 649941:4d636fdc5904
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Mon Apr 13 18:45:46 2015 +0000
description:
Add volatile keyword to inline assembly tests to ensure the instructions we
are testing for are actually checked, and remove an empty list of clobbered
registers. Fixes tests with gcc-4.2.1 on 32-bit OSX, hint from tnn@
diffstat:
graphics/openexr/distinfo | 4 ++--
graphics/openexr/patches/patch-aa | 16 +++++++++++++++-
2 files changed, 17 insertions(+), 3 deletions(-)
diffs (49 lines):
diff -r 232c37b7f093 -r 4d636fdc5904 graphics/openexr/distinfo
--- a/graphics/openexr/distinfo Mon Apr 13 14:03:15 2015 +0000
+++ b/graphics/openexr/distinfo Mon Apr 13 18:45:46 2015 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.26 2014/08/19 13:34:42 joerg Exp $
+$NetBSD: distinfo,v 1.27 2015/04/13 18:45:46 jperkin Exp $
SHA1 (openexr-2.2.0.tar.gz) = d09a68c4443b7a12a0484c073adaef348b44cb92
RMD160 (openexr-2.2.0.tar.gz) = a825ed42e731da3bc39f25ce2a310712a5b0f956
@@ -6,5 +6,5 @@
SHA1 (patch-IlmImf_ImfFastHuf.cpp) = bf583b5e0efb1af6e00d671b07d4cc154e13ac44
SHA1 (patch-IlmImf_ImfSystemSpecific.cpp) = 79bf644181650fa7dc13c04dfeb68142bde6a2b6
SHA1 (patch-IlmImf_ImfSystemSpecific.h) = f36d049085e42beabcf5f7af5354009391a1f9f2
-SHA1 (patch-aa) = 08b38d81338fc755c321911a9ffa3cccb53e99f3
+SHA1 (patch-aa) = 8633b04f9c13f163947e7ac81eb4ef7a6fd9eb88
SHA1 (patch-ab) = 0efe7155350e1976d1d7bad9da8b1a037fd84572
diff -r 232c37b7f093 -r 4d636fdc5904 graphics/openexr/patches/patch-aa
--- a/graphics/openexr/patches/patch-aa Mon Apr 13 14:03:15 2015 +0000
+++ b/graphics/openexr/patches/patch-aa Mon Apr 13 18:45:46 2015 +0000
@@ -1,7 +1,8 @@
-$NetBSD: patch-aa,v 1.9 2014/08/11 19:42:46 adam Exp $
+$NetBSD: patch-aa,v 1.10 2015/04/13 18:45:46 jperkin Exp $
Shell portability fix: see
https://savannah.nongnu.org/bugs/index.php?22222
+Ensure asm instructions are checked correctly.
--- configure.orig 2014-08-10 04:48:26.000000000 +0000
+++ configure
@@ -14,6 +15,19 @@
+@@ -17584,10 +17584,10 @@ main ()
+ int n = 0;
+ int eax = 0;
+ int edx = 0;
+- __asm__(
++ __asm__ volatile (
+ "xgetbv \n"
+ "vzeroupper "
+- : "=a"(eax), "=d"(edx) : "c"(n) : );
++ : "=a"(eax), "=d"(edx) : "c"(n) );
+ #else
+ #error No GCC style inline asm supported for AVX instructions
+ #endif
@@ -17631,7 +17631,7 @@ fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $gcc_inline_asm_avx" >&5
Home |
Main Index |
Thread Index |
Old Index