components/openssl/openssl-1.0.1/patches/40_suppress_v8plus_abi_warnings.patch
author Ivo Raisr <ivo.raisr@oracle.com>
Fri, 01 May 2015 03:19:17 -0700
changeset 4240 44a396ca557c
permissions -rw-r--r--
20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4240
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
     1
#
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
     2
# Patch developed in-house. Solaris-specific; not suitable for upstream.
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
     3
#
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
     4
# Suppress warnings about sparcv8+ ABI violation
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
     5
# when building T4-specific modules as 32-bit:
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
     6
#    v8+ ABI violation: illegal use of %i or %l register as rs1 in "brnz,a" instruction
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
     7
# This has been confirmed as a valid usecase and is thus intentional.
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
     8
#
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
     9
--- a/crypto/aes/Makefile.orig	čt dub 30 03:15:03 2015
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    10
+++ b/crypto/aes/Makefile	čt dub 30 03:19:32 2015
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    11
@@ -72,6 +72,9 @@
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    12
 aest4-sparcv9.s: asm/aest4-sparcv9.pl
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    13
 	$(PERL) asm/aest4-sparcv9.pl $(CFLAGS) > [email protected]
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    14
 
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    15
+aest4-sparcv9.o: aest4-sparcv9.s
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    16
+	$(AS) $(ASFLAGS) -Wa,-n -o [email protected] $^
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    17
+
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    18
 aes-ppc.s:	asm/aes-ppc.pl
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    19
 	$(PERL) asm/aes-ppc.pl $(PERLASM_SCHEME) [email protected]
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    20
 
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    21
--- a/crypto/sha/Makefile.orig	čt dub 30 14:37:32 2015
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    22
+++ b/crypto/sha/Makefile	čt dub 30 14:40:49 2015
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    23
@@ -71,6 +71,8 @@
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    24
 sha1-sparcv9.S:	asm/sha1-sparcv9.pl;	$(PERL) asm/sha1-sparcv9.pl [email protected] $(CFLAGS)
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    25
 sha256-sparcv9.S:asm/sha512-sparcv9.pl;	$(PERL) asm/sha512-sparcv9.pl [email protected] $(CFLAGS)
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    26
 sha512-sparcv9.S:asm/sha512-sparcv9.pl;	$(PERL) asm/sha512-sparcv9.pl [email protected] $(CFLAGS)
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    27
+sha512-sparcv9.o: sha512-sparcv9.S
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    28
+	$(CC) $(CFLAGS) -Wa,-n -c -o [email protected] $^
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    29
 
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    30
 sha1-ppc.s:	asm/sha1-ppc.pl;	$(PERL) asm/sha1-ppc.pl $(PERLASM_SCHEME) [email protected]
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    31
 sha256-ppc.s:	asm/sha512-ppc.pl;	$(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) [email protected]
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    32
--- a/crypto/bn/Makefile.orig	čt dub 30 14:43:20 2015
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    33
+++ b/crypto/bn/Makefile	čt dub 30 14:45:11 2015
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    34
@@ -79,8 +79,12 @@
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    35
 	$(PERL) asm/sparcv9-mont.pl $(CFLAGS) > [email protected]
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    36
 vis3-mont.s:		asm/vis3-mont.pl
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    37
 	$(PERL) asm/vis3-mont.pl $(CFLAGS) > [email protected]
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    38
+vis3-mont.o:	vis3-mont.s
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    39
+	$(AS) $(ASFLAGS) -Wa,-n -o [email protected] $^
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    40
 sparct4-mont.S:	asm/sparct4-mont.pl
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    41
 	$(PERL) asm/sparct4-mont.pl $(CFLAGS) > [email protected]
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    42
+sparct4-mont.o:	sparct4-mont.S
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    43
+	$(CC) $(CFLAGS) -Wa,-n -c -o [email protected] $^
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    44
 sparcv9-gf2m.S:	asm/sparcv9-gf2m.pl
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    45
 	$(PERL) asm/sparcv9-gf2m.pl $(CFLAGS) > [email protected]
44a396ca557c 20992215 warnings about sparcv8+ ABI violation found in OpenSSL build logs
Ivo Raisr <ivo.raisr@oracle.com>
parents:
diff changeset
    46