From: Eric Botcazou Date: Sat, 6 Jun 2015 07:44:03 +0000 (+0000) Subject: utils.c (note_types_used_by_globals): Tweak comment. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f50b3db8ab24d90f29143c80fc6b54efa9cba83;p=gcc.git utils.c (note_types_used_by_globals): Tweak comment. * gcc-interface/utils.c (note_types_used_by_globals): Tweak comment. * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise. From-SVN: r224184 --- diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c index 42e2cfb55be..3c243a24883 100644 --- a/gcc/ada/gcc-interface/decl.c +++ b/gcc/ada/gcc-interface/decl.c @@ -5185,7 +5185,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition) && !Present (Alias (gnat_entity)) && !(Present (Renamed_Object (gnat_entity)) && saved)) { - /* ?? DECL_ARTIFICIAL, and possibly DECL_IGNORED_P below, should + /* ??? DECL_ARTIFICIAL, and possibly DECL_IGNORED_P below, should be set before calling rest_of_decl_compilation above (through create_var_decl_1). This is because rest_of_decl_compilation calls the debugging backend and will create a DIE without diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index 307a8410484..e24a295318a 100644 --- a/gcc/ada/gcc-interface/utils.c +++ b/gcc/ada/gcc-interface/utils.c @@ -5182,13 +5182,11 @@ smaller_form_type_p (tree type, tree orig_type) return tree_int_cst_lt (size, osize) != 0; } -/* Perform final processing on global variables. */ - -static GTY (()) tree dummy_global; - /* Keep track of types used at the global level and emit debug info for all global types. */ +static GTY (()) tree dummy_global; + void note_types_used_by_globals (void) { @@ -5219,10 +5217,10 @@ note_types_used_by_globals (void) } } - /* Output debug information for all global type declarations first. This - ensures that global types whose compilation haven't been finalized yet, - for example pointers to Taft amendment types, have their compilation - finalized in the right context. */ + /* Output debug information for all global type declarations. This ensures + that global types whose compilation cannot been finalized earlier, e.g. + pointers to Taft amendment types, have their compilation finalized in + the right context. */ FOR_EACH_VEC_SAFE_ELT (type_decls, i, iter) if (!DECL_IGNORED_P (iter)) debug_hooks->type_decl (iter, false);