rx: remove some asserts
diff mbox

Message ID 201507202040.t6KKeibY028481@greed.delorie.com
State New
Headers show

Commit Message

DJ Delorie July 20, 2015, 8:40 p.m. UTC

There is no need to assert these just to say "not supported" and gcc
may rarely generate addresses from valid code which trigger these
asserts.  Ok?

diff mbox

Index: gcc/config/rx/rx.c
--- gcc/config/rx/rx.c	(revision 225533)
+++ gcc/config/rx/rx.c	(working copy)
@@ -367,14 +367,12 @@  rx_mode_dependent_address_p (const_rtx a
 	case SYMBOL_REF:
 	case LABEL_REF:
 	  return true;
 	case MULT:
-	  gcc_assert (REG_P (XEXP (addr, 0)));
-	  gcc_assert (CONST_INT_P (XEXP (addr, 1)));
 	  /* REG+REG*SCALE is always mode dependent.  */
 	  return true;
 	  /* Not recognized, so treat as mode dependent.  */
 	  return true;