summaryrefslogtreecommitdiffstats
path: root/toolchain/gcc/patches/3.4.5/71_all_sh-pr16665-fix.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-03-28 17:52:00 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-03-28 17:52:00 +0000
commit92f558c4bea9f0dbcae26c34e73b27a1d2edfb4c (patch)
tree61aad63afab7dd49ad416731b75d27d360843c24 /toolchain/gcc/patches/3.4.5/71_all_sh-pr16665-fix.patch
parente172d1c9eaa899b96dc0799a3d002b40bea725e4 (diff)
downloadmaster-31e0f0ae-92f558c4bea9f0dbcae26c34e73b27a1d2edfb4c.tar.gz
master-31e0f0ae-92f558c4bea9f0dbcae26c34e73b27a1d2edfb4c.tar.bz2
master-31e0f0ae-92f558c4bea9f0dbcae26c34e73b27a1d2edfb4c.zip
Nuke lots of obsolete compiler versions Make gcc4 depend on !LINUX_2_4 - I'm getting sick of seeing people complain about compile errors when trying to build brcm-2.4 with it.
SVN-Revision: 6744
Diffstat (limited to 'toolchain/gcc/patches/3.4.5/71_all_sh-pr16665-fix.patch')
-rw-r--r--toolchain/gcc/patches/3.4.5/71_all_sh-pr16665-fix.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/toolchain/gcc/patches/3.4.5/71_all_sh-pr16665-fix.patch b/toolchain/gcc/patches/3.4.5/71_all_sh-pr16665-fix.patch
deleted file mode 100644
index 680bb3978d..0000000000
--- a/toolchain/gcc/patches/3.4.5/71_all_sh-pr16665-fix.patch
+++ /dev/null
@@ -1,43 +0,0 @@
---- gcc/gcc/config/sh/sh.c
-+++ gcc/gcc/config/sh/sh.c
-@@ -9106,6 +9106,15 @@ sh_output_mi_thunk (FILE *file, tree thu
- }
- this = FUNCTION_ARG (cum, Pmode, ptr_type_node, 1);
-
-+ /* In PIC case, we set PIC register to compute the target address. We
-+ can use a scratch register to save and restore the original value
-+ except for SHcompact. For SHcompact, use stack. */
-+ if (flag_pic && TARGET_SHCOMPACT)
-+ {
-+ push (PIC_OFFSET_TABLE_REGNUM);
-+ emit_insn (gen_GOTaddr2picreg ());
-+ }
-+
- /* For SHcompact, we only have r0 for a scratch register: r1 is the
- static chain pointer (even if you can't have nested virtual functions
- right now, someone might implement them sometime), and the rest of the
-@@ -9188,8 +9197,24 @@ sh_output_mi_thunk (FILE *file, tree thu
- assemble_external (function);
- TREE_USED (function) = 1;
- }
-+ /* We can use scratch1 to save and restore the original value of
-+ PIC register except for SHcompact. */
-+ if (flag_pic && ! TARGET_SHCOMPACT)
-+ {
-+ emit_move_insn (scratch1,
-+ gen_rtx_REG (Pmode, PIC_OFFSET_TABLE_REGNUM));
-+ emit_insn (gen_GOTaddr2picreg ());
-+ }
- funexp = XEXP (DECL_RTL (function), 0);
- emit_move_insn (scratch2, funexp);
-+ if (flag_pic)
-+ {
-+ if (! TARGET_SHCOMPACT)
-+ emit_move_insn (gen_rtx_REG (Pmode, PIC_OFFSET_TABLE_REGNUM),
-+ scratch1);
-+ else
-+ pop (PIC_OFFSET_TABLE_REGNUM);
-+ }
- funexp = gen_rtx_MEM (FUNCTION_MODE, scratch2);
- sibcall = emit_call_insn (gen_sibcall (funexp, const0_rtx, NULL_RTX));
- SIBLING_CALL_P (sibcall) = 1;