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))]
7 - "mov{q}\t{%%fs:%P1, %2|%2, QWORD PTR %%fs:%P1}\;mov{q}\t{%2, %0|%0, %2}\;xor{l}\t%k2, %k2"
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";
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";
14 [(set_attr "type" "multi")])
16 (define_expand "stack_protect_test"
17 @@ -20288,7 +20293,12 @@
19 (clobber (match_scratch:DI 3 "=r"))]
21 - "mov{q}\t{%1, %3|%3, %1}\;xor{q}\t{%%fs:%P2, %3|%3, QWORD PTR %%fs:%P2}"
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}";
26 + return "mov{q}\t{%1, %3|%3, %1}\;xor{q}\t{%%gs:%P2, %3|%3, QWORD PTR %%gs:%P2}";
28 [(set_attr "type" "multi")])