pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/udunits Make it a bit harder for the compiler to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/201ea61762a8
branches:  trunk
changeset: 505480:201ea61762a8
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jan 03 19:21:17 2006 +0000

description:
Make it a bit harder for the compiler to optimise the sin() test
away: Use a global variable as argument.

diffstat:

 math/udunits/distinfo         |   4 ++--
 math/udunits/patches/patch-ac |  18 +++++++++++-------
 2 files changed, 13 insertions(+), 9 deletions(-)

diffs (52 lines):

diff -r 0250c08be621 -r 201ea61762a8 math/udunits/distinfo
--- a/math/udunits/distinfo     Tue Jan 03 19:14:27 2006 +0000
+++ b/math/udunits/distinfo     Tue Jan 03 19:21:17 2006 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.9 2005/08/08 18:13:13 jlam Exp $
+$NetBSD: distinfo,v 1.10 2006/01/03 19:21:17 joerg Exp $
 
 SHA1 (udunits-1.12.1/udunits.tar.Z) = ee37ca61eb1dcf34165b7573cc1645824bd6968d
 RMD160 (udunits-1.12.1/udunits.tar.Z) = fb2f0442673ca47d302782c84ce37b8da1e16535
 Size (udunits-1.12.1/udunits.tar.Z) = 365873 bytes
 SHA1 (patch-aa) = 0998141196898a7bc168fe45c5019586645167f2
 SHA1 (patch-ab) = 9a98e048499d38f8dedba6fb1a169e178dbd77ba
-SHA1 (patch-ac) = 508fafdc724f9b95543dd16c2bd2f0242eb892a8
+SHA1 (patch-ac) = 7b2264a977dbc389bffbbd4d50364878587f9738
 SHA1 (patch-ad) = d48978bd66d9ef691cd9c70b057a7e5d8a802fb6
diff -r 0250c08be621 -r 201ea61762a8 math/udunits/patches/patch-ac
--- a/math/udunits/patches/patch-ac     Tue Jan 03 19:14:27 2006 +0000
+++ b/math/udunits/patches/patch-ac     Tue Jan 03 19:21:17 2006 +0000
@@ -1,22 +1,26 @@
-$NetBSD: patch-ac,v 1.1 2004/02/02 03:19:25 kristerw Exp $
+$NetBSD: patch-ac,v 1.2 2006/01/03 19:21:17 joerg Exp $
 
---- configure.orig     2004-02-02 04:09:56.000000000 +0100
-+++ configure  2004-02-02 04:11:44.000000000 +0100
-@@ -2095,7 +2095,7 @@
+--- configure.orig     2003-08-29 15:53:25.000000000 +0000
++++ configure
+@@ -2094,8 +2094,9 @@ echo "configure:2093: checking for (void
+ #line 2095 "configure"
  #include "confdefs.h"
  
++double val;
  int main() {
 -(void)sin(0.0);
-+return sin(0.0);
++return sin(val);
  ; return 0; }
  EOF
  if { (eval echo configure:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-@@ -2142,7 +2142,7 @@
+@@ -2141,8 +2142,9 @@ echo "configure:2140: checking for (void
+ #line 2142 "configure"
  #include "confdefs.h"
  
++double val;
  int main() {
 -(void)sin(0.0);
-+return sin(0.0);
++return sin(val);
  ; return 0; }
  EOF
  if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then



Home | Main Index | Thread Index | Old Index