From 738b83cd32bc4ebf651ef517cd880f04500d07af Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Wed, 26 Sep 2018 09:16:54 +0000 Subject: [Ada] Set Current_Error_Node directly This changes gigi to set Current_Error_Node directly, which should result in a more robust error handling. 2018-09-26 Eric Botcazou gcc/ada/ * gcc-interface/gigi.h (error_gnat_node): Delete. * gcc-interface/trans.c (error_gnat_node): Likewise. (gigi): Replace it with Current_Error_Node. (gnat_to_gnu): Likewise. * gcc-interface/utils.c (rest_of_subprog_body_compilation): Likewise. * gcc-interface/misc.c (internal_error_function): Do not set it. From-SVN: r264607 --- gcc/ada/gcc-interface/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/ada/gcc-interface/utils.c') diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index 313d984..73ab562b 100644 --- a/gcc/ada/gcc-interface/utils.c +++ b/gcc/ada/gcc-interface/utils.c @@ -3389,7 +3389,7 @@ void rest_of_subprog_body_compilation (tree subprog_decl) { /* We cannot track the location of errors past this point. */ - error_gnat_node = Empty; + Current_Error_Node = Empty; /* If we're only annotating types, don't actually compile this function. */ if (type_annotate_only) -- cgit v1.1