This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix -mlong-double-{128,64} default detection in configury


Hi!

The intent was to make -mlong-double-128 default on glibc 2.4+
on ppc*/s390*/sparc/alpha linux when neither --with-long-double-128
nor --without-long-double-128 is specified.  But due to the bug
below -mlong-double-128 was only the default when explicitly
configuring with --with-long-double-128.  That's how I have
been configuring all my builts, so haven't noticed this.

Ok for 4.2/trunk?

2006-11-09  Jakub Jelinek  <jakub@redhat.com>

	* configure.ac: Add changequote around __LONG_DOUBLE_MATH_OPTIONAL
	test.
	* configure: Rebuilt.

--- gcc/configure.ac.jj	2006-11-09 18:15:26.000000000 +0100
+++ gcc/configure.ac	2006-11-09 18:16:20.000000000 +0100
@@ -3353,9 +3353,12 @@ case "$target" in
       else
 	glibc_header_dir=/usr/include
       fi
+changequote(,)dnl
       grep '^[ 	]*#[ 	]*define[ 	][ 	]*__LONG_DOUBLE_MATH_OPTIONAL' \
         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
-      && gcc_cv_target_ldbl128=yes])
+      && gcc_cv_target_ldbl128=yes
+changequote([,])dnl
+      ])
     ;;
 esac
 if test x$gcc_cv_target_ldbl128 = xyes; then
--- gcc/configure.jj	2006-11-09 18:15:31.000000000 +0100
+++ gcc/configure	2006-11-09 18:16:31.000000000 +0100
@@ -16259,9 +16259,10 @@ else
       else
 	glibc_header_dir=/usr/include
       fi
-      grep '^ 	*#[ 	]*define[ 	][ 	]*__LONG_DOUBLE_MATH_OPTIONAL' \
+      grep '^[ 	]*#[ 	]*define[ 	][ 	]*__LONG_DOUBLE_MATH_OPTIONAL' \
         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
       && gcc_cv_target_ldbl128=yes
+
 fi;
     ;;
 esac

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]