[PATCH] Allow -msoft-float -mlong-double-128 without a warning

Jakub Jelinek jakub@redhat.com
Wed Feb 1 21:20:00 GMT 2006


On Wed, Feb 01, 2006 at 02:30:00PM -0500, David Edelsohn wrote:
> 	I would prefer retaining the warning if -mlong-double-128
> explicitly is used, but I don't mind removing the implicit long double
> type size reset.  PPC Glibc does not provide TFmode soft-float helper
> routines.  If something is not supported, I am very uncomfortable about
> silently failing.

Here is an updated patch.
Ok for trunk?

2006-02-01  Jakub Jelinek  <jakub@redhat.com>

	* config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): For
	-msoft-float -mlong-double-128 only issue a warning, but don't
	swich to DFmode long double.

--- gcc/config/rs6000/sysv4.h.jj	2006-01-27 20:57:53.000000000 +0100
+++ gcc/config/rs6000/sysv4.h	2006-02-01 22:15:24.000000000 +0100
@@ -215,12 +215,9 @@ do {									\
       error ("-msecure-plt not supported by your assembler");		\
     }									\
 									\
-  if (TARGET_SOFT_FLOAT && TARGET_LONG_DOUBLE_128)			\
-    {									\
-      rs6000_long_double_type_size = 64;				\
-      if (rs6000_explicit_options.long_double)				\
-	warning (0, "soft-float and long-double-128 are incompatible");	\
-    }									\
+  if (TARGET_SOFT_FLOAT && TARGET_LONG_DOUBLE_128			\
+      && rs6000_explicit_options.long_double)				\
+    warning (0, "-msoft-float and -mlong-double-128 not supported");	\
 									\
   /* Treat -fPIC the same as -mrelocatable.  */				\
   if (flag_pic > 1 && DEFAULT_ABI != ABI_AIX)				\


	Jakub



More information about the Gcc-patches mailing list