aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-10-31 08:10:57 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2019-10-31 08:10:57 +0100
commitfbdbe8b06a1c5626ad6360a4af33cb638c14cda1 (patch)
tree6f3b3270e66eb2e75172648e9848a118150d9d5e /gcc/tree.h
parente4c431266f9aaf604edfca68e852ae8efe966e8e (diff)
downloadgcc-fbdbe8b06a1c5626ad6360a4af33cb638c14cda1.zip
gcc-fbdbe8b06a1c5626ad6360a4af33cb638c14cda1.tar.gz
gcc-fbdbe8b06a1c5626ad6360a4af33cb638c14cda1.tar.bz2
re PR c++/90947 (Simple lookup table of array of strings is miscompiled)
PR c++/90947 * tree.h (type_initializer_zero_p): Remove. * tree.c (type_initializer_zero_p): Remove. cp/ * cp-tree.h (type_initializer_zero_p): Declare. * decl.c (reshape_init_array_1): Formatting fix. * tree.c (type_initializer_zero_p): New function. Moved from ../tree.c, use next_initializable_field, formatting fix. Return false for TYPE_NON_AGGREGATE_CLASS types. From-SVN: r277656
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index c825109..18d6c0e 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -4690,12 +4690,6 @@ extern tree first_field (const_tree);
extern bool initializer_zerop (const_tree, bool * = NULL);
extern bool initializer_each_zero_or_onep (const_tree);
-/* Analogous to initializer_zerop but also examines the type for
- which the initializer is being used. Unlike initializer_zerop,
- considers empty strings to be zero initializers for arrays and
- non-zero for pointers. */
-extern bool type_initializer_zero_p (tree, tree);
-
extern wide_int vector_cst_int_elt (const_tree, unsigned int);
extern tree vector_cst_elt (const_tree, unsigned int);