OSDN Git Service

(i960_address_cost): Don't abort for invalid addresses.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Aug 1992 18:55:48 +0000 (18:55 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Aug 1992 18:55:48 +0000 (18:55 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1877 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/i960/i960.c

index 9f11fc7..60f65b9 100644 (file)
@@ -493,7 +493,9 @@ i960_address_cost (x)
       if (GET_CODE (base) == PLUS || GET_CODE (base) == MULT)
        return 6;
 
-      abort ();
+      /* This is an invalid address.  The return value doesn't matter, but
+        for convenience we make this more expensive than anything else.  */
+      return 12;
     }
   if (GET_CODE (x) == MULT)
     return 6;