OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

182 lines
6.0 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../emacs/x86_64.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. x86-64 support patch imported from Fedora Core
  17. - Rene Rebe <rene@exactcode.de>
  18. --- emacs-21.2/configure.in~ 2002-11-05 18:26:11.000000000 +0900
  19. +++ emacs-21.2/configure.in 2002-11-05 18:26:11.000000000 +0900
  20. @@ -1052,6 +1055,11 @@
  21. machine=f301 opsys=uxpv
  22. ;;
  23. + ## AMD x86-64 Linux-based GNU system
  24. + x86_64-*-linux-gnu* )
  25. + machine=amdx86-64 opsys=gnu-linux
  26. + ;;
  27. +
  28. * )
  29. unported=yes
  30. ;;
  31. --- /dev/null 2002-11-06 15:24:04.000000000 +0900
  32. +++ emacs-21.2/src/m/amdx86-64.h 2002-11-06 15:24:04.000000000 +0900
  33. @@ -0,0 +1,131 @@
  34. +/* machine description file for AMD x86-64.
  35. + Copyright (C) 2002 Free Software Foundation, Inc.
  36. +
  37. +This file is part of GNU Emacs.
  38. +
  39. +GNU Emacs is free software; you can redistribute it and/or modify
  40. +it under the terms of the GNU General Public License as published by
  41. +the Free Software Foundation; either version 2, or (at your option)
  42. +any later version.
  43. +
  44. +GNU Emacs is distributed in the hope that it will be useful,
  45. +but WITHOUT ANY WARRANTY; without even the implied warranty of
  46. +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  47. +GNU General Public License for more details.
  48. +
  49. +You should have received a copy of the GNU General Public License
  50. +along with GNU Emacs; see the file COPYING. If not, write to
  51. +the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  52. +Boston, MA 02111-1307, USA. */
  53. +
  54. +
  55. +/* The following line tells the configuration script what sort of
  56. + operating system this machine is likely to run.
  57. + USUAL-OPSYS="linux" */
  58. +
  59. +#define BITS_PER_LONG 64
  60. +#define BITS_PER_EMACS_INT 64
  61. +
  62. +/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
  63. + is the most significant byte. */
  64. +
  65. +#undef WORDS_BIG_ENDIAN
  66. +
  67. +/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
  68. + * group of arguments and treat it as an array of the arguments. */
  69. +
  70. +#define NO_ARG_ARRAY
  71. +
  72. +/* Define WORD_MACHINE if addresses and such have
  73. + * to be corrected before they can be used as byte counts. */
  74. +
  75. +/* #define WORD_MACHINE */
  76. +
  77. +/* Now define a symbol for the cpu type, if your compiler
  78. + does not define it automatically:
  79. + Ones defined so far include vax, m68000, ns16000, pyramid,
  80. + orion, tahoe, APOLLO and many others */
  81. +/* __x86_64 defined automatically. */
  82. +
  83. +/* Use type int rather than a union, to represent Lisp_Object */
  84. +/* This is desirable for most machines. */
  85. +
  86. +#define NO_UNION_TYPE
  87. +
  88. +/* Define the type to use. */
  89. +#define EMACS_INT long
  90. +#define EMACS_UINT unsigned long
  91. +#define SPECIAL_EMACS_INT
  92. +
  93. +/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
  94. + the 24-bit bit field into an int. In other words, if bit fields
  95. + are always unsigned.
  96. +
  97. + If you use NO_UNION_TYPE, this flag does not matter. */
  98. +
  99. +#define EXPLICIT_SIGN_EXTEND
  100. +
  101. +/* Data type of load average, as read out of kmem. */
  102. +
  103. +#define LOAD_AVE_TYPE long
  104. +
  105. +/* Convert that into an integer that is 100 for a load average of 1.0 */
  106. +
  107. +#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
  108. +
  109. +/* Define CANNOT_DUMP on machines where unexec does not work.
  110. + Then the function dump-emacs will not be defined
  111. + and temacs will do (load "loadup") automatically unless told otherwise. */
  112. +
  113. +/* #define CANNOT_DUMP */
  114. +
  115. +/* Define VIRT_ADDR_VARIES if the virtual addresses of
  116. + pure and impure space as loaded can vary, and even their
  117. + relative order cannot be relied on.
  118. +
  119. + Otherwise Emacs assumes that text space precedes data space,
  120. + numerically. */
  121. +
  122. +/* #define VIRT_ADDR_VARIES */
  123. +
  124. +/* Define C_ALLOCA if this machine does not support a true alloca
  125. + and the one written in C should be used instead.
  126. + Define HAVE_ALLOCA to say that the system provides a properly
  127. + working alloca function and it should be used.
  128. + Define neither one if an assembler-language alloca
  129. + in the file alloca.s should be used. */
  130. +
  131. +#define C_ALLOCA
  132. +#define HAVE_ALLOCA
  133. +
  134. +/* Define NO_REMAP if memory segmentation makes it not work well
  135. + to change the boundary between the text section and data section
  136. + when Emacs is dumped. If you define this, the preloaded Lisp
  137. + code will not be sharable; but that's better than failing completely. */
  138. +
  139. +/* #define NO_REMAP */
  140. +
  141. +#define PNTR_COMPARISON_TYPE unsigned long
  142. +
  143. +/* On the 64 bit architecture, we can use 60 bits for addresses */
  144. +
  145. +#define VALBITS 60
  146. +
  147. +/* This definition of MARKBIT is necessary because of the comparison of
  148. + ARRAY_MARK_FLAG and MARKBIT in an #if in lisp.h, which cpp doesn't like. */
  149. +
  150. +#define MARKBIT 0x8000000000000000L
  151. +
  152. +/* Define XINT and XUINT so that they can take arguments of type int */
  153. +#define XINT(a) (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS))
  154. +#define XUINT(a) ((long) (a) & VALMASK)
  155. +
  156. +/* Define XPNTR to avoid or'ing with DATA_SEG_BITS */
  157. +
  158. +#define XPNTR(a) XUINT (a)
  159. +
  160. +#undef START_FILES
  161. +#define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o
  162. +
  163. +#undef LIB_STANDARD
  164. +#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o
  165. --- emacs-21.4/configure 2003-03-18 14:19:12.000000000 +0000
  166. +++ emacs-21.4-fixed/configure 2005-09-03 16:08:19.000000000 +0000
  167. @@ -1686,6 +1686,11 @@
  168. machine=f301 opsys=uxpv
  169. ;;
  170. + ## AMD x86-64 Linux-based GNU system
  171. + x86_64-*-linux-gnu* )
  172. + machine=amdx86-64 opsys=gnu-linux
  173. + ;;
  174. +
  175. * )
  176. unported=yes
  177. ;;