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:
parent
a81037cea6
commit
22b04f05ab
@ -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
|
||||
|
@ -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__;
|
||||
|
Loading…
Reference in New Issue
Block a user