aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2010-11-27 18:46:49 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2010-11-27 18:46:49 +0000
commit8af4370b023f517ba4bf246d18d33840945c1daf (patch)
tree25f160e73116fc749da3bd24486bbab138a90bb0 /gcc/ada
parent5e2e42ba657137cfb9c5ca72381cb1e53751cdc7 (diff)
downloadgcc-8af4370b023f517ba4bf246d18d33840945c1daf.zip
gcc-8af4370b023f517ba4bf246d18d33840945c1daf.tar.gz
gcc-8af4370b023f517ba4bf246d18d33840945c1daf.tar.bz2
re PR ada/40777 (compile error on gcc-interface/targtyps.c)
PR ada/40777 * gcc-interface/targtyps.c (get_target_double_scalar_alignment): Guard use of TARGET_64BIT macro. From-SVN: r167205
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/ChangeLog6
-rw-r--r--gcc/ada/gcc-interface/targtyps.c8
2 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 3e75468..c32cac5 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -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.
diff --git a/gcc/ada/gcc-interface/targtyps.c b/gcc/ada/gcc-interface/targtyps.c
index 58c155f..b31fee3 100644
--- a/gcc/ada/gcc-interface/targtyps.c
+++ b/gcc/ada/gcc-interface/targtyps.c
@@ -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;