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

--- Comment #20 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Georg-Johann Lay
<g...@gcc.gnu.org>:

https://gcc.gnu.org/g:69485a8f65f9c6476f316f6003d7856ddbc02353

commit r14-12014-g69485a8f65f9c6476f316f6003d7856ddbc02353
Author: Georg-Johann Lay <a...@gjlay.de>
Date:   Sat Sep 6 13:38:48 2025 +0200

    AVR: Disable tree-switch-conversion per default.

    There are at least two cases where tree-switch-conversion leads
    to unpleasant resource allocation:

    PR49857
        The lookup table lives in RAM.  This is the case for all
        devices that locate .rodata in RAM, which is for almost
        all AVR devices.

    PR81540
        Code is bloated for 64-bit inputs.

    As far as PR49857 is concerned, a target hook that may add an
    address-space qualifier to the lookup table is the obvious
    solution, though a respective patch has always been rejected by
    global maintainers for non-technical reasons.

    gcc/
            PR target/81540
            PR target/49857
            * common/config/avr/avr-common.cc: Disable
-ftree-switch-conversion.

    (cherry picked from commit 912159d2b5429c3126756b56723dd4f32dd56bdd)

Reply via email to