On 11/7/22 01:01, Eric Botcazou via Gcc-patches wrote:
I can send the obvious patch to make it work as before and ignore the
NULL which fixes this. I'm not sure if it should really be passing NULL
around in the first place or not which is why I'm sharing the backtrace.
Thanks for the investigation. That's because the DECL_SOURCE_LOCATION of the
function is UNKNOWN_LOCATION since:
2021-08-11 Bernd Edlinger <bernd.edlin...@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.
That's indeed quite irregular but we have to live with it now.
Eric, can you push the approved fix for this issue (look for a message
from Richard P day or two back, approved by Richi)? I'm dealing with a
medical issue and heading offline again momentarily.
jeff