[Bug target/108240] ICE in emit_library_call_value_1 at gcc/calls.cc:4181 since r13-4894-gacc727cf02a144

linkw at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 3 07:00:28 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108240

Kewen Lin <linkw at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|poiwerpc                    |powerpc
                 CC|                            |bergner at gcc dot gnu.org,
                   |                            |segher at gcc dot gnu.org

--- Comment #3 from Kewen Lin <linkw at gcc dot gnu.org> ---
2) before the culprit commit r13-4894, if there is an explicit -m64, it does
set powerpc64 (as it's set explicitly), while if there is no explicit -m64, it
does nothing. The implicit 64 bit setting would always implicitly enable
powerpc64 initially, so it's fine. As this case shows, it's possible that the
used cpu would unset powerpc64 later if it's not default.

With the culprit commit r13-4894, we always implicitly enable powerpc64 for
both explicit and implicit 64 bit, it's the same as before for the explicit 64
bit case, but for the implicit 64 bit case, there is no chance for the used cpu
to unset powerpc64 (like this case). To keep it consistent with the previous,
the fix can be to only enable powerpc64 implicitly for explicit 64 bit, while
let it be for implicit 64 bit.


More information about the Gcc-bugs mailing list