Signed-off-by: Jose E. Marchesi <jemarch@gnu.org>
gcc/algol68/ChangeLog
* a68-low-units.cc (a68_lower_formal_hole): Call
a68_wrap_formal_proc_hole after a68_add_decl.
TAX_TREE_DECL (TAX (defining_identifier)) = func_decl;
}
- /* Create the body for the wrapper from the formal hole. */
- a68_wrap_formal_proc_hole (p, func_decl);
-
/* If the identity-declaration is in a public range then add the
declaration to the module's declarations list. Otherwise chain the
declaration in the proper block and bind it. */
DECL_EXPR,
TREE_TYPE (func_decl),
func_decl));
+
+ /* Create the body for the wrapper from the formal hole. */
+ a68_wrap_formal_proc_hole (p, func_decl);
+
return func_decl;
}
else