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 7732063b2d0723c0c4944fd47d0934ff6a54b3a8 Author: Alexandre Oliva aoliva@redhat.com Date: Thu May 21 15:39:34 2015 -0300
Use build_lang_decl for functions --- libcc1/libcp1plugin.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index 789be2c..7a4270a 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -417,7 +417,13 @@ plugin_build_decl (cc1_plugin::connection *self,
source_location loc = ctx->get_source_location (filename, line_number);
- decl = build_decl (loc, code, identifier, sym_type); + if (code == FUNCTION_DECL) + { + decl = build_lang_decl (code, identifier, sym_type); + DECL_SOURCE_LOCATION (decl) = loc; + } + else + decl = build_decl (loc, code, identifier, sym_type); TREE_USED (decl) = 1; TREE_ADDRESSABLE (decl) = 1;