diff options
Diffstat (limited to 'meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106741.patch')
| -rw-r--r-- | meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106741.patch | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106741.patch b/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106741.patch index f53b26a888..6e76c21272 100644 --- a/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106741.patch +++ b/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106741.patch | |||
| @@ -19,8 +19,8 @@ | |||
| 19 | === modified file 'gcc/combine.c' | 19 | === modified file 'gcc/combine.c' |
| 20 | Index: gcc-4_6-branch/gcc/combine.c | 20 | Index: gcc-4_6-branch/gcc/combine.c |
| 21 | =================================================================== | 21 | =================================================================== |
| 22 | --- gcc-4_6-branch.orig/gcc/combine.c 2011-09-16 19:58:21.000000000 -0700 | 22 | --- gcc-4_6-branch.orig/gcc/combine.c 2012-03-05 00:16:20.000000000 -0800 |
| 23 | +++ gcc-4_6-branch/gcc/combine.c 2011-09-16 20:05:36.626650681 -0700 | 23 | +++ gcc-4_6-branch/gcc/combine.c 2012-03-05 16:05:01.212928507 -0800 |
| 24 | @@ -391,8 +391,8 @@ | 24 | @@ -391,8 +391,8 @@ |
| 25 | static void undo_all (void); | 25 | static void undo_all (void); |
| 26 | static void undo_commit (void); | 26 | static void undo_commit (void); |
| @@ -32,7 +32,7 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 32 | static rtx simplify_if_then_else (rtx); | 32 | static rtx simplify_if_then_else (rtx); |
| 33 | static rtx simplify_set (rtx); | 33 | static rtx simplify_set (rtx); |
| 34 | static rtx simplify_logical (rtx); | 34 | static rtx simplify_logical (rtx); |
| 35 | @@ -3112,12 +3112,12 @@ | 35 | @@ -3119,12 +3119,12 @@ |
| 36 | if (i1) | 36 | if (i1) |
| 37 | { | 37 | { |
| 38 | subst_low_luid = DF_INSN_LUID (i1); | 38 | subst_low_luid = DF_INSN_LUID (i1); |
| @@ -47,7 +47,7 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 47 | } | 47 | } |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | @@ -3129,7 +3129,7 @@ | 50 | @@ -3136,7 +3136,7 @@ |
| 51 | self-referential RTL when we will be substituting I1SRC for I1DEST | 51 | self-referential RTL when we will be substituting I1SRC for I1DEST |
| 52 | later. Likewise if I0 feeds into I2, either directly or indirectly | 52 | later. Likewise if I0 feeds into I2, either directly or indirectly |
| 53 | through I1, and I0DEST is in I0SRC. */ | 53 | through I1, and I0DEST is in I0SRC. */ |
| @@ -56,7 +56,7 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 56 | (i1_feeds_i2_n && i1dest_in_i1src) | 56 | (i1_feeds_i2_n && i1dest_in_i1src) |
| 57 | || ((i0_feeds_i2_n || (i0_feeds_i1_n && i1_feeds_i2_n)) | 57 | || ((i0_feeds_i2_n || (i0_feeds_i1_n && i1_feeds_i2_n)) |
| 58 | && i0dest_in_i0src)); | 58 | && i0dest_in_i0src)); |
| 59 | @@ -3168,7 +3168,7 @@ | 59 | @@ -3180,7 +3180,7 @@ |
| 60 | copy of I1SRC each time we substitute it, in order to avoid creating | 60 | copy of I1SRC each time we substitute it, in order to avoid creating |
| 61 | self-referential RTL when we will be substituting I0SRC for I0DEST | 61 | self-referential RTL when we will be substituting I0SRC for I0DEST |
| 62 | later. */ | 62 | later. */ |
| @@ -65,7 +65,7 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 65 | i0_feeds_i1_n && i0dest_in_i0src); | 65 | i0_feeds_i1_n && i0dest_in_i0src); |
| 66 | substed_i1 = 1; | 66 | substed_i1 = 1; |
| 67 | 67 | ||
| 68 | @@ -3198,7 +3198,7 @@ | 68 | @@ -3214,7 +3214,7 @@ |
| 69 | 69 | ||
| 70 | n_occurrences = 0; | 70 | n_occurrences = 0; |
| 71 | subst_low_luid = DF_INSN_LUID (i0); | 71 | subst_low_luid = DF_INSN_LUID (i0); |
| @@ -74,16 +74,16 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 74 | substed_i0 = 1; | 74 | substed_i0 = 1; |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | @@ -3260,7 +3260,7 @@ | 77 | @@ -3276,7 +3276,7 @@ |
| 78 | { | 78 | { |
| 79 | rtx t = i1pat; | 79 | rtx t = i1pat; |
| 80 | if (i0_feeds_i1_n) | 80 | if (i0_feeds_i1_n) |
| 81 | - t = subst (t, i0dest, i0src, 0, 0); | 81 | - t = subst (t, i0dest, i0src_copy ? i0src_copy : i0src, 0, 0); |
| 82 | + t = subst (t, i0dest, i0src, 0, 0, 0); | 82 | + t = subst (t, i0dest, i0src_copy ? i0src_copy : i0src, 0, 0, 0); |
| 83 | 83 | ||
| 84 | XVECEXP (newpat, 0, --total_sets) = t; | 84 | XVECEXP (newpat, 0, --total_sets) = t; |
| 85 | } | 85 | } |
| 86 | @@ -3268,10 +3268,10 @@ | 86 | @@ -3284,10 +3284,10 @@ |
| 87 | { | 87 | { |
| 88 | rtx t = i2pat; | 88 | rtx t = i2pat; |
| 89 | if (i1_feeds_i2_n) | 89 | if (i1_feeds_i2_n) |
| @@ -91,12 +91,12 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 91 | + t = subst (t, i1dest, i1src_copy ? i1src_copy : i1src, 0, 0, | 91 | + t = subst (t, i1dest, i1src_copy ? i1src_copy : i1src, 0, 0, |
| 92 | i0_feeds_i1_n && i0dest_in_i0src); | 92 | i0_feeds_i1_n && i0dest_in_i0src); |
| 93 | if ((i0_feeds_i1_n && i1_feeds_i2_n) || i0_feeds_i2_n) | 93 | if ((i0_feeds_i1_n && i1_feeds_i2_n) || i0_feeds_i2_n) |
| 94 | - t = subst (t, i0dest, i0src, 0, 0); | 94 | - t = subst (t, i0dest, i0src_copy2 ? i0src_copy2 : i0src, 0, 0); |
| 95 | + t = subst (t, i0dest, i0src, 0, 0, 0); | 95 | + t = subst (t, i0dest, i0src_copy2 ? i0src_copy2 : i0src, 0, 0, 0); |
| 96 | 96 | ||
| 97 | XVECEXP (newpat, 0, --total_sets) = t; | 97 | XVECEXP (newpat, 0, --total_sets) = t; |
| 98 | } | 98 | } |
| 99 | @@ -4943,11 +4943,13 @@ | 99 | @@ -4959,11 +4959,13 @@ |
| 100 | 100 | ||
| 101 | IN_DEST is nonzero if we are processing the SET_DEST of a SET. | 101 | IN_DEST is nonzero if we are processing the SET_DEST of a SET. |
| 102 | 102 | ||
| @@ -111,7 +111,7 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 111 | { | 111 | { |
| 112 | enum rtx_code code = GET_CODE (x); | 112 | enum rtx_code code = GET_CODE (x); |
| 113 | enum machine_mode op0_mode = VOIDmode; | 113 | enum machine_mode op0_mode = VOIDmode; |
| 114 | @@ -5008,7 +5010,7 @@ | 114 | @@ -5024,7 +5026,7 @@ |
| 115 | && GET_CODE (XVECEXP (x, 0, 0)) == SET | 115 | && GET_CODE (XVECEXP (x, 0, 0)) == SET |
| 116 | && GET_CODE (SET_SRC (XVECEXP (x, 0, 0))) == ASM_OPERANDS) | 116 | && GET_CODE (SET_SRC (XVECEXP (x, 0, 0))) == ASM_OPERANDS) |
| 117 | { | 117 | { |
| @@ -120,7 +120,7 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 120 | 120 | ||
| 121 | /* If this substitution failed, this whole thing fails. */ | 121 | /* If this substitution failed, this whole thing fails. */ |
| 122 | if (GET_CODE (new_rtx) == CLOBBER | 122 | if (GET_CODE (new_rtx) == CLOBBER |
| 123 | @@ -5025,7 +5027,7 @@ | 123 | @@ -5041,7 +5043,7 @@ |
| 124 | && GET_CODE (dest) != CC0 | 124 | && GET_CODE (dest) != CC0 |
| 125 | && GET_CODE (dest) != PC) | 125 | && GET_CODE (dest) != PC) |
| 126 | { | 126 | { |
| @@ -129,7 +129,7 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 129 | 129 | ||
| 130 | /* If this substitution failed, this whole thing fails. */ | 130 | /* If this substitution failed, this whole thing fails. */ |
| 131 | if (GET_CODE (new_rtx) == CLOBBER | 131 | if (GET_CODE (new_rtx) == CLOBBER |
| 132 | @@ -5071,8 +5073,8 @@ | 132 | @@ -5087,8 +5089,8 @@ |
| 133 | } | 133 | } |
| 134 | else | 134 | else |
| 135 | { | 135 | { |
| @@ -140,7 +140,7 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 140 | 140 | ||
| 141 | /* If this substitution failed, this whole thing | 141 | /* If this substitution failed, this whole thing |
| 142 | fails. */ | 142 | fails. */ |
| 143 | @@ -5149,7 +5151,9 @@ | 143 | @@ -5165,7 +5167,9 @@ |
| 144 | && (code == SUBREG || code == STRICT_LOW_PART | 144 | && (code == SUBREG || code == STRICT_LOW_PART |
| 145 | || code == ZERO_EXTRACT)) | 145 | || code == ZERO_EXTRACT)) |
| 146 | || code == SET) | 146 | || code == SET) |
| @@ -151,7 +151,7 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 151 | 151 | ||
| 152 | /* If we found that we will have to reject this combination, | 152 | /* If we found that we will have to reject this combination, |
| 153 | indicate that by returning the CLOBBER ourselves, rather than | 153 | indicate that by returning the CLOBBER ourselves, rather than |
| 154 | @@ -5206,7 +5210,7 @@ | 154 | @@ -5222,7 +5226,7 @@ |
| 155 | /* If X is sufficiently simple, don't bother trying to do anything | 155 | /* If X is sufficiently simple, don't bother trying to do anything |
| 156 | with it. */ | 156 | with it. */ |
| 157 | if (code != CONST_INT && code != REG && code != CLOBBER) | 157 | if (code != CONST_INT && code != REG && code != CLOBBER) |
| @@ -160,7 +160,7 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 160 | 160 | ||
| 161 | if (GET_CODE (x) == code) | 161 | if (GET_CODE (x) == code) |
| 162 | break; | 162 | break; |
| 163 | @@ -5226,10 +5230,12 @@ | 163 | @@ -5242,10 +5246,12 @@ |
| 164 | expression. | 164 | expression. |
| 165 | 165 | ||
| 166 | OP0_MODE is the original mode of XEXP (x, 0). IN_DEST is nonzero | 166 | OP0_MODE is the original mode of XEXP (x, 0). IN_DEST is nonzero |
| @@ -175,7 +175,7 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 175 | { | 175 | { |
| 176 | enum rtx_code code = GET_CODE (x); | 176 | enum rtx_code code = GET_CODE (x); |
| 177 | enum machine_mode mode = GET_MODE (x); | 177 | enum machine_mode mode = GET_MODE (x); |
| 178 | @@ -5284,8 +5290,8 @@ | 178 | @@ -5300,8 +5306,8 @@ |
| 179 | false arms to store-flag values. Be careful to use copy_rtx | 179 | false arms to store-flag values. Be careful to use copy_rtx |
| 180 | here since true_rtx or false_rtx might share RTL with x as a | 180 | here since true_rtx or false_rtx might share RTL with x as a |
| 181 | result of the if_then_else_cond call above. */ | 181 | result of the if_then_else_cond call above. */ |
| @@ -186,7 +186,7 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 186 | 186 | ||
| 187 | /* If true_rtx and false_rtx are not general_operands, an if_then_else | 187 | /* If true_rtx and false_rtx are not general_operands, an if_then_else |
| 188 | is unlikely to be simpler. */ | 188 | is unlikely to be simpler. */ |
| 189 | @@ -5629,7 +5635,7 @@ | 189 | @@ -5645,7 +5651,7 @@ |
| 190 | { | 190 | { |
| 191 | /* Try to simplify the expression further. */ | 191 | /* Try to simplify the expression further. */ |
| 192 | rtx tor = simplify_gen_binary (IOR, mode, XEXP (x, 0), XEXP (x, 1)); | 192 | rtx tor = simplify_gen_binary (IOR, mode, XEXP (x, 0), XEXP (x, 1)); |
| @@ -195,7 +195,7 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 195 | 195 | ||
| 196 | /* If we could, great. If not, do not go ahead with the IOR | 196 | /* If we could, great. If not, do not go ahead with the IOR |
| 197 | replacement, since PLUS appears in many special purpose | 197 | replacement, since PLUS appears in many special purpose |
| 198 | @@ -5722,7 +5728,16 @@ | 198 | @@ -5738,7 +5744,16 @@ |
| 199 | ZERO_EXTRACT is indeed appropriate, it will be placed back by | 199 | ZERO_EXTRACT is indeed appropriate, it will be placed back by |
| 200 | the call to make_compound_operation in the SET case. */ | 200 | the call to make_compound_operation in the SET case. */ |
| 201 | 201 | ||
| @@ -213,7 +213,7 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 213 | && new_code == NE && GET_MODE_CLASS (mode) == MODE_INT | 213 | && new_code == NE && GET_MODE_CLASS (mode) == MODE_INT |
| 214 | && op1 == const0_rtx | 214 | && op1 == const0_rtx |
| 215 | && mode == GET_MODE (op0) | 215 | && mode == GET_MODE (op0) |
| 216 | @@ -5768,7 +5783,10 @@ | 216 | @@ -5784,7 +5799,10 @@ |
| 217 | 217 | ||
| 218 | /* If STORE_FLAG_VALUE is -1, we have cases similar to | 218 | /* If STORE_FLAG_VALUE is -1, we have cases similar to |
| 219 | those above. */ | 219 | those above. */ |
| @@ -225,7 +225,7 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 225 | && new_code == NE && GET_MODE_CLASS (mode) == MODE_INT | 225 | && new_code == NE && GET_MODE_CLASS (mode) == MODE_INT |
| 226 | && op1 == const0_rtx | 226 | && op1 == const0_rtx |
| 227 | && (num_sign_bit_copies (op0, mode) | 227 | && (num_sign_bit_copies (op0, mode) |
| 228 | @@ -5966,11 +5984,11 @@ | 228 | @@ -5982,11 +6000,11 @@ |
| 229 | if (reg_mentioned_p (from, true_rtx)) | 229 | if (reg_mentioned_p (from, true_rtx)) |
| 230 | true_rtx = subst (known_cond (copy_rtx (true_rtx), true_code, | 230 | true_rtx = subst (known_cond (copy_rtx (true_rtx), true_code, |
| 231 | from, true_val), | 231 | from, true_val), |
| @@ -239,7 +239,7 @@ Index: gcc-4_6-branch/gcc/combine.c | |||
| 239 | 239 | ||
| 240 | SUBST (XEXP (x, 1), swapped ? false_rtx : true_rtx); | 240 | SUBST (XEXP (x, 1), swapped ? false_rtx : true_rtx); |
| 241 | SUBST (XEXP (x, 2), swapped ? true_rtx : false_rtx); | 241 | SUBST (XEXP (x, 2), swapped ? true_rtx : false_rtx); |
| 242 | @@ -6187,11 +6205,11 @@ | 242 | @@ -6203,11 +6221,11 @@ |
| 243 | { | 243 | { |
| 244 | temp = subst (simplify_gen_relational (true_code, m, VOIDmode, | 244 | temp = subst (simplify_gen_relational (true_code, m, VOIDmode, |
| 245 | cond_op0, cond_op1), | 245 | cond_op0, cond_op1), |
