Tested on x86_64, i686-darwin, pushed to trunk, thanks,
Iain

--- 8< ---

All Darwin versions align 32b and smaller "naturally". All Darwin
lp64 align objects 64b and smaller "naturally".

gcc/testsuite/ChangeLog:

        * lib/target-supports.exp (natural_alignment_32) Remove
        Darwin special-casing. (natural_alignment_64) Likewise.

Signed-off-by: Iain Sandoe <[email protected]>
---
 gcc/testsuite/lib/target-supports.exp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/lib/target-supports.exp 
b/gcc/testsuite/lib/target-supports.exp
index ab726f729ab..a29d3bd89f5 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -9502,8 +9502,7 @@ proc check_effective_target_natural_alignment_32 { } {
     # FIXME: 32bit powerpc: guaranteed only if MASK_ALIGN_NATURAL/POWER.
     # FIXME: m68k has -malign-int
     return [check_cached_effective_target natural_alignment_32 {
-      if { ([istarget *-*-darwin*] && [is-effective-target lp64])
-          || [istarget avr-*-*]
+      if { [istarget avr-*-*]
           || [istarget m68k-*-linux*]
           || [istarget pru-*-*]
           || [istarget stormy16-*-*]
@@ -9526,7 +9525,7 @@ proc check_effective_target_natural_alignment_32 { } {
 proc check_effective_target_natural_alignment_64 { } {
     return [check_cached_effective_target natural_alignment_64 {
       expr { [is-effective-target natural_alignment_32]
-            && [is-effective-target lp64] && ![istarget *-*-darwin*] }
+            && [is-effective-target lp64] }
     }]
 }
 
-- 
2.50.1 (Apple Git-155)

Reply via email to