Commit 22b04f05 by Martin Sebor Committed by Martin Sebor

builtin-snprintf-4.c: Adjust for ILP32.

gcc/testsuite/ChangeLog:
	* gcc.dg/tree-ssa/builtin-snprintf-4.c: Adjust for ILP32.

From-SVN: r267206
parent a81037ce
2018-12-17 Martin Sebor <msebor@redhat.com>
* gcc.dg/tree-ssa/builtin-snprintf-4.c: Adjust for ILP32.
2018-12-17 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
PR rtl-optimization/88253
......
......@@ -58,7 +58,12 @@ extern void sink (int, ...);
static const size_t imax = __INT_MAX__;
static const size_t imaxp1 = imax + 1;
#if __PTRDIFF_MAX__ == __INT_MAX__
/* Make the test pass on ILP32 the same way it does on LP64. */
static const size_t dmax = __PTRDIFF_MAX__ + (size_t)1;
#else
static const size_t dmax = __PTRDIFF_MAX__;
#endif
static const size_t dmaxp1 = dmax + 1;
static const size_t szmax = __SIZE_MAX__;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment