https://gcc.gnu.org/g:20c5853d17c25cf7df7333ffc9e36097a097f1de

commit 20c5853d17c25cf7df7333ffc9e36097a097f1de
Author: Alexandre Oliva <ol...@adacore.com>
Date:   Thu Feb 6 05:08:28 2025 -0300

    [testsuite] [sparc] use -mtune in alignment tuning test
    
    If -mcpu=leon3 is present in the command line for a test run,
    overriding it with -mcpu=niagara7 is not enough to override the tuning
    for leon3 selected by the previous -mcpu option.
    
    niagara7-align.c tests for niagara7 alignment tuning, so use -mtune
    rather than -mcpu.
    
    
    for  gcc/testsuite/ChangeLog
    
            * gcc.target/sparc/niagara7-align.c: Use -mtune.

Diff:
---
 gcc/testsuite/gcc.target/sparc/niagara7-align.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/sparc/niagara7-align.c 
b/gcc/testsuite/gcc.target/sparc/niagara7-align.c
index a46aac17c329..01a8cb621d5c 100644
--- a/gcc/testsuite/gcc.target/sparc/niagara7-align.c
+++ b/gcc/testsuite/gcc.target/sparc/niagara7-align.c
@@ -1,4 +1,4 @@
 /* { dg-do compile } */
-/* { dg-options "-falign-functions -mcpu=niagara7" } */
+/* { dg-options "-falign-functions -mtune=niagara7" } */
 /* { dg-final { scan-assembler "\.align 64" } } */
 void foo(void) {}

Reply via email to