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

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

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

commit r14-11503-ge3290933ead698742f59e4abc4da694e73191203
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