diff mbox

[Ada] Fix PR ada/40777

Message ID 201011271946.00568.ebotcazou@adacore.com
State New
Headers show

Commit Message

Eric Botcazou Nov. 27, 2010, 6:46 p.m. UTC
This is a build failure for SH targets, a regression present on the mainline 
and 4.5 branch.

Tested on i586-suse-linux, applied on the mainline and 4.5 branch.


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.
diff mbox

Patch

Index: gcc-interface/targtyps.c
===================================================================
--- gcc-interface/targtyps.c	(revision 167163)
+++ gcc-interface/targtyps.c	(working copy)
@@ -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;