summaryrefslogtreecommitdiffstats
path: root/patches/gcc-linaro-4.5-2011.02-0/0008-arm_insn-opinit-RTX_CODE-fixup.patch
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2011-02-23 12:39:26 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2011-02-23 12:39:26 +0100
commit0fa8610aa602de19e2179f12c47b3e0724fa84b9 (patch)
tree0771db0bdb04b9a978e7c000a5143a33c465871a /patches/gcc-linaro-4.5-2011.02-0/0008-arm_insn-opinit-RTX_CODE-fixup.patch
parentcf95916cd96ab961622ac28ad87a629bf7be1d86 (diff)
parent317fdce4fdabc0d496a8df2d6d40ab76c2b8c7d5 (diff)
downloadOSELAS.Toolchain-0fa8610aa602de19e2179f12c47b3e0724fa84b9.tar.gz
OSELAS.Toolchain-0fa8610aa602de19e2179f12c47b3e0724fa84b9.tar.xz
Merge branch 'gcc-4.5' of git-private.pengutronix.de:/git-private/mol/OSELAS.Toolchain
Diffstat (limited to 'patches/gcc-linaro-4.5-2011.02-0/0008-arm_insn-opinit-RTX_CODE-fixup.patch')
-rw-r--r--patches/gcc-linaro-4.5-2011.02-0/0008-arm_insn-opinit-RTX_CODE-fixup.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/patches/gcc-linaro-4.5-2011.02-0/0008-arm_insn-opinit-RTX_CODE-fixup.patch b/patches/gcc-linaro-4.5-2011.02-0/0008-arm_insn-opinit-RTX_CODE-fixup.patch
new file mode 100644
index 0000000..8fb9c38
--- /dev/null
+++ b/patches/gcc-linaro-4.5-2011.02-0/0008-arm_insn-opinit-RTX_CODE-fixup.patch
@@ -0,0 +1,45 @@
+This patch was taken from uclibc, with this description:
+
+gcc/ChangeLog
+2007-11-27 Bernhard Fischer <>
+
+ * config/arm/arm-protos.h (arm_vector_mode_supported_p,
+ arm_hard_regno_mode_ok, const_ok_for_arm): Do not hide non-rtx related
+ function prototypes in RTX_CODE.
+ * genopinit.c: Include tm_p.h.
+
+Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
+
+---
+ gcc/config/arm/arm-protos.h | 2 +-
+ gcc/genopinit.c | 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+Index: gcc-4.5.1/gcc/config/arm/arm-protos.h
+===================================================================
+--- gcc-4.5.1.orig/gcc/config/arm/arm-protos.h
++++ gcc-4.5.1/gcc/config/arm/arm-protos.h
+@@ -43,10 +43,10 @@ extern unsigned int arm_dbx_register_num
+ extern void arm_output_fn_unwind (FILE *, bool);
+
+
+-#ifdef RTX_CODE
+ extern bool arm_vector_mode_supported_p (enum machine_mode);
+ extern int arm_hard_regno_mode_ok (unsigned int, enum machine_mode);
+ extern int const_ok_for_arm (HOST_WIDE_INT);
++#ifdef RTX_CODE
+ extern int arm_split_constant (RTX_CODE, enum machine_mode, rtx,
+ HOST_WIDE_INT, rtx, rtx, int);
+ extern RTX_CODE arm_canonicalize_comparison (RTX_CODE, enum machine_mode,
+Index: gcc-4.5.1/gcc/genopinit.c
+===================================================================
+--- gcc-4.5.1.orig/gcc/genopinit.c
++++ gcc-4.5.1/gcc/genopinit.c
+@@ -490,6 +490,7 @@ from the machine description file `md'.
+ printf ("#include \"expr.h\"\n");
+ printf ("#include \"optabs.h\"\n");
+ printf ("#include \"reload.h\"\n\n");
++ printf ("#include \"tm_p.h\"\n\n");
+
+ printf ("void\ninit_all_optabs (void)\n{\n");
+