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

--- Comment #23 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Richard Biener
<rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:da579a833cf5a5ae463be3f4da70df782612a800

commit r13-9639-gda579a833cf5a5ae463be3f4da70df782612a800
Author: Richard Biener <rguent...@suse.de>
Date:   Fri Feb 28 14:09:29 2025 +0100

    lto/91299 - weak definition inlined with LTO

    The following fixes a thinko in the handling of interposed weak
    definitions which confused the interposition check in
    get_availability by setting DECL_EXTERNAL too early.

            PR lto/91299
    gcc/lto/
            * lto-symtab.cc (lto_symtab_merge_symbols): Set DECL_EXTERNAL
            only after calling get_availability.

    gcc/testsuite/
            * gcc.dg/lto/pr91299_0.c: New testcase.
            * gcc.dg/lto/pr91299_1.c: Likewise.

    (cherry picked from commit bc34db5b12e008f6ec4fdf4ebd22263c8617e5e3)

Reply via email to