Commit 2d5be6c1 by Eric Botcazou Committed by Eric Botcazou

trans.c (establish_gnat_vms_condition_handler): Clear DECL_CONTEXT.

	* gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
	DECL_CONTEXT.
	(Subprogram_Body_to_gnu): Fix pasto.

From-SVN: r145661
parent 10069d53
2009-04-07 Eric Botcazou <ebotcazou@adacore.com> 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
DECL_CONTEXT.
(Subprogram_Body_to_gnu): Fix pasto.
2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl. * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
(void_type_decl_node): Remove. (void_type_decl_node): Remove.
(init_gigi_decls): Likewise. (init_gigi_decls): Likewise.
...@@ -2123,6 +2123,9 @@ establish_gnat_vms_condition_handler (void) ...@@ -2123,6 +2123,9 @@ establish_gnat_vms_condition_handler (void)
ptr_void_type_node, ptr_void_type_node,
NULL_TREE), NULL_TREE),
NULL_TREE, 0, 1, 1, 0, Empty); NULL_TREE, 0, 1, 1, 0, Empty);
/* ??? DECL_CONTEXT shouldn't have been set because of DECL_EXTERNAL. */
DECL_CONTEXT (gnat_vms_condition_handler_decl) = NULL_TREE;
} }
/* Do nothing if the establish builtin is not available, which might happen /* Do nothing if the establish builtin is not available, which might happen
...@@ -2242,7 +2245,8 @@ Subprogram_Body_to_gnu (Node_Id gnat_node) ...@@ -2242,7 +2245,8 @@ Subprogram_Body_to_gnu (Node_Id gnat_node)
this happens. The foreign or exported condition is expected to satisfy this happens. The foreign or exported condition is expected to satisfy
all the constraints. */ all the constraints. */
if (TARGET_ABI_OPEN_VMS if (TARGET_ABI_OPEN_VMS
&& (Has_Foreign_Convention (gnat_node) || Is_Exported (gnat_node))) && (Has_Foreign_Convention (gnat_subprog_id)
|| Is_Exported (gnat_subprog_id)))
establish_gnat_vms_condition_handler (); establish_gnat_vms_condition_handler ();
process_decls (Declarations (gnat_node), Empty, Empty, true, true); process_decls (Declarations (gnat_node), Empty, Empty, true, true);
......
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