re PR ada/40777 (compile error on gcc-interface/targtyps.c)

PR ada/40777
	* gcc-interface/targtyps.c (get_target_double_scalar_alignment): Guard
	use of TARGET_64BIT macro.

From-SVN: r167205
This commit is contained in:
Eric Botcazou 2010-11-27 18:46:49 +00:00 committed by Eric Botcazou
parent 5e2e42ba65
commit 8af4370b02
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2010-11-27 Eric Botcazou <ebotcazou@adacore.com>
PR ada/40777
* gcc-interface/targtyps.c (get_target_double_scalar_alignment): Guard
use of TARGET_64BIT macro.
2010-11-27 Eric Botcazou <ebotcazou@adacore.com>
* s-osinte-linux.ads (sigset_t): Use unsigned_char subtype directly.

View file

@ -249,8 +249,12 @@ Nat
get_target_double_scalar_alignment (void)
{
#ifdef TARGET_ALIGN_DOUBLE
/* This macro is only defined by the i386 port. */
if (!TARGET_ALIGN_DOUBLE && !TARGET_64BIT)
/* This macro is only defined by the i386 and sh ports. */
if (!TARGET_ALIGN_DOUBLE
#ifdef TARGET_64BIT
&& !TARGET_64BIT
#endif
)
return 32 / BITS_PER_UNIT;
#endif
return 0;