re PR ada/40777 (compile error on gcc-interface/targtyps.c)
[gcc.git] / gcc / ada / gcc-interface / targtyps.c
index 58c155fdb4528bf2fe46c56c0c7a4850978262be..b31fee311e79929c1ac87caf0bc3187ac4817fca 100644 (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;