https://gcc.gnu.org/g:098214cf395f8f464ef2696bc27ad8583e3a2e11

commit r15-5181-g098214cf395f8f464ef2696bc27ad8583e3a2e11
Author: Yangyu Chen <c...@cyyself.name>
Date:   Tue Nov 12 16:50:03 2024 -0700

    RISC-V: Fix target-attr-norelax.c testcase
    
    The target-attr-norelax.c testcase was failing due to the redundant "\t"
    check in the assembly output, and forgot to skip the check for lto build
    in the testcase.
    
    gcc/testsuite/ChangeLog:
    
            * gcc.target/riscv/target-attr-norelax.c: Fix testcase.

Diff:
---
 gcc/testsuite/gcc.target/riscv/target-attr-norelax.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/gcc.target/riscv/target-attr-norelax.c 
b/gcc/testsuite/gcc.target/riscv/target-attr-norelax.c
index 77de6195ad1e..01663b568646 100644
--- a/gcc/testsuite/gcc.target/riscv/target-attr-norelax.c
+++ b/gcc/testsuite/gcc.target/riscv/target-attr-norelax.c
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */
 /* { dg-options "-march=rv32gc" { target { rv32 } } } */
 /* { dg-options "-march=rv64gc" { target { rv64 } } } */
 
@@ -16,6 +17,6 @@ int main()
   return 0;
 }
 
-/* { dg-final { scan-assembler-times ".option push\t" 1 } } */
-/* { dg-final { scan-assembler-times ".option norelax\t" 1 } } */
-/* { dg-final { scan-assembler-times ".option pop\t" 1 } } */
+/* { dg-final { scan-assembler-times ".option push" 1 } } */
+/* { dg-final { scan-assembler-times ".option norelax" 1 } } */
+/* { dg-final { scan-assembler-times ".option pop" 1 } } */

Reply via email to