public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-444] testsuite: opt: Fix const7.C for RISC-V.
@ 2022-05-13 16:47 Palmer Dabbelt
  0 siblings, 0 replies; only message in thread
From: Palmer Dabbelt @ 2022-05-13 16:47 UTC (permalink / raw)
  To: gcc-cvs

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

commit r13-444-gdc32901a0221a43e121591b9819b4e33bcc2fd0a
Author: Jia-Wei Chen <jiawei@iscas.ac.cn>
Date:   Fri May 13 09:55:45 2022 +0800

    testsuite: opt: Fix const7.C for RISC-V.
    
    Similar to pr593993, RISC-V needs to limit symbols send in sdata.
    
    gcc/testsuite/ChangeLog:
    
            * g++.dg/opt/const7.C: Don't use small data on RISC-V.

Diff:
---
 gcc/testsuite/g++.dg/opt/const7.C | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/g++.dg/opt/const7.C b/gcc/testsuite/g++.dg/opt/const7.C
index 5bcf94897a8..50d902beae1 100644
--- a/gcc/testsuite/g++.dg/opt/const7.C
+++ b/gcc/testsuite/g++.dg/opt/const7.C
@@ -1,6 +1,7 @@
 // PR c++/104142
 // { dg-do compile { target c++11 } }
 // { dg-additional-options -Wunused-variable }
+// { dg-options "-msmall-data-limit=0" { target { riscv*-*-* } } }
 
 struct B { B()=default; };
 static const B b_var;		//  { dg-bogus "" }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-13 16:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13 16:47 [gcc r13-444] testsuite: opt: Fix const7.C for RISC-V Palmer Dabbelt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).