diff options
author | Martin Sebor <msebor@redhat.com> | 2020-11-16 20:01:10 -0700 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2020-11-16 20:01:10 -0700 |
commit | 3072125a40ccfc139a92d44fb3911a8a7186b025 (patch) | |
tree | f8d3b5964d6e4b7f39f1ec0f197cf23179297f23 /gcc/tree.h | |
parent | b1ecb86569f63f897f6a95049c4ccf400bddeaad (diff) | |
download | gcc-3072125a40ccfc139a92d44fb3911a8a7186b025.zip gcc-3072125a40ccfc139a92d44fb3911a8a7186b025.tar.gz gcc-3072125a40ccfc139a92d44fb3911a8a7186b025.tar.bz2 |
PR middle-end/97840 - Bogus -Wmaybe-uninitialized passing an empty object to a function
gcc/ChangeLog:
* tree-ssa-uninit.c (maybe_warn_operand): Call is_empty_type.
* tree.c (default_is_empty_type): Rename...
(is_empty_type): ...to this.
* tree.h (is_empty_type): Declare.
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -6233,6 +6233,7 @@ extern void gt_pch_nx (tree &); extern void gt_pch_nx (tree &, gt_pointer_operator, void *); extern bool nonnull_arg_p (const_tree); +extern bool is_empty_type (const_tree); extern bool default_is_empty_record (const_tree); extern bool flexible_array_type_p (const_tree); extern HOST_WIDE_INT arg_int_size_in_bytes (const_tree); |