diff options
author | Steven Bosscher <stevenb@suse.de> | 2004-05-20 12:58:46 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2004-05-20 12:58:46 +0000 |
commit | 1ffae6283039532568e776e7a55d07b05c7aa62c (patch) | |
tree | 62efaeedce5ba24bec4b4e5bf767c2dcd226c81b | |
parent | 965ccc5a1cfc6ad1df67c8e88cfe5f044272eb4f (diff) | |
download | gcc-1ffae6283039532568e776e7a55d07b05c7aa62c.zip gcc-1ffae6283039532568e776e7a55d07b05c7aa62c.tar.gz gcc-1ffae6283039532568e776e7a55d07b05c7aa62c.tar.bz2 |
* tree-mudflap.c: Formatting fixes.
From-SVN: r82052
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/tree-mudflap.c | 19 |
2 files changed, 15 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 24e1c24..09873bc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-05-20 Steven Bosscher <stevenb@suse.de> + + * tree-mudflap.c: Formatting fixes. + 2004-05-20 J"orn Rennecke <joern.rennecke@superh.com> * Makefile.in (GTFILES): Add $(srcdir)/reload.h. diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c index ea5548f..f0c9337 100644 --- a/gcc/tree-mudflap.c +++ b/gcc/tree-mudflap.c @@ -740,13 +740,16 @@ mx_register_decls (tree decl, tree *stmt_list) while (decl != NULL_TREE) { /* Eligible decl? */ - if ((TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == PARM_DECL) && - (! TREE_STATIC (decl)) && /* auto variable */ - (! DECL_EXTERNAL (decl)) && /* not extern variable */ - (TREE_TYPE (decl) != error_mark_node) && /* not decl with error */ - (COMPLETE_OR_VOID_TYPE_P (TREE_TYPE (decl))) && /* complete type */ - (! mf_marked_p (decl)) && /* not already processed */ - (TREE_ADDRESSABLE (decl))) /* has address taken */ + if ((TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == PARM_DECL) + /* It must be a non-external, automatic variable. */ + && ! DECL_EXTERNAL (decl) + && ! TREE_STATIC (decl) + /* The decl must have its address taken. */ + && TREE_ADDRESSABLE (decl) + /* The type of the variable must be complete. */ + && COMPLETE_OR_VOID_TYPE_P (TREE_TYPE (decl)) + /* Don't process the same decl twice. */ + && ! mf_marked_p (decl)) { tree size = NULL_TREE, variable_name; tree unregister_fncall, unregister_fncall_params; @@ -860,7 +863,7 @@ mx_register_decls (tree decl, tree *stmt_list) /* Add the __mf_register call at the current appending point. */ if (tsi_end_p (initially_stmts)) internal_error ("mudflap ran off end of BIND_EXPR body"); - tsi_link_before (& initially_stmts, register_fncall, TSI_SAME_STMT); + tsi_link_before (&initially_stmts, register_fncall, TSI_SAME_STMT); /* Accumulate the FINALLY piece. */ append_to_statement_list (unregister_fncall, &finally_stmts); |