summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-27 11:35:38 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-27 11:35:38 +0000
commiteb3f6d219982f981ba1ce81b67a9b95bd33a6196 (patch)
treeef99ec2b5d5aa2fe23c3736cf9ec038b2ad3aff8 /hints
parent890e6c902f1a2403daf1f98da8afe6dec1ccf0e3 (diff)
downloadperl-eb3f6d219982f981ba1ce81b67a9b95bd33a6196.tar.gz
Catch FP exceptions also in z/OS (aka OS/390), from Peter Prymmer.
p4raw-id: //depot/perl@10978
Diffstat (limited to 'hints')
-rw-r--r--hints/os390.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/hints/os390.sh b/hints/os390.sh
index 4eff5a8217..4f6f370328 100644
--- a/hints/os390.sh
+++ b/hints/os390.sh
@@ -25,6 +25,8 @@ case "$ld" in
esac
# -DMAXSIG=38 maximum signal number
+# -DPERL_IGNORE_FPUSIG=SIGFPE allows Perl to be cavalier with FP overflow
+# (particularly in numeric.c:S_mulexp10())
# -DOEMVS is used in place of #ifdef __MVS__ in certain places.
# -D_OE_SOCKETS alters system headers.
# -D_XOPEN_SOURCE_EXTENDEDA alters system headers.
@@ -33,8 +35,8 @@ esac
# -DEBCDIC should come from Configure and need not be mentioned here.
# Prepend your favorites with Configure -Dccflags=your_favorites
case "$ccflags" in
-'') ccflags='-DMAXSIG=38 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC' ;;
-*) ccflags="$ccflags -DMAXSIG=38 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC" ;;
+'') ccflags='-DMAXSIG=38 -DPERL_IGNORE_FPUSIG=SIGFPE -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC' ;;
+*) ccflags="$ccflags -DMAXSIG=38 -DPERL_IGNORE_FPUSIG=SIGFPE -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC" ;;
esac
# Turning on optimization breaks perl.