aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-02-15 19:36:35 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1994-02-15 19:36:35 -0500
commit0de689b7ada13c7d480491647363e4995ed5ba93 (patch)
tree1482f420f57c21243f75c964a12841ed2d8dc285 /gcc
parent79777b798cb818ea1ac419e357263158f7b72acd (diff)
downloadgcc-0de689b7ada13c7d480491647363e4995ed5ba93.zip
gcc-0de689b7ada13c7d480491647363e4995ed5ba93.tar.gz
gcc-0de689b7ada13c7d480491647363e4995ed5ba93.tar.bz2
(real_value_truncate): If requested mode is not supported, return the
unmodified input instead of aborting. From-SVN: r6568
Diffstat (limited to 'gcc')
-rw-r--r--gcc/real.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/real.c b/gcc/real.c
index ea89ef80..2f06526 100644
--- a/gcc/real.c
+++ b/gcc/real.c
@@ -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);