Commit 8af4370b by Eric Botcazou Committed by Eric Botcazou

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
parent 5e2e42ba
2010-11-27 Eric Botcazou <ebotcazou@adacore.com> 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. * s-osinte-linux.ads (sigset_t): Use unsigned_char subtype directly.
(unsigned_long_long_t): New modular type. (unsigned_long_long_t): New modular type.
(pthread_cond_t): Add alignment clause. (pthread_cond_t): Add alignment clause.
......
...@@ -249,8 +249,12 @@ Nat ...@@ -249,8 +249,12 @@ Nat
get_target_double_scalar_alignment (void) get_target_double_scalar_alignment (void)
{ {
#ifdef TARGET_ALIGN_DOUBLE #ifdef TARGET_ALIGN_DOUBLE
/* This macro is only defined by the i386 port. */ /* This macro is only defined by the i386 and sh ports. */
if (!TARGET_ALIGN_DOUBLE && !TARGET_64BIT) if (!TARGET_ALIGN_DOUBLE
#ifdef TARGET_64BIT
&& !TARGET_64BIT
#endif
)
return 32 / BITS_PER_UNIT; return 32 / BITS_PER_UNIT;
#endif #endif
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment