This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[sh] add sh2a-single-only to libgcc_double_type_size test
- From: DJ Delorie <dj at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 24 Apr 2009 19:06:26 -0400
- Subject: [sh] add sh2a-single-only to libgcc_double_type_size test
Committed as obvious.
* config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
__SH2A_SINGLE_ONLY__ also.
Index: config/sh/sh.h
===================================================================
--- config/sh/sh.h (revision 146746)
+++ config/sh/sh.h (working copy)
@@ -2615,13 +2615,13 @@ struct sh_args {
#define FLOAT_TYPE_SIZE 32
/* Since the SH2e has only `float' support, it is desirable to make all
floating point types equivalent to `float'. */
#define DOUBLE_TYPE_SIZE ((TARGET_SH2E && ! TARGET_SH4 && ! TARGET_SH2A_DOUBLE) ? 32 : 64)
-#if defined(__SH2E__) || defined(__SH3E__) || defined( __SH4_SINGLE_ONLY__)
+#if defined(__SH2E__) || defined(__SH3E__) || defined( __SH2A_SINGLE_ONLY__) || defined( __SH4_SINGLE_ONLY__)
#define LIBGCC2_DOUBLE_TYPE_SIZE 32
#else
#define LIBGCC2_DOUBLE_TYPE_SIZE 64
#endif
/* 'char' is signed by default. */