Resolves:
PR testsuite/101688 - g++.dg/warn/Wstringop-overflow-4.C fails on 32-bit archs with new jump threader
gcc/testsuite:
PR testsuite/101688
* g++.dg/warn/Wstringop-overflow-4.C: Disable a test case in ILP32.
T (S (9), new int16_t[r_imin_imax * 2 + 1]);
int r_0_imax = SR (0, INT_MAX);
- T (S (1), new int16_t[r_0_imax]);
+
+ if (sizeof (int) < sizeof (size_t))
+ /* The code below might emit a warning when int is the same size
+ as size_t as a result of threading. See PR 101688 comment #2. */
+ T (S (1), new int16_t[r_0_imax]);
+
T (S (2), new int16_t[r_0_imax + 1]);
T (S (9), new int16_t[r_0_imax * 2 + 1]);