]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR ada/40777
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 27 Nov 2010 18:46:49 +0000 (18:46 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 27 Nov 2010 18:46:49 +0000 (18:46 +0000)
* gcc-interface/targtyps.c (get_target_double_scalar_alignment): Guard
use of TARGET_64BIT macro.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167205 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 3e7546899a51ee02dbd6dcbe05991eb6c7913f51..c32cac58bfa84bdb7a88d1d9a984355abd47e631 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-11-27  Eric Botcazou  <ebotcazou@adacore.com>
 
        * s-osinte-linux.ads (sigset_t): Use unsigned_char subtype directly.
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;