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

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

From-SVN: r267206
This commit is contained in:
Martin Sebor 2018-12-17 18:10:58 +00:00 committed by Martin Sebor
parent a81037cea6
commit 22b04f05ab
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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__;