On 11/28/25 1:38 PM, Jakub Jelinek wrote:
Hi! C++20, in particular https://wg21.link/P1120R0 paper voted into it, deprecates various operations between enumerators from different enumeration types etc., and as we've switched to -std=gnu++20 by default, this now results in warnings or errors during stage2 and onwards. The following patch should fix mips build. Tested on x86_64 with a cross to mips, by doing make clean; make -j32 CXXFLAGS='-g -std=gnu++20' in the gcc/ directory. Ok for trunk? 2025-11-28 Jakub Jelinek <[email protected]> * config/mips/mips.cc (mips_unspec_address_offset): Avoid arithmetics between enumerators from different enum types.
OK jeff
