Ada: Remove debug line number for DECL_IGNORED_P functions
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 24 Jul 2021 10:53:39 +0000 (12:53 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 11 Aug 2021 05:29:27 +0000 (07:29 +0200)
commita45918f8a7444a40eb397a037683ba5900a2db74
tree63e0dc06354de56f4a97cb19df82798a09294bde
parentfed7c1634e8e50600e20cb97dbfbd74ecbd5ba22
Ada: Remove debug line number for DECL_IGNORED_P functions

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
DECL_IGNORED_P to UNKNOWN_LOCATION.

2021-08-11  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
UNKNOWN_LOCATION.
gcc/ada/gcc-interface/trans.c