From 0a0875187065f286d13d47ce4e6fe73cd4383f34 Mon Sep 17 00:00:00 2001 From: "J\"orn Rennecke" Date: Fri, 6 Oct 2006 14:44:18 +0000 Subject: [PATCH] * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Define From-SVN: r117505 --- gcc/ChangeLog | 4 ++++ gcc/config/sh/sh.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 253d9b75604..a34d77e47bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2006-10-06 J"orn Rennecke + + * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Define. + 2006-10-05 Uros Bizjak * config/i386/sync.md ("sync_add", "sync_sub", diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index 5ce7086d0b4..fc4e1f282a4 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -2821,6 +2821,12 @@ struct sh_args { 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__) +#define LIBGCC2_DOUBLE_TYPE_SIZE 32 +#else +#define LIBGCC2_DOUBLE_TYPE_SIZE 64 +#endif + /* 'char' is signed by default. */ #define DEFAULT_SIGNED_CHAR 1