projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ade5531
)
testsuite: opt: Fix const7.C for RISC-V.
author
Jia-Wei Chen
<jiawei@iscas.ac.cn>
Fri, 13 May 2022 01:55:45 +0000
(09:55 +0800)
committer
Palmer Dabbelt
<palmer@rivosinc.com>
Fri, 13 May 2022 16:46:58 +0000
(09:46 -0700)
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.
gcc/testsuite/g++.dg/opt/const7.C
patch
|
blob
|
history
diff --git
a/gcc/testsuite/g++.dg/opt/const7.C
b/gcc/testsuite/g++.dg/opt/const7.C
index
5bcf948
..
50d902b
100644
(file)
--- 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 "" }