diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0229-2011-05-06-Andreas-Krebbel-Andreas.Krebbel-de.ibm.co.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0229-2011-05-06-Andreas-Krebbel-Andreas.Krebbel-de.ibm.co.patch | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0229-2011-05-06-Andreas-Krebbel-Andreas.Krebbel-de.ibm.co.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0229-2011-05-06-Andreas-Krebbel-Andreas.Krebbel-de.ibm.co.patch new file mode 100644 index 0000000000..bc09a7e58b --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0229-2011-05-06-Andreas-Krebbel-Andreas.Krebbel-de.ibm.co.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | From d78b2283de3896b886562a5e34dfca256b7130d4 Mon Sep 17 00:00:00 2001 | ||
2 | From: krebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Fri, 6 May 2011 11:10:13 +0000 | ||
4 | Subject: [PATCH] 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> | ||
5 | |||
6 | * config/s390/s390.c (s390_asm_trampoline_template): Comment | ||
7 | instruction sizes. | ||
8 | (s390_trampoline_init): Replace UNITS_PER_WORD with | ||
9 | UNITS_PER_LONG. | ||
10 | |||
11 | |||
12 | |||
13 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@173482 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
14 | |||
15 | index c1bb234..626007e 100644 | ||
16 | --- a/gcc/config/s390/s390.c | ||
17 | +++ b/gcc/config/s390/s390.c | ||
18 | @@ -9281,16 +9281,16 @@ s390_asm_trampoline_template (FILE *file) | ||
19 | |||
20 | if (TARGET_64BIT) | ||
21 | { | ||
22 | - output_asm_insn ("basr\t%1,0", op); | ||
23 | - output_asm_insn ("lmg\t%0,%1,14(%1)", op); | ||
24 | - output_asm_insn ("br\t%1", op); | ||
25 | + output_asm_insn ("basr\t%1,0", op); /* 2 byte */ | ||
26 | + output_asm_insn ("lmg\t%0,%1,14(%1)", op); /* 6 byte */ | ||
27 | + output_asm_insn ("br\t%1", op); /* 2 byte */ | ||
28 | ASM_OUTPUT_SKIP (file, (HOST_WIDE_INT)(TRAMPOLINE_SIZE - 10)); | ||
29 | } | ||
30 | else | ||
31 | { | ||
32 | - output_asm_insn ("basr\t%1,0", op); | ||
33 | - output_asm_insn ("lm\t%0,%1,6(%1)", op); | ||
34 | - output_asm_insn ("br\t%1", op); | ||
35 | + output_asm_insn ("basr\t%1,0", op); /* 2 byte */ | ||
36 | + output_asm_insn ("lm\t%0,%1,6(%1)", op); /* 4 byte */ | ||
37 | + output_asm_insn ("br\t%1", op); /* 2 byte */ | ||
38 | ASM_OUTPUT_SKIP (file, (HOST_WIDE_INT)(TRAMPOLINE_SIZE - 8)); | ||
39 | } | ||
40 | } | ||
41 | @@ -9306,11 +9306,11 @@ s390_trampoline_init (rtx m_tramp, tree fndecl, rtx cxt) | ||
42 | rtx mem; | ||
43 | |||
44 | emit_block_move (m_tramp, assemble_trampoline_template (), | ||
45 | - GEN_INT (2*UNITS_PER_WORD), BLOCK_OP_NORMAL); | ||
46 | + GEN_INT (2 * UNITS_PER_LONG), BLOCK_OP_NORMAL); | ||
47 | |||
48 | - mem = adjust_address (m_tramp, Pmode, 2*UNITS_PER_WORD); | ||
49 | + mem = adjust_address (m_tramp, Pmode, 2 * UNITS_PER_LONG); | ||
50 | emit_move_insn (mem, cxt); | ||
51 | - mem = adjust_address (m_tramp, Pmode, 3*UNITS_PER_WORD); | ||
52 | + mem = adjust_address (m_tramp, Pmode, 3 * UNITS_PER_LONG); | ||
53 | emit_move_insn (mem, fnaddr); | ||
54 | } | ||
55 | |||
56 | -- | ||
57 | 1.7.0.4 | ||
58 | |||