]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mips.c (mips_output_conditional_branch): Assert that openrands[1] is a CODE_LABEL.
authorAdam Nemet <anemet@caviumnetworks.com>
Mon, 15 Dec 2008 21:59:51 +0000 (21:59 +0000)
committerAdam Nemet <nemet@gcc.gnu.org>
Mon, 15 Dec 2008 21:59:51 +0000 (21:59 +0000)
* config/mips/mips.c (mips_output_conditional_branch): Assert that
openrands[1] is a CODE_LABEL.

From-SVN: r142772

gcc/ChangeLog
gcc/config/mips/mips.c

index 147d6f8ea51c6b6b4bc319740377f77890c22d2a..8fe6a6967099719f0018d166f0cf87283f5670d4 100644 (file)
@@ -1,3 +1,8 @@
+2008-12-15  Adam Nemet  <anemet@caviumnetworks.com>
+
+       * config/mips/mips.c (mips_output_conditional_branch): Assert that
+       openrands[1] is a CODE_LABEL.
+
 2008-12-15  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * config/mips/mips.c (mips_expand_builtin_direct): Set TARGET to
index 71e64bbe2e99f8c0e51601deed109aa2cd6c3c1e..d74f49065a0c289ed447e3557f9649941422d672 100644 (file)
@@ -10192,6 +10192,8 @@ mips_output_conditional_branch (rtx insn, rtx *operands,
   unsigned int length;
   rtx taken, not_taken;
 
+  gcc_assert (LABEL_P (operands[1]));  
+
   length = get_attr_length (insn);
   if (length <= 8)
     {