Browse Source

fix gcc-4.2.4 when target != avr32

SVN-Revision: 13493
Nicolas Thill 17 years ago
parent
commit
a10dd02b34
1 changed files with 3 additions and 1 deletions
  1. 3 1
      toolchain/gcc/patches/4.2.4/900-avr32_support.patch

+ 3 - 1
toolchain/gcc/patches/4.2.4/900-avr32_support.patch

@@ -22254,7 +22254,7 @@
    for (insn = BB_HEAD (bb); ; insn = NEXT_INSN (insn))
    for (insn = BB_HEAD (bb); ; insn = NEXT_INSN (insn))
      {
      {
        int n_ops, i, alt, predicated;
        int n_ops, i, alt, predicated;
-@@ -1630,7 +1633,60 @@ copyprop_hardreg_forward_1 (basic_block 
+@@ -1630,7 +1633,62 @@ copyprop_hardreg_forward_1 (basic_block 
  	      || (predicated && recog_data.operand_type[i] == OP_OUT))
  	      || (predicated && recog_data.operand_type[i] == OP_OUT))
  	    recog_data.operand_type[i] = OP_INOUT;
  	    recog_data.operand_type[i] = OP_INOUT;
  	}
  	}
@@ -22268,6 +22268,7 @@
 +         are modified these tests will fail.
 +         are modified these tests will fail.
 +      */
 +      */
 +      
 +      
++#ifdef IFCVT_ALLOW_MODIFY_TEST_IN_INSN
 +      if ( IFCVT_ALLOW_MODIFY_TEST_IN_INSN
 +      if ( IFCVT_ALLOW_MODIFY_TEST_IN_INSN
 +           && predicated )
 +           && predicated )
 +        { 
 +        { 
@@ -22311,6 +22312,7 @@
 +        {
 +        {
 +          prev_pred_insn_skipped = 0;
 +          prev_pred_insn_skipped = 0;
 +        }
 +        }
++#endif /* IFCVT_ALLOW_MODIFY_TEST_IN_INSN */
 +      
 +      
        /* For each earlyclobber operand, zap the value data.  */
        /* For each earlyclobber operand, zap the value data.  */
        for (i = 0; i < n_ops; i++)
        for (i = 0; i < n_ops; i++)