OSDN Git Service

* config/mips/mips.c (mips_output_conditional_branch): Assert that
authornemet <nemet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Dec 2008 21:59:51 +0000 (21:59 +0000)
committernemet <nemet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Dec 2008 21:59:51 +0000 (21:59 +0000)
openrands[1] is a CODE_LABEL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142772 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 147d6f8..8fe6a69 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 71e64bb..d74f490 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)
     {