[Bug tree-optimization/102269] ICE in verify_gimple_stmt and -ftrivial-auto-var-init=zero and zero size array

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Sep 10 09:11:46 GMT 2021


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

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

https://gcc.gnu.org/g:1dae802b685937b1dc52e49d0641c75f3186ba14

commit r12-3445-g1dae802b685937b1dc52e49d0641c75f3186ba14
Author: Richard Biener <rguenther@suse.de>
Date:   Fri Sep 10 10:17:24 2021 +0200

    middle-end/102269 - avoid auto-init of empty types

    This avoids initializing empty types for which we'll eventually
    leave a .DEFERRED_INIT call without a LHS.

    2021-09-10  Richard Biener  <rguenther@suse.de>

            PR middle-end/102269
            * gimplify.c (is_var_need_auto_init): Empty types do not need
            initialization.

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


More information about the Gcc-bugs mailing list