]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix profiledbootstrap poly_int fallout [PR111642]
authorRichard Sandiford <richard.sandiford@arm.com>
Mon, 2 Oct 2023 06:20:45 +0000 (07:20 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Mon, 2 Oct 2023 06:20:45 +0000 (07:20 +0100)
commite465e5e4a969334f64cf0d6611de5273d73ea732
tree79cb538e483ca276eb73a0ade11d40fe66eabcc8
parent9464e72bcc9123b619215af8cfef491772a3ebd9
Fix profiledbootstrap poly_int fallout [PR111642]

rtl-tests.cc and simplify-rtx.cc used partial specialisation
to try to restrict the NUM_POLY_INT_COEFFS>1 tests without
resorting to preprocessor tests.  That now triggers an error
in some configurations, since the NUM_POLY_INT_COEFFS>1 tests
used the global poly_int64, whose definition does not depend
on the template parameter.

This patch uses local types that do depend on the template parameter.

gcc/
PR bootstrap/111642
* rtl-tests.cc (const_poly_int_tests<N>::run): Use a local
poly_int64 typedef.
* simplify-rtx.cc (simplify_const_poly_int_tests<N>::run): Likewise.
gcc/rtl-tests.cc
gcc/simplify-rtx.cc