]> git.pld-linux.org Git - packages/gcc.git/blame - gcc-amd64-thunk.patch
- patch from
[packages/gcc.git] / gcc-amd64-thunk.patch
CommitLineData
213ee3ad
JB
1PR target/16092 fix backport from gcc 3.4.0
2--- gcc-3.3.4/gcc/config/i386/i386.c.orig 2004-05-18 07:07:52.000000000 +0200
3+++ gcc-3.3.4/gcc/config/i386/i386.c 2004-06-20 19:17:22.244016950 +0200
4@@ -14673,15 +14673,14 @@
5 output_asm_insn ("mov{l}\t{%0, %1|%1, %0}", xops);
6 }
7
8- xops[0] = DECL_RTL (function);
9+ xops[0] = XEXP (DECL_RTL (function), 0);
10 if (TARGET_64BIT)
11 {
12 if (!flag_pic || (*targetm.binds_local_p) (function))
13 output_asm_insn ("jmp\t%P0", xops);
14 else
15 {
16- tmp = XEXP (xops[0], 0);
17- tmp = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, tmp), UNSPEC_GOTPCREL);
18+ tmp = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, xops[0]), UNSPEC_GOTPCREL);
19 tmp = gen_rtx_CONST (Pmode, tmp);
20 tmp = gen_rtx_MEM (QImode, tmp);
21 xops[0] = tmp;
This page took 0.30545 seconds and 4 git commands to generate.