https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97060
--- Comment #4 from Jiri Olsa <jolsa at redhat dot com> --- (In reply to Jakub Jelinek from comment #3) > 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 is there a way we can tell which record is for declaration/definition?