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)

upstream commit reversed, patch level adjusted

  • crypto/aes/asm/aesni-mb-x86_64.pl

    reverted:
     
    6363        $avx = ($1>=10) + ($1>=11);
    6464}
    6565
    66 if (!$avx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([3-9]\.[0-9]+)/) {
     66if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/) {
    6767        $avx = ($2>=3.0) + ($2>3.0);
    6868}
    6969
  • crypto/aes/asm/aesni-sha1-x86_64.pl

    reverted:
     
    9696$avx=1 if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
    9797           `ml64 2>&1` =~ /Version ([0-9]+)\./ &&
    9898           $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);
    100100
    101101$shaext=1;      ### set to zero if compiling for 1.0.1
    102102
  • crypto/aes/asm/aesni-sha256-x86_64.pl

    reverted:
     
    6060        $avx = ($1>=10) + ($1>=12);
    6161}
    6262
    63 if (!$avx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([3-9]\.[0-9]+)/) {
     63if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/) {
    6464        $avx = ($2>=3.0) + ($2>3.0);
    6565}
    6666
  • crypto/bn/asm/rsaz-x86_64.pl

    reverted:
     
    113113        $addx = ($1>=12);
    114114}
    115115
    116 if (!$addx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([3-9])\.([0-9]+)/) {
     116if (!$addx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9])\.([0-9]+)/) {
    117117        my $ver = $2 + $3/100.0;        # 3.1->3.01, 3.10->3.10
    118118        $addx = ($ver>=3.03);
    119119}
  • crypto/bn/asm/x86_64-mont.pl

    reverted:
     
    6868        $addx = ($1>=12);
    6969}
    7070
    71 if (!$addx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([3-9])\.([0-9]+)/) {
     71if (!$addx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9])\.([0-9]+)/) {
    7272        my $ver = $2 + $3/100.0;        # 3.1->3.01, 3.10->3.10
    7373        $addx = ($ver>=3.03);
    7474}
  • crypto/bn/asm/x86_64-mont5.pl

    reverted:
     
    5353        $addx = ($1>=12);
    5454}
    5555
    56 if (!$addx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([3-9])\.([0-9]+)/) {
     56if (!$addx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9])\.([0-9]+)/) {
    5757        my $ver = $2 + $3/100.0;        # 3.1->3.01, 3.10->3.10
    5858        $addx = ($ver>=3.03);
    5959}
  • crypto/ec/asm/ecp_nistz256-x86_64.pl

    reverted:
     
    8181        $addx = ($1>=12);
    8282}
    8383
    84 if (!$addx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([3-9])\.([0-9]+)/) {
     84if (!$addx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9])\.([0-9]+)/) {
    8585        my $ver = $2 + $3/100.0;        # 3.1->3.01, 3.10->3.10
    8686        $avx = ($ver>=3.0) + ($ver>=3.01);
    8787        $addx = ($ver>=3.03);
  • crypto/modes/asm/aesni-gcm-x86_64.pl

    reverted:
     
    5757        $avx = ($1>=10) + ($1>=11);
    5858}
    5959
    60 if (!$avx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([3-9]\.[0-9]+)/) {
     60if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/) {
    6161        $avx = ($2>=3.0) + ($2>3.0);
    6262}
    6363
  • crypto/modes/asm/ghash-x86_64.pl

    reverted:
     
    106106        $avx = ($1>=10) + ($1>=11);
    107107}
    108108
    109 if (!$avx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([3-9]\.[0-9]+)/) {
     109if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/) {
    110110        $avx = ($2>=3.0) + ($2>3.0);
    111111}
    112112
  • crypto/sha/asm/sha1-mb-x86_64.pl

    reverted:
     
    5959        $avx = ($1>=10) + ($1>=11);
    6060}
    6161
    62 if (!$avx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([3-9]\.[0-9]+)/) {
     62if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/) {
    6363        $avx = ($2>=3.0) + ($2>3.0);
    6464}
    6565
  • crypto/sha/asm/sha1-x86_64.pl

    reverted:
     
    108108        $avx = ($1>=10) + ($1>=11);
    109109}
    110110
    111 if (!$avx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([2-9]\.[0-9]+)/) {
     111if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([2-9]\.[0-9]+)/) {
    112112        $avx = ($2>=3.0) + ($2>3.0);
    113113}
    114114
  • crypto/sha/asm/sha256-mb-x86_64.pl

    reverted:
     
    6060        $avx = ($1>=10) + ($1>=11);
    6161}
    6262
    63 if (!$avx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([3-9]\.[0-9]+)/) {
     63if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/) {
    6464        $avx = ($2>=3.0) + ($2>3.0);
    6565}
    6666
  • crypto/sha/asm/sha512-x86_64.pl

    reverted:
     
    125125        $avx = ($1>=10) + ($1>=11);
    126126}
    127127
    128 if (!$avx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([3-9]\.[0-9]+)/) {
     128if (!$avx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9]\.[0-9]+)/) {
    129129        $avx = ($2>=3.0) + ($2>3.0);
    130130}
    131131