https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360
--- Comment #36 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Peter Bergner <berg...@gcc.gnu.org>: https://gcc.gnu.org/g:84cc3370d6d5972fe495b2114fb32f7b4a49a98d commit r11-4193-g84cc3370d6d5972fe495b2114fb32f7b4a49a98d Author: Richard Biener <rguent...@suse.de> Date: Wed Oct 21 14:28:45 2020 -0500 rs6000: MMA type causes an ICE in ranger pass due to incompatible types PR97360 shows a problem in how we create our PXI and POI modes that cause an ICE in the ranger pass. The problem seems to be that the extra call to build_distinct_type_copy() also creates new TYPE_{MIN,MAX}_VALUEs that are not compatible/the same as the base type itself. The simple "fix" is to actually remove the unneeded build_distinct_type_copy(), since according to richi, the types returned from make_unsigned_type() are already distinct. gcc/ 2020-10-21 Richard Biener <rguent...@suse.de> PR target/97360 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove call to build_distinct_type_copy(). gcc/testsuite/ 2020-10-21 Martin Liska <mli...@suse.cz> PR target/97360 * gcc.target/powerpc/pr97360.c: New test. Co-authored-by: Andrew MacLeod <amacl...@redhat.com> Co-authored-by: Martin Liska <mli...@suse.cz>