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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by H.J. Lu <[email protected]>:

https://gcc.gnu.org/g:174ca6b52aa29316d63a9e2cbc8cdc24e95b7fff

commit r16-8933-g174ca6b52aa29316d63a9e2cbc8cdc24e95b7fff
Author: H.J. Lu <[email protected]>
Date:   Mon May 18 05:48:21 2026 +0800

    x86: Don't inline memmove for -Os

    Update ix86_expand_movmem to return false if optimize_function_for_size_p
    returns true to avoid inlining memmove for -Os.

    gcc/

            PR target/125355
            * config/i386/i386-expand.cc (ix86_expand_movmem): Return false
            for -Os.

    gcc/testsuite/

            PR target/125355
            * gcc.target/i386/pr125355.c: New test.

    Signed-off-by: H.J. Lu <[email protected]>
    (cherry picked from commit b0f2495634d6c3e40a3a929d2d440eed866dda6d)

Reply via email to