Commit 1ffae628 by Steven Bosscher Committed by Steven Bosscher

* tree-mudflap.c: Formatting fixes.

From-SVN: r82052
parent 965ccc5a
2004-05-20 Steven Bosscher <stevenb@suse.de>
* tree-mudflap.c: Formatting fixes.
2004-05-20 J"orn Rennecke <joern.rennecke@superh.com> 2004-05-20 J"orn Rennecke <joern.rennecke@superh.com>
* Makefile.in (GTFILES): Add $(srcdir)/reload.h. * Makefile.in (GTFILES): Add $(srcdir)/reload.h.
......
...@@ -740,13 +740,16 @@ mx_register_decls (tree decl, tree *stmt_list) ...@@ -740,13 +740,16 @@ mx_register_decls (tree decl, tree *stmt_list)
while (decl != NULL_TREE) while (decl != NULL_TREE)
{ {
/* Eligible decl? */ /* Eligible decl? */
if ((TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == PARM_DECL) && if ((TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == PARM_DECL)
(! TREE_STATIC (decl)) && /* auto variable */ /* It must be a non-external, automatic variable. */
(! DECL_EXTERNAL (decl)) && /* not extern variable */ && ! DECL_EXTERNAL (decl)
(TREE_TYPE (decl) != error_mark_node) && /* not decl with error */ && ! TREE_STATIC (decl)
(COMPLETE_OR_VOID_TYPE_P (TREE_TYPE (decl))) && /* complete type */ /* The decl must have its address taken. */
(! mf_marked_p (decl)) && /* not already processed */ && TREE_ADDRESSABLE (decl)
(TREE_ADDRESSABLE (decl))) /* has address taken */ /* 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 size = NULL_TREE, variable_name;
tree unregister_fncall, unregister_fncall_params; tree unregister_fncall, unregister_fncall_params;
...@@ -860,7 +863,7 @@ mx_register_decls (tree decl, tree *stmt_list) ...@@ -860,7 +863,7 @@ mx_register_decls (tree decl, tree *stmt_list)
/* Add the __mf_register call at the current appending point. */ /* Add the __mf_register call at the current appending point. */
if (tsi_end_p (initially_stmts)) if (tsi_end_p (initially_stmts))
internal_error ("mudflap ran off end of BIND_EXPR body"); 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. */ /* Accumulate the FINALLY piece. */
append_to_statement_list (unregister_fncall, &finally_stmts); append_to_statement_list (unregister_fncall, &finally_stmts);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment