OSDN Git Service

(hard_regno_mode_ok): Don't abort if unknown mode,
authortege <tege@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Sep 1992 21:23:36 +0000 (21:23 +0000)
committertege <tege@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Sep 1992 21:23:36 +0000 (21:23 +0000)
return 0 instead.  Declare argument MODE as `enum machine_mode'.

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

gcc/config/ns32k/ns32k.c

index 1f3b0b4..eb47d9c 100644 (file)
@@ -46,7 +46,7 @@ trace (s, s1, s2)
 int
 hard_regno_mode_ok (regno, mode)
      int regno;
-     int mode;
+     enum machine_mode mode;
 {
   switch (mode)
     {
@@ -107,7 +107,10 @@ hard_regno_mode_ok (regno, mode)
       else
        return 0;
     }
-  abort(0);
+
+  /* Used to abort here, but simply saying "no" handles TImode
+     much better.  */
+  return 0;
 }
 
 /* ADDRESS_COST calls this.  This function is not optimal