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

--- Comment #21 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Qing Zhao <qinz...@gcc.gnu.org>:

https://gcc.gnu.org/g:3f3246eb16f554c70c5ce87ad2c785f83adb4625

commit r12-7411-g3f3246eb16f554c70c5ce87ad2c785f83adb4625
Author: Qing Zhao <qing.z...@oracle.com>
Date:   Mon Feb 28 15:58:43 2022 +0000

    Suppress uninitialized warnings for new created uses from
__builtin_clear_padding folding [PR104550]

    __builtin_clear_padding(&object) will clear all the padding bits of the
object.
    actually, it doesn't involve any use of an user variable. Therefore, users
do
    not expect any uninitialized warning from it. It's reasonable to suppress
    uninitialized warnings for all new created uses from
__builtin_clear_padding
    folding.

            PR middle-end/104550

    gcc/ChangeLog:

            * gimple-fold.cc (clear_padding_flush): Suppress warnings for new
            created uses.

    gcc/testsuite/ChangeLog:

            * gcc.dg/auto-init-pr104550-1.c: New test.
            * gcc.dg/auto-init-pr104550-2.c: New test.
            * gcc.dg/auto-init-pr104550-3.c: New test.
  • [Bug middle-end/104550] bogus w... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to