Don't use 'c' modifier with a symbolic address.  The riscv target doesn't
accept it as a CONSTANT_ADDRESS_P and doesn't support 'c' with SYMBOL_REF.

        * c-c++-common/toplevel-asm-1.c: Remove 'c' from %3 and %4.
---
 gcc/testsuite/c-c++-common/toplevel-asm-1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/c-c++-common/toplevel-asm-1.c 
b/gcc/testsuite/c-c++-common/toplevel-asm-1.c
index 12623fcd666..21f726a4656 100644
--- a/gcc/testsuite/c-c++-common/toplevel-asm-1.c
+++ b/gcc/testsuite/c-c++-common/toplevel-asm-1.c
@@ -8,7 +8,7 @@ enum E { E0, E1 = sizeof (struct S) + 15 };
 int v[42];
 void foo (void) {}
 
-asm ("# %0 %1 %2 %c3 %c4 %5 %% %="
+asm ("# %0 %1 %2 %3 %4 %5 %% %="
      :: "i" (sizeof (struct S)),
        "i" (__builtin_offsetof (struct S, c)),
        "i" (E1),
-- 
2.47.1


-- 
Andreas Schwab, SUSE Labs, sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Reply via email to