diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-15 13:53:46 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-15 13:53:46 +0000 |
commit | 6a7488afb8f10aff65fddfa4b5e146634d7351ae (patch) | |
tree | 791babe4f9717ac17238ae99a9868e7212095d27 /gcc/aclocal.m4 | |
parent | bffcf01410ba886afbb7a6e4bb238a5c024b2e9c (diff) | |
download | gcc-6a7488afb8f10aff65fddfa4b5e146634d7351ae.tar.gz |
* aclocal.m4 (AC_GCC_C_LONG_DOUBLE): New macro.
* configure.in (AC_GCC_C_LONG_DOUBLE): Call it.
* gansidecl.h (HAVE_LONG_DOUBLE): Define if gcc for stage2.
* ggc-simple.c (HAVE_LONG_DOUBLE): Test before using long double.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29432 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r-- | gcc/aclocal.m4 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4 index fe4d83282c9..543938325ed 100644 --- a/gcc/aclocal.m4 +++ b/gcc/aclocal.m4 @@ -172,6 +172,25 @@ if test $gcc_cv_c_volatile = yes ; then fi ]) +dnl Check whether long double is supported. This differs from the +dnl built-in autoconf test in that it works for cross compiles. +AC_DEFUN(AC_GCC_C_LONG_DOUBLE, +[AC_CACHE_CHECK(for long double, gcc_cv_c_long_double, +[if test "$GCC" = yes; then + gcc_cv_c_long_double=yes +else +AC_TRY_COMPILE(, +[/* The Stardent Vistra knows sizeof(long double), but does not support it. */ +long double foo = 0.0; +/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ +switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;], +gcc_cv_c_long_double=yes, gcc_cv_c_long_double=no) +fi]) +if test $gcc_cv_c_long_double = yes; then + AC_DEFINE(HAVE_LONG_DOUBLE) +fi +]) + dnl Define MKDIR_TAKES_ONE_ARG if mkdir accepts only one argument instead dnl of the usual 2. AC_DEFUN(GCC_FUNC_MKDIR_TAKES_ONE_ARG, |