(real_value_truncate): If requested mode is not supported, return the
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 16 Feb 1994 00:36:35 +0000 (19:36 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 16 Feb 1994 00:36:35 +0000 (19:36 -0500)
unmodified input instead of aborting.

From-SVN: r6568

gcc/real.c

index ea89ef80787c168fc2b1c604081aa486d1ff5f90..2f0652624429a5d066cb1fae313cc9289450438a 100644 (file)
@@ -882,8 +882,11 @@ real_value_truncate (mode, arg)
       r = etrunci (arg);
       return (r);
 
+    /* If an unsupported type was requested, presume that
+       the machine files know something useful to do with
+       the unmodified value.  */
     default:
-      abort ();
+      return (arg);
     }
   PUT_REAL (t, &r);
   return (r);