https://gcc.gnu.org/g:2d9e079e1add912cafa397610faf9905985b42be

commit r17-4042-g2d9e079e1add912cafa397610faf9905985b42be
Author: Iain Sandoe <[email protected]>
Date:   Wed Sep 9 20:26:04 2026 +0100

    testsuite, Darwin: Adjust target alignment tests.
    
    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]>

Diff:
---
 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 ab726f729ab3..a29d3bd89f5f 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] }
     }]
 }

Reply via email to