aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorMichael Meissner <meissner@linux.vnet.ibm.com>2018-01-11 23:31:09 +0000
committerMichael Meissner <meissner@gcc.gnu.org>2018-01-11 23:31:09 +0000
commit8c7a27d566e7144451d1f0eb79d6b5866035995f (patch)
tree866629ef524c5989733eec997136715953b1a31e /gcc/config.gcc
parent02a03501e439cd92b741034c32ce7238a927dff1 (diff)
downloadgcc-8c7a27d566e7144451d1f0eb79d6b5866035995f.zip
gcc-8c7a27d566e7144451d1f0eb79d6b5866035995f.tar.gz
gcc-8c7a27d566e7144451d1f0eb79d6b5866035995f.tar.bz2
configure.ac (--with-long-double-format): Add support for the configuration option to change the default long double...
2018-01-11 Michael Meissner <meissner@linux.vnet.ibm.com> * configure.ac (--with-long-double-format): Add support for the configuration option to change the default long double format on PowerPC systems. * config.gcc (powerpc*-linux*-*): Likewise. * configure: Regenerate. * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If long double is IEEE, define __KC__ and __KF__ to allow floatn.h to be used without modification. From-SVN: r256558
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 4ef52ce..3a6d523 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -4400,6 +4400,14 @@ case "${target}" in
exit 1
fi
fi
+
+ # Set up the default long double format if the user changed it.
+ if test x$with_long_double_format = xieee; then
+ tm_defines="${tm_defines} TARGET_IEEEQUAD_DEFAULT=1"
+
+ elif test x$with_long_double_format = xibm; then
+ tm_defines="${tm_defines} TARGET_IEEEQUAD_DEFAULT=0"
+ fi
;;
s390*-*-*)