fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / openssl / openssl-3650-masm.patch.1
blob97f1eb6446c3ab7a23c0fee6ffe8fe14bf246d4d
1 diff --git a/crypto/perlasm/x86masm.pl b/crypto/perlasm/x86masm.pl
2 index 1741342..917d0f8 100644
3 --- a/crypto/perlasm/x86masm.pl
4 +++ b/crypto/perlasm/x86masm.pl
5 @@ -18,10 +18,10 @@ sub ::generic
6  
7      if ($opcode =~ /lea/ && @arg[1] =~ s/.*PTR\s+(\(.*\))$/OFFSET $1/) # no []
8      {  $opcode="mov";  }
9 -    elsif ($opcode !~ /movq/)
10 +    elsif ($opcode !~ /mov[dq]$/)
11      {  # fix xmm references
12 -       $arg[0] =~ s/\b[A-Z]+WORD\s+PTR/XMMWORD PTR/i if ($arg[1]=~/\bxmm[0-7]\b/i);
13 -       $arg[1] =~ s/\b[A-Z]+WORD\s+PTR/XMMWORD PTR/i if ($arg[0]=~/\bxmm[0-7]\b/i);
14 +       $arg[0] =~ s/\b[A-Z]+WORD\s+PTR/XMMWORD PTR/i if ($arg[-1]=~/\bxmm[0-7]\b/i);
15 +       $arg[-1] =~ s/\b[A-Z]+WORD\s+PTR/XMMWORD PTR/i if ($arg[0]=~/\bxmm[0-7]\b/i);
16      }
18      &::emit($opcode,@arg);
19 @@ -160,13 +160,13 @@ sub ::public_label
20  {   push(@out,"PUBLIC\t".&::LABEL($_[0],$nmdecor.$_[0])."\n");   }
22  sub ::data_byte
23 -{   push(@out,("DB\t").join(',',@_)."\n");     }
24 +{   push(@out,("DB\t").join(',',splice(@_,0,16))."\n") while(@_);      }
26  sub ::data_short
27 -{   push(@out,("DW\t").join(',',@_)."\n");     }
28 +{   push(@out,("DW\t").join(',',splice(@_,0,8))."\n") while(@_);       }
30  sub ::data_word
31 -{   push(@out,("DD\t").join(',',@_)."\n");     }
32 +{   push(@out,("DD\t").join(',',splice(@_,0,4))."\n") while(@_);       }
34  sub ::align
35  {   push(@out,"ALIGN\t$_[0]\n");       }