https://gcc.gnu.org/g:c303f1056dfc2567b2511ee19ae2621c37389be4

commit r16-4940-gc303f1056dfc2567b2511ee19ae2621c37389be4
Author: Eric Botcazou <[email protected]>
Date:   Sun Nov 2 22:21:49 2025 +0100

    SPARC: Make target-specific test more robust
    
    The test is expected to pass on Solaris only.
    
    gcc/testsuite/
            * gcc.target/sparc/small-struct-1.c: Run only on Solaris.

Diff:
---
 gcc/testsuite/gcc.target/sparc/small-struct-1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.target/sparc/small-struct-1.c 
b/gcc/testsuite/gcc.target/sparc/small-struct-1.c
index 4897288766b8..1ceccd530449 100644
--- a/gcc/testsuite/gcc.target/sparc/small-struct-1.c
+++ b/gcc/testsuite/gcc.target/sparc/small-struct-1.c
@@ -42,5 +42,5 @@ double get2x (struct vec2x v)
   return v.x + v.y;
 }
 
-/* { dg-final { scan-assembler-not "ldx" } } */
-/* { dg-final { scan-assembler-not "stx" } } */
+/* { dg-final { scan-assembler-not "ldx" { target *-*-solaris* } } } */
+/* { dg-final { scan-assembler-not "stx" { target *-*-solaris* } } } */

Reply via email to