]> git.pld-linux.org Git - packages/gcc.git/blob - gcc-pr28281.patch
- reverted, %patch doesn't play with -l.
[packages/gcc.git] / gcc-pr28281.patch
1 --- gcc-4_1-branch/gcc/config/i386/i386.md.orig 2006-08-16 22:50:41.692366000 +0200
2 +++ gcc-4_1-branch/gcc/config/i386/i386.md      2006-08-16 22:53:01.677114500 +0200
3 @@ -20220,7 +20220,12 @@
4     (set (match_scratch:DI 2 "=&r") (const_int 0))
5     (clobber (reg:CC FLAGS_REG))]
6    "TARGET_64BIT"
7 -  "mov{q}\t{%%fs:%P1, %2|%2, QWORD PTR %%fs:%P1}\;mov{q}\t{%2, %0|%0, %2}\;xor{l}\t%k2, %k2"
8 +  {  
9 +     if (ix86_cmodel != CM_KERNEL)
10 +        return "mov{q}\t{%%fs:%P1, %2|%2, QWORD PTR %%fs:%P1}\;mov{q}\t{%2, %0|%0, %2}\;xor{l}\t%k2, %k2";
11 +     else 
12 +        return "mov{q}\t{%%gs:%P1, %2|%2, QWORD PTR %%gs:%P1}\;mov{q}\t{%2, %0|%0, %2}\;xor{l}\t%k2, %k2";
13 +  }
14    [(set_attr "type" "multi")])
15  
16  (define_expand "stack_protect_test"
17 @@ -20288,7 +20293,12 @@
18                     UNSPEC_SP_TLS_TEST))
19     (clobber (match_scratch:DI 3 "=r"))]
20    "TARGET_64BIT"
21 -  "mov{q}\t{%1, %3|%3, %1}\;xor{q}\t{%%fs:%P2, %3|%3, QWORD PTR %%fs:%P2}"
22 +  {
23 +     if (ix86_cmodel != CM_KERNEL)
24 +        return "mov{q}\t{%1, %3|%3, %1}\;xor{q}\t{%%fs:%P2, %3|%3, QWORD PTR %%fs:%P2}";
25 +     else
26 +        return "mov{q}\t{%1, %3|%3, %1}\;xor{q}\t{%%gs:%P2, %3|%3, QWORD PTR %%gs:%P2}";
27 +  }
28    [(set_attr "type" "multi")])
29  
30  (include "sse.md")
This page took 0.024336 seconds and 3 git commands to generate.