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]

Re: patch: Optionally use -mlong-double-128 by default on sparc


On Fri, Feb 03, 2006 at 04:50:45PM -0500, Andrew Pinski wrote:
> >+#ifdef TARGET_ALTERNATE_LONG_DOUBLE_MANGLING
> >+/* Implement TARGET_MANGLE_FUNDAMENTAL_TYPE.  */
> >+
> >+static const char *
> >+sparc_mangle_fundamental_type (tree type)
> >+{
> >+  if (!TARGET_64BIT
> >+      && TYPE_MAIN_VARIANT (type) == long_double_type_node
> >+      && TARGET_LONG_DOUBLE_128)
> >+    return "g";
> >+#endif
> >+
> >+  /* For all other types, use normal C++ mangling.  */
> >+  return NULL;
> >+}
> >+#endif
> 
> Why can't this be in linux.c instead of in sparc.c, I don't see the
> reason to put this in the target headers when they are all the same.

1) because there is no linux.c
2) because we want the alternate long double mangling only on a small
   subset of linux targets (powerpc*, alpha, s390*, sparc (32-bit))

	Jakub


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