diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-10-31 08:10:57 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-10-31 08:10:57 +0100 |
commit | fbdbe8b06a1c5626ad6360a4af33cb638c14cda1 (patch) | |
tree | 6f3b3270e66eb2e75172648e9848a118150d9d5e /gcc/tree.h | |
parent | e4c431266f9aaf604edfca68e852ae8efe966e8e (diff) | |
download | gcc-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.h | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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); |