https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97060
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org Status|WAITING |NEW --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- So this is really just something like: -O2 -g -dA: extern int foo (unsigned int, unsigned int); int bar (void) { foo (1, 2); return 0; } where we don't emit DW_AT_declaration neither for the external declaration of foo, nor for the definition of bar. Other compilers don't emit them either. Anyway, older gcc versions used to emit those and this changed with PR96383 r11-2455-gc6ef9d8d3f11221df1ea6358b8d4e79e42f074fb