gnu/gcc/5d7c74258d3a4b95cd5022acd5fa51381d922a40 tree-optimization/124545 - fix pr124545-2.c on ilp32 targets
The uns_carry() helper used "unsigned int" (32-bit) as the narrow type
and "unsigned long" as the wide type.
Switch to __UINT32_TYPE__ / __UINT64_TYPE__ throughout so that the
narrow-vs-wide test is target-independent.
PR tree-optimization/124545
gcc/testsuite/ChangeLog:
* gcc.dg/pr124545-2.c: Use __UINT32_TYPE__ / __UINT64_TYPE__
instead of unsigned int/long/long long so the runtime check
works on ILP32 targets.
Reported-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Tested-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Signed-off-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
1 file changed