https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100841
--- Comment #2 from Jan-Benedict Glaw <jbg...@lug-owl.de> --- (In reply to Jakub Jelinek from comment #1) > Guess following could fix it > --- gcc/config/xtensa/xtensa.h.jj 2021-01-04 10:25:45.570157539 +0100 > +++ gcc/config/xtensa/xtensa.h 2021-06-01 10:39:19.848827041 +0200 [...] It does, though uncovers the next signedness fun: [all 2021-06-01 14:06:13] /usr/lib/gcc-snapshot/bin/g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/gcc/../libbacktrace -o function.o -MT function.o -MMD -MP -MF ./.deps/function.TPo ../../gcc/gcc/function.c [all 2021-06-01 14:06:14] ../../gcc/gcc/function.c: In function 'void gen_call_used_regs_seq(rtx_insn*, unsigned int)': [all 2021-06-01 14:06:14] ../../gcc/gcc/function.c:5897:63: error: comparison of unsigned expression in '< 0' is always false [-Werror=type-limits] [all 2021-06-01 14:06:14] 5897 | if (crtl->uses_only_leaf_regs && LEAF_REG_REMAP (regno) < 0) [all 2021-06-01 14:06:22] cc1plus: all warnings being treated as errors [all 2021-06-01 14:06:22] make[1]: *** [Makefile:1141: function.o] Error 1 [all 2021-06-01 14:06:22] make[1]: Leaving directory '/var/lib/laminar/run/gcc-xtensa-linux/4/toolchain-build/gcc' [all 2021-06-01 14:06:22] make: *** [Makefile:4414: all-gcc] Error 2