Disable some bogus -Wmaybe-uninitialized warnings
authorJan Hubicka <jh@suse.cz>
Mon, 16 Nov 2020 15:31:30 +0000 (16:31 +0100)
committerJan Hubicka <jh@suse.cz>
Mon, 16 Nov 2020 15:31:30 +0000 (16:31 +0100)
commit0c9687d0daa08c33456210b87e4060d6397ff4d8
tree8986ca4e89585c82fc63b24e4f9a2e972a92374b
parentc84df34aec3bb845b22384c7e85f0449ca00dd99
Disable some bogus -Wmaybe-uninitialized warnings

gcc/ChangeLog:
PR middle-end/97840
* ipa-modref.c (analyze_ssa_name_flags): Skip clobbers if inlining
is done.
* tree-ssa-uninit.c (maybe_warn_pass_by_reference): Make stmt gcall;
skip const calls and unused arguments.
(warn_uninitialized_vars): Update prototype.

gcc/testsuite/ChangeLog:
* g++.dg/warn/uninit-1.C: New test.
gcc/ipa-modref.c
gcc/testsuite/g++.dg/warn/uninit-1.C [new file with mode: 0644]
gcc/tree-ssa-uninit.c