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

From-SVN: r167206

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

index 8ca6899555ce6b03d7fd9ad387420958918d1f7f..8c9483d68e34d2e5213ae8f22921e7dfad88651b 100644 (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-09-19  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
index 9bc8f0e42ecc11b17d7f9eaf819d89727ce75b48..f67df5cb9ce650ba4c8691d88ea3777882b247d7 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;