aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2020-11-16 20:01:10 -0700
committerMartin Sebor <msebor@redhat.com>2020-11-16 20:01:10 -0700
commit3072125a40ccfc139a92d44fb3911a8a7186b025 (patch)
treef8d3b5964d6e4b7f39f1ec0f197cf23179297f23 /gcc/tree.h
parentb1ecb86569f63f897f6a95049c4ccf400bddeaad (diff)
downloadgcc-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 9a713cd..5c0e3cc 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -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);