diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2023-03-31 15:42:43 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2023-03-31 16:15:39 -0400 |
commit | 1e1b30a6a49714cbddea77b7c83c7d714022353c (patch) | |
tree | ce0d7e3f50d3358ed2fa87c440fc4bccc217f0aa | |
parent | e9910e002d610db6e08230583c2976c9a557131b (diff) | |
download | gcc-1e1b30a6a49714cbddea77b7c83c7d714022353c.zip gcc-1e1b30a6a49714cbddea77b7c83c7d714022353c.tar.gz gcc-1e1b30a6a49714cbddea77b7c83c7d714022353c.tar.bz2 |
Adjust testcases to not produce errors..
tree-optimization/109363
gcc/testsuite/
* g++.dg/warn/Wstringop-overflow-4.C: Always check bogus message.
* gcc.dg/tree-ssa/pr23109.c: Disable better recomputations.
-rw-r--r-- | gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/pr23109.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C b/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C index 35fb59e..faad5be 100644 --- a/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C +++ b/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C @@ -141,7 +141,7 @@ void test_strcpy_new_int16_t (size_t n, const size_t vals[]) int r_imin_imax = SR (INT_MIN, INT_MAX); T (S (1), new int16_t[r_imin_imax]); - T (S (2), new int16_t[r_imin_imax + 1]); // { dg-bogus "into a region of size" "pr106120" { xfail { ilp32 && c++98_only } } } + T (S (2), new int16_t[r_imin_imax + 1]); // { dg-bogus "into a region of size" "pr106120" { xfail { c++98_only } } } T (S (9), new int16_t[r_imin_imax * 2 + 1]); int r_0_imax = SR (0, INT_MAX); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr23109.c b/gcc/testsuite/gcc.dg/tree-ssa/pr23109.c index 7cdf1d0..059f658 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr23109.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr23109.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -funsafe-math-optimizations -ftrapping-math -fdump-tree-recip -fdump-tree-lim2" } */ +/* { dg-options "-O2 -funsafe-math-optimizations -ftrapping-math -fdump-tree-recip -fdump-tree-lim2 --param=ranger-recompute-depth=1" } */ /* { dg-warning "'-fassociative-math' disabled" "" { target *-*-* } 0 } */ +/* ranger-recompute-depth prevents the optimizers from being too smart. */ double F[2] = { 0., 0. }, e = 0.; |