This is an automated email from the git hooks/post-receive script.
unknown user pushed a commit to branch aoliva/libcp1 in repository gcc.
commit 31613034a3f7f6c82e118c3dccb6b76fdc399b27 Author: Alexandre Oliva aoliva@redhat.com Date: Fri Jun 12 02:28:57 2015 -0300
Backport to C some of the C++ VLA changes
As in the C++ plugin, removed the modification of VLA types when replacing them with the GDB-supplied addresses, and make them DECL_EXTERNAL instead. --- libcc1/libcc1plugin.cc | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-)
diff --git a/libcc1/libcc1plugin.cc b/libcc1/libcc1plugin.cc index 2fdbeea..39aac4a 100644 --- a/libcc1/libcc1plugin.cc +++ b/libcc1/libcc1plugin.cc @@ -299,18 +299,7 @@ address_rewriter (tree *in, int *walk_subtrees, void *arg) value.decl = *in; decl_addr_value *found_value = ctx->address_map.find (&value); if (found_value != NULL) - { - // At this point we don't need VLA sizes for gdb-supplied - // variables, and having them here confuses later passes, so we - // drop them. - if (C_TYPE_VARIABLE_SIZE (TREE_TYPE (*in))) - { - TREE_TYPE (*in) - = build_array_type_nelts (TREE_TYPE (TREE_TYPE (*in)), 1); - DECL_SIZE (*in) = TYPE_SIZE (TREE_TYPE (*in)); - DECL_SIZE_UNIT (*in) = TYPE_SIZE_UNIT (TREE_TYPE (*in)); - } - } + ; else if (DECL_IS_BUILTIN (*in)) { gcc_address address; @@ -418,6 +407,7 @@ plugin_build_decl (cc1_plugin::connection *self, { decl_addr_value value;
+ DECL_EXTERNAL (decl) = 1; value.decl = decl; if (substitution_name != NULL) {