components/p7zip/patches/sparc-64bit.patch
author shreya.jain@oracle.com <shreya.jain@oracle.com>
Mon, 07 Nov 2016 11:25:12 -0800
changeset 7254 b5b14b374b25
parent 5923 125ce0e23ed8
permissions -rw-r--r--
24850430 dns/client disabled in container
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5923
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     1
SPARC should be recognized as a 64-bit CPU.  Nothing seems to break with or
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     2
without this patch, but a few dictionary sizes are bigger with it, and the
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     3
banner changes to indicate the 64-bitness.
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     4
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     5
This is suitable for passing upstream.
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     6
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     7
--- p7zip_15.14.1/C/CpuArch.h	2016-02-16 22:27:16.000000000 -0800
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     8
+++ p7zip_15.14.1/C/CpuArch.h	2016-04-22 17:34:27.655604054 -0700
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     9
@@ -27,7 +27,8 @@
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    10
 #if defined(MY_CPU_AMD64) \
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    11
     || defined(_M_IA64) \
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    12
     || defined(__AARCH64EL__) \
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    13
-    || defined(__AARCH64EB__)
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    14
+    || defined(__AARCH64EB__) \
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    15
+    || defined(__sparcv9)
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    16
   #define MY_CPU_64BIT
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    17
 #endif
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    18