This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Don't emit certain artificial names into DW_AT_name in debug info


On 07/23/2010 05:00 AM, Jakub Jelinek wrote:
> 	* tree.h (struct tree_base): Add nameless_flag bitfield.
> 	(TYPE_NAMELESS, DECL_NAMELESS): Define.
> 	* omp-low.c (create_omp_child_function, scan_omp_parallel,
> 	scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
> 	DECL_ARTIFICIAL where needed.
> 	* dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
> 	(type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
> 	has DECL_NAMELESS set.
> 
> 	* trans-types.c (gfc_get_array_descriptor_base,
> 	gfc_get_array_type_bounds): Set TYPE_NAMELESS.
> 	* trans-decl.c (gfc_build_qualified_array): Set DECL_NAMELESS
> 	instead of clearing DECL_NAME.
> 	(gfc_build_dummy_array_decl): Set DECL_NAMELESS.

Ok.

You might also tidy the documentation for DECL_IGNORED_P so
that it isn't confusing wrt nameless here.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]