[PATCH 2/2] Ada: Remove debug line number for DECL_IGNORED_P functions

Eric Botcazou botcazou@adacore.com
Mon Aug 2 13:07:47 GMT 2021

> It was pointed out in PR101598 to be inappropriate, that
> ignored Ada decls receive the source line number which was
> recorded in the function decl's DECL_SOURCE_LOCATION.
> Therefore set all front-end-generated Ada decls with
> 2021-07-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
> 	PR debug/101598
> 	* gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the
> 	DECL_SOURCE_LOCATION of DECL_IGNORED_P gnu_subprog_decl to

Is that really needed in DWARF 5?  If no, I'm not sure that we want it.

Eric Botcazou

More information about the Gcc-patches mailing list