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