Ticket #47035: patch-revert-clang-detection-on-Lion.diff
File patch-revert-clang-detection-on-Lion.diff, 4.9 KB (added by su-v, 9 years ago) |
---|
-
crypto/aes/asm/aesni-mb-x86_64.pl
reverted:
63 63 $avx = ($1>=10) + ($1>=11); 64 64 } 65 65 66 if (!$avx && `$ENV{CC} -v 2>&1` =~ /( (?:^clang|LLVM)version|based on LLVM) ([3-9]\.[0-9]+)/) {66 if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/) { 67 67 $avx = ($2>=3.0) + ($2>3.0); 68 68 } 69 69 -
crypto/aes/asm/aesni-sha1-x86_64.pl
reverted:
96 96 $avx=1 if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) && 97 97 `ml64 2>&1` =~ /Version ([0-9]+)\./ && 98 98 $1>=10); 99 $avx=1 if (!$avx && `$ENV{CC} -v 2>&1` =~ /( (?:^clang|LLVM)version|based on LLVM) ([3-9]\.[0-9]+)/ && $2>=3.0);99 $avx=1 if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/ && $2>=3.0); 100 100 101 101 $shaext=1; ### set to zero if compiling for 1.0.1 102 102 -
crypto/aes/asm/aesni-sha256-x86_64.pl
reverted:
60 60 $avx = ($1>=10) + ($1>=12); 61 61 } 62 62 63 if (!$avx && `$ENV{CC} -v 2>&1` =~ /( (?:^clang|LLVM)version|based on LLVM) ([3-9]\.[0-9]+)/) {63 if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/) { 64 64 $avx = ($2>=3.0) + ($2>3.0); 65 65 } 66 66 -
crypto/bn/asm/rsaz-x86_64.pl
reverted:
113 113 $addx = ($1>=12); 114 114 } 115 115 116 if (!$addx && `$ENV{CC} -v 2>&1` =~ /( (?:^clang|LLVM)version|based on LLVM) ([3-9])\.([0-9]+)/) {116 if (!$addx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9])\.([0-9]+)/) { 117 117 my $ver = $2 + $3/100.0; # 3.1->3.01, 3.10->3.10 118 118 $addx = ($ver>=3.03); 119 119 } -
crypto/bn/asm/x86_64-mont.pl
reverted:
68 68 $addx = ($1>=12); 69 69 } 70 70 71 if (!$addx && `$ENV{CC} -v 2>&1` =~ /( (?:^clang|LLVM)version|based on LLVM) ([3-9])\.([0-9]+)/) {71 if (!$addx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9])\.([0-9]+)/) { 72 72 my $ver = $2 + $3/100.0; # 3.1->3.01, 3.10->3.10 73 73 $addx = ($ver>=3.03); 74 74 } -
crypto/bn/asm/x86_64-mont5.pl
reverted:
53 53 $addx = ($1>=12); 54 54 } 55 55 56 if (!$addx && `$ENV{CC} -v 2>&1` =~ /( (?:^clang|LLVM)version|based on LLVM) ([3-9])\.([0-9]+)/) {56 if (!$addx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9])\.([0-9]+)/) { 57 57 my $ver = $2 + $3/100.0; # 3.1->3.01, 3.10->3.10 58 58 $addx = ($ver>=3.03); 59 59 } -
crypto/ec/asm/ecp_nistz256-x86_64.pl
reverted:
81 81 $addx = ($1>=12); 82 82 } 83 83 84 if (!$addx && `$ENV{CC} -v 2>&1` =~ /( (?:^clang|LLVM)version|based on LLVM) ([3-9])\.([0-9]+)/) {84 if (!$addx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9])\.([0-9]+)/) { 85 85 my $ver = $2 + $3/100.0; # 3.1->3.01, 3.10->3.10 86 86 $avx = ($ver>=3.0) + ($ver>=3.01); 87 87 $addx = ($ver>=3.03); -
crypto/modes/asm/aesni-gcm-x86_64.pl
reverted:
57 57 $avx = ($1>=10) + ($1>=11); 58 58 } 59 59 60 if (!$avx && `$ENV{CC} -v 2>&1` =~ /( (?:^clang|LLVM)version|based on LLVM) ([3-9]\.[0-9]+)/) {60 if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/) { 61 61 $avx = ($2>=3.0) + ($2>3.0); 62 62 } 63 63 -
crypto/modes/asm/ghash-x86_64.pl
reverted:
106 106 $avx = ($1>=10) + ($1>=11); 107 107 } 108 108 109 if (!$avx && `$ENV{CC} -v 2>&1` =~ /( (?:^clang|LLVM)version|based on LLVM) ([3-9]\.[0-9]+)/) {109 if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/) { 110 110 $avx = ($2>=3.0) + ($2>3.0); 111 111 } 112 112 -
crypto/sha/asm/sha1-mb-x86_64.pl
reverted:
59 59 $avx = ($1>=10) + ($1>=11); 60 60 } 61 61 62 if (!$avx && `$ENV{CC} -v 2>&1` =~ /( (?:^clang|LLVM)version|based on LLVM) ([3-9]\.[0-9]+)/) {62 if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/) { 63 63 $avx = ($2>=3.0) + ($2>3.0); 64 64 } 65 65 -
crypto/sha/asm/sha1-x86_64.pl
reverted:
108 108 $avx = ($1>=10) + ($1>=11); 109 109 } 110 110 111 if (!$avx && `$ENV{CC} -v 2>&1` =~ /( (?:^clang|LLVM)version|based on LLVM) ([2-9]\.[0-9]+)/) {111 if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([2-9]\.[0-9]+)/) { 112 112 $avx = ($2>=3.0) + ($2>3.0); 113 113 } 114 114 -
crypto/sha/asm/sha256-mb-x86_64.pl
reverted:
60 60 $avx = ($1>=10) + ($1>=11); 61 61 } 62 62 63 if (!$avx && `$ENV{CC} -v 2>&1` =~ /( (?:^clang|LLVM)version|based on LLVM) ([3-9]\.[0-9]+)/) {63 if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/) { 64 64 $avx = ($2>=3.0) + ($2>3.0); 65 65 } 66 66 -
crypto/sha/asm/sha512-x86_64.pl
reverted:
125 125 $avx = ($1>=10) + ($1>=11); 126 126 } 127 127 128 if (!$avx && `$ENV{CC} -v 2>&1` =~ /( (?:^clang|LLVM)version|based on LLVM) ([3-9]\.[0-9]+)/) {128 if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/) { 129 129 $avx = ($2>=3.0) + ($2>3.0); 130 130 } 131 131