gcc-4.5: Upgrade to latest FSF 4.5 branch and bring in latest linaro patches
PATCH 1/1 gcc-4.5: Upgrade to latest FSF 4.5 branch and bring in latest linaro patches
Signed-off-by Khem Raj <[email protected]>
---
meta-oe/recipes-devtools/gcc/gcc-4.5.inc | 15 +-
.../gcc/gcc-4.5/fedora/gcc45-no-add-needed.patch | 34 +-
.../gcc/gcc-4.5/gcc-ppc-config-fix.patch | 52 +--
.../gcc-4.5/gcc-ppc-include-config-linux.h.patch | 73 ----
.../gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99530.patch | 27 ++
...-lp815435.patch => gcc-4.5-linaro-r99531.patch} | 12 +-
.../gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99532.patch | 456 ++++++++++++++++++++
.../gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99533.patch | 63 +++
.../gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99534.patch | 39 ++
.../gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99536.patch | 33 ++
.../gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99537.patch | 105 +++++
.../gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99540.patch | 23 +
.../gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99541.patch | 22 +
13 files changed, 829 insertions(+), 125 deletions(-)
delete mode 100644 meta-oe/recipes-devtools/gcc/gcc-4.5/gcc-ppc-include-config-linux.h.patch
create mode 100644 meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99530.patch
rename meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/{linaro-lp815435.patch => gcc-4.5-linaro-r99531.patch} (64%)
create mode 100644 meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99532.patch
create mode 100644 meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99533.patch
create mode 100644 meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99534.patch
create mode 100644 meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99536.patch
create mode 100644 meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99537.patch
create mode 100644 meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99540.patch
create mode 100644 meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99541.patchmeta-oe/recipes-devtools/gcc/gcc-4.5.inc +11 -4
@@ -14,7 +14,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ PV = "4.5" -PR = "r40" +PR = "r41" # BINV should be incremented after updating to a revision # after a minor gcc release (e.g. 4.5.1 or 4.5.2) has been made
@@ -24,7 +24,7 @@ PR = "r40" BINV = "${PV}.4" -SRCREV = 176640 +SRCREV = 178923 BRANCH = "gcc-4_5-branch" PR_append = "+svnr${SRCPV}"
@@ -200,7 +200,15 @@ SRC_URI = "svn://gcc.gnu.org/svn/gcc/branches;module=${BRANCH};proto=http \ file://linaro/gcc-4.5-linaro-r99525.patch \ file://linaro/gcc-4.5-linaro-r99528.patch \ file://linaro/gcc-4.5-linaro-r99529.patch \ - file://linaro/linaro-lp815435.patch \ + file://linaro/gcc-4.5-linaro-r99530.patch \ + file://linaro/gcc-4.5-linaro-r99531.patch \ + file://linaro/gcc-4.5-linaro-r99532.patch \ + file://linaro/gcc-4.5-linaro-r99533.patch \ + file://linaro/gcc-4.5-linaro-r99534.patch \ + file://linaro/gcc-4.5-linaro-r99536.patch \ + file://linaro/gcc-4.5-linaro-r99537.patch \ + file://linaro/gcc-4.5-linaro-r99540.patch \ + file://linaro/gcc-4.5-linaro-r99541.patch \ \ file://more-epilogues.patch \ file://gcc-scalar-widening-pr45847.patch \
@@ -224,7 +232,6 @@ SRC_URI = "svn://gcc.gnu.org/svn/gcc/branches;module=${BRANCH};proto=http \ file://gcc-poison-dir-extend.patch \ file://gcc-poison-parameters.patch \ file://gcc-ppc-config-fix.patch \ - file://gcc-ppc-include-config-linux.h.patch \ file://use-defaults.h-and-t-oe-in-B.patch \ "
meta-oe/recipes-devtools/gcc/gcc-4.5/fedora/gcc45-no-add-needed.patch +21 -13
@@ -6,9 +6,11 @@ * config/alpha/elf.h (LINK_EH_SPEC): Likewise. * config/ia64/linux.h (LINK_EH_SPEC): Likewise. ---- gcc/config/alpha/elf.h.~1~ -+++ gcc/config/alpha/elf.h -@@ -421,7 +421,7 @@ extern int alpha_this_gpdisp_sequence_nu +Index: gcc/config/alpha/elf.h +=================================================================== +--- gcc/config/alpha/elf.h.orig 2011-06-16 17:58:47.000000000 -0700 ++++ gcc/config/alpha/elf.h 2011-09-17 11:04:57.033298875 -0700 +@@ -441,7 +441,7 @@ extern int alpha_this_gpdisp_sequence_nu I imagine that other systems will catch up. In the meantime, it doesn't harm to make sure that the data exists to be used later. */ #if defined(HAVE_LD_EH_FRAME_HDR)
@@ -17,9 +19,11 @@ #endif /* A C statement (sans semicolon) to output to the stdio stream STREAM ---- gcc/config/ia64/linux.h.~1~ -+++ gcc/config/ia64/linux.h -@@ -58,7 +58,7 @@ do { \ +Index: gcc/config/ia64/linux.h +=================================================================== +--- gcc/config/ia64/linux.h.orig 2011-09-17 11:03:19.000000000 -0700 ++++ gcc/config/ia64/linux.h 2011-09-17 11:04:57.033298875 -0700 +@@ -80,7 +80,7 @@ do { \ Signalize that because we have fde-glibc, we don't need all C shared libs linked against -lgcc_s. */ #undef LINK_EH_SPEC
@@ -28,9 +32,11 @@ #define MD_UNWIND_SUPPORT "config/ia64/linux-unwind.h" ---- gcc/config/linux.h.~1~ -+++ gcc/config/linux.h -@@ -89,7 +89,7 @@ see the files COPYING3 and COPYING.RUNTI +Index: gcc/config/linux.h +=================================================================== +--- gcc/config/linux.h.orig 2011-09-17 11:03:38.000000000 -0700 ++++ gcc/config/linux.h 2011-09-17 11:04:57.033298875 -0700 +@@ -101,7 +101,7 @@ see the files COPYING3 and COPYING.RUNTI } while (0) #if defined(HAVE_LD_EH_FRAME_HDR)
@@ -39,12 +45,14 @@ #endif /* Define this so we can compile MS code for use with WINE. */ ---- gcc/config/rs6000/sysv4.h.~1~ -+++ gcc/config/rs6000/sysv4.h -@@ -917,7 +917,7 @@ SVR4_ASM_SPEC \ - %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}}}" +Index: gcc/config/rs6000/sysv4.h +=================================================================== +--- gcc/config/rs6000/sysv4.h.orig 2011-09-17 11:03:41.000000000 -0700 ++++ gcc/config/rs6000/sysv4.h 2011-09-17 11:05:58.653298861 -0700 +@@ -908,7 +908,7 @@ SVR4_ASM_SPEC \ #if defined(HAVE_LD_EH_FRAME_HDR) + # undef LINK_EH_SPEC -# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} " +# define LINK_EH_SPEC "--no-add-needed %{!static:--eh-frame-hdr} " #endif
meta-oe/recipes-devtools/gcc/gcc-4.5/gcc-ppc-config-fix.patch +23 -29
123 lines not on this page · raw message
meta-oe/recipes-devtools/gcc/gcc-4.5/gcc-ppc-include-config-linux.h.patch deleted +0 -73
73 lines not on this page · raw message
meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99530.patch new file +27 -0
@@ -0,0 +1,27 @@ +2011-07-21 Richard Sandiford <[email protected]> + + gcc/ + Backport from mainline: + + 2011-07-21 Richard Sandiford <[email protected]> + + * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK. + +=== modified file 'gcc/regcprop.c' +--- old/gcc/regcprop.c 2010-08-05 15:28:47 +0000 ++++ new/gcc/regcprop.c 2011-07-21 12:40:44 +0000 +@@ -418,10 +418,9 @@ + + offset = ((WORDS_BIG_ENDIAN ? wordoffset : 0) + + (BYTES_BIG_ENDIAN ? byteoffset : 0)); +- return gen_rtx_raw_REG (new_mode, +- regno + subreg_regno_offset (regno, orig_mode, +- offset, +- new_mode)); ++ regno += subreg_regno_offset (regno, orig_mode, offset, new_mode); ++ if (HARD_REGNO_MODE_OK (regno, new_mode)) ++ return gen_rtx_raw_REG (new_mode, regno); + } + return NULL_RTX; + } +
meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99531.patch renamed from meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/linaro-lp815435.patch +6 -6
@@ -2,17 +2,16 @@ gcc/ Backport only bits marked as [*] from mainline: - 2010-12-19 Chung-Lin Tang <[email protected]> + 2010-12-19 Chung-Lin Tang <[email protected]> * config/arm/arm.c ([*]arm_legitimate_index_p): Add VFP load/store index range case. Change to SF/DFmode tests to avoid capturing HFmode. (thumb2_legitimate_index_p): Same. -Index: gcc-4_5-branch/gcc/config/arm/arm.c -=================================================================== ---- gcc-4_5-branch.orig/gcc/config/arm/arm.c 2011-07-22 17:56:51.000000000 -0700 -+++ gcc-4_5-branch/gcc/config/arm/arm.c 2011-07-29 14:43:42.171610966 -0700 -@@ -5631,8 +5631,8 @@ arm_legitimate_index_p (enum machine_mod +=== modified file 'gcc/config/arm/arm.c' +--- old/gcc/config/arm/arm.c 2011-06-29 10:46:39 +0000 ++++ new/gcc/config/arm/arm.c 2011-07-29 15:01:53 +0000 +@@ -5643,8 +5643,8 @@ /* Standard coprocessor addressing modes. */ if (TARGET_HARD_FLOAT
@@ -23,3 +22,4 @@ Index: gcc-4_5-branch/gcc/config/arm/arm.c || (TARGET_MAVERICK && mode == DImode))) return (code == CONST_INT && INTVAL (index) < 1024 && INTVAL (index) > -1024 +
meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99532.patch new file +456 -0
456 lines not on this page · raw message
meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99533.patch new file +63 -0
63 lines not on this page · raw message
meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99534.patch new file +39 -0
@@ -0,0 +1,39 @@ +2011-08-09 Revital Eres <[email protected]> + + gcc/ + Backport from trunk -r176972: + + * ddg.c (create_ddg_dep_from_intra_loop_link): Remove + the creation of anti-dep edge from a branch. + add_cross_iteration_register_deps): + Create anti-dep edge from a branch. + +=== modified file 'gcc/ddg.c' +--- old/gcc/ddg.c 2011-07-05 09:02:18 +0000 ++++ new/gcc/ddg.c 2011-07-31 13:13:38 +0000 +@@ -197,11 +197,6 @@ + } + } + +- /* If a true dep edge enters the branch create an anti edge in the +- opposite direction to prevent the creation of reg-moves. */ +- if ((DEP_TYPE (link) == REG_DEP_TRUE) && JUMP_P (dest_node->insn)) +- create_ddg_dep_no_link (g, dest_node, src_node, ANTI_DEP, REG_DEP, 1); +- + latency = dep_cost (link); + e = create_ddg_edge (src_node, dest_node, t, dt, latency, distance); + add_edge_to_ddg (g, e); +@@ -305,8 +300,11 @@ + + gcc_assert (first_def_node); + ++ /* Always create the edge if the use node is a branch in ++ order to prevent the creation of reg-moves. */ + if (DF_REF_ID (last_def) != DF_REF_ID (first_def) +- || !flag_modulo_sched_allow_regmoves) ++ || !flag_modulo_sched_allow_regmoves ++ || JUMP_P (use_node->insn)) + create_ddg_dep_no_link (g, use_node, first_def_node, ANTI_DEP, + REG_DEP, 1); + +
meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99536.patch new file +33 -0
@@ -0,0 +1,33 @@ +2011-08-15 Richard Sandiford <[email protected]> + + gcc/ + * config/rs6000/rs6000.c (paired_expand_vector_init): Don't create + CONST_VECTORs with symbolic elements. + (rs6000_expand_vector_init): Likewise. + +=== modified file 'gcc/config/rs6000/rs6000.c' +--- old/gcc/config/rs6000/rs6000.c 2011-08-11 11:09:07 +0000 ++++ new/gcc/config/rs6000/rs6000.c 2011-08-16 12:42:39 +0000 +@@ -4129,7 +4129,9 @@ + for (i = 0; i < n_elts; ++i) + { + x = XVECEXP (vals, 0, i); +- if (!CONSTANT_P (x)) ++ if (!(CONST_INT_P (x) ++ || GET_CODE (x) == CONST_DOUBLE ++ || GET_CODE (x) == CONST_FIXED)) + ++n_var; + } + if (n_var == 0) +@@ -4281,7 +4283,9 @@ + for (i = 0; i < n_elts; ++i) + { + x = XVECEXP (vals, 0, i); +- if (!CONSTANT_P (x)) ++ if (!(CONST_INT_P (x) ++ || GET_CODE (x) == CONST_DOUBLE ++ || GET_CODE (x) == CONST_FIXED)) + ++n_var, one_var = i; + else if (x != CONST0_RTX (inner_mode)) + all_const_zero = false; +
meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99537.patch new file +105 -0
105 lines not on this page · raw message
meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99540.patch new file +23 -0
@@ -0,0 +1,23 @@ +2011-08-26 Richard Sandiford <[email protected]> + + gcc/ + Backport from mainline: + + 2011-08-26 Richard Sandiford <[email protected]> + + * df-problems.c (df_note_bb_compute): Pass uses rather than defs + to df_set_dead_notes_for_mw. + +=== modified file 'gcc/df-problems.c' +--- old/gcc/df-problems.c 2011-05-05 14:28:53 +0000 ++++ new/gcc/df-problems.c 2011-08-26 14:39:38 +0000 +@@ -3562,7 +3562,7 @@ + while (*mws_rec) + { + struct df_mw_hardreg *mws = *mws_rec; +- if ((DF_MWS_REG_DEF_P (mws)) ++ if (DF_MWS_REG_USE_P (mws) + && !df_ignore_stack_reg (mws->start_regno)) + { + bool really_add_notes = debug_insn != 0; +
meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99541.patch new file +22 -0
@@ -0,0 +1,22 @@ +2011-09-12 Richard Sandiford <[email protected]> + + gcc/ + Backport from mainline: + + 2010-12-06 Jakub Jelinek <[email protected]> + + PR debug/46771 + * reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode + on DEBUG_INSNs. + +=== modified file 'gcc/reginfo.c' +--- old/gcc/reginfo.c 2010-10-04 00:50:43 +0000 ++++ new/gcc/reginfo.c 2011-09-12 10:54:51 +0000 +@@ -1350,7 +1350,7 @@ + + FOR_EACH_BB (bb) + FOR_BB_INSNS (bb, insn) +- if (INSN_P (insn)) ++ if (NONDEBUG_INSN_P (insn)) + find_subregs_of_mode (PATTERN (insn)); + }
Signature · 1 line
1.7.5.4