aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2025-02-07 04:10:57 -0300
committerAlexandre Oliva <oliva@gnu.org>2025-02-07 04:10:57 -0300
commit670f83c0b9f50e54b082ad566049f812fe47ae65 (patch)
tree9538cee31b7757812b50df18e64c12fa6e5028a9 /gcc
parentd3ff498c478acefce35de04402f99171b4f64a1a (diff)
downloadgcc-670f83c0b9f50e54b082ad566049f812fe47ae65.zip
gcc-670f83c0b9f50e54b082ad566049f812fe47ae65.tar.gz
gcc-670f83c0b9f50e54b082ad566049f812fe47ae65.tar.bz2
[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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/sparc/niagara7-align.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/sparc/niagara7-align.c b/gcc/testsuite/gcc.target/sparc/niagara7-align.c
index a46aac1..01a8cb6 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) {}