]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Adjust testcases to not produce errors..
authorAndrew MacLeod <amacleod@redhat.com>
Fri, 31 Mar 2023 19:42:43 +0000 (15:42 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Fri, 31 Mar 2023 20:15:39 +0000 (16:15 -0400)
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.

gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C
gcc/testsuite/gcc.dg/tree-ssa/pr23109.c

index 35fb59e0232025db218332b0faa80e40ffc0cc56..faad5bed074e1ba717845c6b755d2794b063fd16 100644 (file)
@@ -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);
index 7cdf1d05ee710a24254692a2283862d606a158fb..059f658ea20b4e3818f0d5abeda56122bc38833d 100644 (file)
@@ -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.;