pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/guile add x86_64 support. patch tested by Krister



details:   https://anonhg.NetBSD.org/pkgsrc/rev/92ab166f5f28
branches:  trunk
changeset: 471032:92ab166f5f28
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Tue Mar 16 00:46:39 2004 +0000

description:
add x86_64 support.  patch tested by Krister

diffstat:

 lang/guile/distinfo         |   4 +-
 lang/guile/patches/patch-ae |  54 +++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 54 insertions(+), 4 deletions(-)

diffs (81 lines):

diff -r c8d17fbfd41d -r 92ab166f5f28 lang/guile/distinfo
--- a/lang/guile/distinfo       Tue Mar 16 00:03:54 2004 +0000
+++ b/lang/guile/distinfo       Tue Mar 16 00:46:39 2004 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.17 2003/12/14 17:14:40 wiz Exp $
+$NetBSD: distinfo,v 1.18 2004/03/16 00:46:39 dmcmahill Exp $
 
 SHA1 (guile-1.6.4.tar.gz) = fe5a759ed233e8633e9e59d0eb0a8035756e2e4e
 Size (guile-1.6.4.tar.gz) = 2778075 bytes
 SHA1 (patch-ad) = 403390879c4377f7a2e1d2bf8dc1f58118b45bc8
-SHA1 (patch-ae) = 5d4d4ebaa51d0d220d5adc7c3fae6889e2c42789
+SHA1 (patch-ae) = 4dd28ab34928608e00fc474bdebfd3a178f8f152
 SHA1 (patch-af) = e30137918a83a735bcc9b1c4458df4905fe46087
 SHA1 (patch-ag) = 06f0edd45fae828e41252e9b6964a2e0fab6f1af
 SHA1 (patch-ah) = e66596a5ecc5c2d4fd09833507499b4d02c7af8a
diff -r c8d17fbfd41d -r 92ab166f5f28 lang/guile/patches/patch-ae
--- a/lang/guile/patches/patch-ae       Tue Mar 16 00:03:54 2004 +0000
+++ b/lang/guile/patches/patch-ae       Tue Mar 16 00:46:39 2004 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ae,v 1.8 2003/12/14 17:14:40 wiz Exp $
+$NetBSD: patch-ae,v 1.9 2004/03/16 00:46:39 dmcmahill Exp $
 
---- libguile/gc_os_dep.c.orig  2003-04-16 22:16:21.000000000 +0200
+--- libguile/gc_os_dep.c.orig  Wed Apr 16 20:16:21 2003
 +++ libguile/gc_os_dep.c
 @@ -98,12 +98,27 @@ typedef int GC_bool;
  #    define NETBSD
@@ -41,3 +41,53 @@
  #     define OSF1     /* a.k.a Digital Unix */
  #   endif
  #   define mach_type_known
+@@ -279,6 +294,11 @@ typedef int GC_bool;
+ #   define NETBSD
+ #   define mach_type_known
+ # endif
++# if defined(__NetBSD__) && defined(__x86_64__)
++#   define X86_64
++#   define NETBSD
++#   define mach_type_known
++# endif
+ # if defined(bsdi) && defined(i386)
+ #    define I386
+ #    define BSDI
+@@ -412,12 +432,12 @@ typedef int GC_bool;
+ /*
+  * For each architecture and OS, the following need to be defined:
+  *
+- * CPP_WORD_SZ is a simple integer constant representing the word size.
++ * CPP_WORDSZ is a simple integer constant representing the word size.
+  * in bits.  We assume byte addressibility, where a byte has 8 bits.
+- * We also assume CPP_WORD_SZ is either 32 or 64.
++ * We also assume CPP_WORDSZ is either 32 or 64.
+  * (We care about the length of pointers, not hardware
+  * bus widths.  Thus a 64 bit processor with a C compiler that uses
+- * 32 bit pointers should use CPP_WORD_SZ of 32, not 64. Default is 32.)
++ * 32 bit pointers should use CPP_WORDSZ of 32, not 64. Default is 32.)
+  *
+  * MACH_TYPE is a string representation of the machine type.
+  * OS_TYPE is analogous for the OS.
+@@ -961,6 +981,21 @@ typedef int GC_bool;
+ #      define OS_TYPE "GNU"
+ #    endif
+ # endif
++
++# ifdef X86_64
++#   define MACH_TYPE "X86_64"
++#   define ALIGNMENT 8
++#   define ALIGN_DOUBLE
++#   define CPP_WORDSZ 64
++#   ifdef NETBSD
++#     define OS_TYPE "NETBSD"
++#   endif
++#   if defined(NETBSD)
++#     define HEURISTIC2
++      extern char etext;
++#     define DATASTART ((ptr_t)(&etext))
++#   endif
++#   endif
+ 
+ # ifdef NS32K
+ #   define MACH_TYPE "NS32K"



Home | Main Index | Thread Index | Old Index