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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:106f99406312d7ed47434de53c180718225ffa5e

commit r13-5285-g106f99406312d7ed47434de53c180718225ffa5e
Author: Richard Biener <rguent...@suse.de>
Date:   Thu Jan 19 08:44:25 2023 +0100

    tree-optimization/108449 - keep maybe_special_function_p behavior

    When we have a static declaration without definition we diagnose
    that and turn it into an extern declaration.  That can alter
    the outcome of maybe_special_function_p here and there's really
    no point in doing that, so don't.

            PR tree-optimization/108449
            * cgraphunit.cc (check_global_declaration): Do not turn
            undefined statics into externs.

            * gcc.dg/pr108449.c: New testcase.

Reply via email to