re PR ada/40777 (compile error on gcc-interface/targtyps.c)
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 27 Nov 2010 18:46:49 +0000 (18:46 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 27 Nov 2010 18:46:49 +0000 (18:46 +0000)
PR ada/40777
* gcc-interface/targtyps.c (get_target_double_scalar_alignment): Guard
use of TARGET_64BIT macro.

From-SVN: r167205

gcc/ada/ChangeLog
gcc/ada/gcc-interface/targtyps.c

index 3e75468..c32cac5 100644 (file)
@@ -1,5 +1,11 @@
 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.
        (unsigned_long_long_t): New modular type.
        (pthread_cond_t): Add alignment clause.
index 58c155f..b31fee3 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;