On Fri, Jul 31, 2020 at 02:24:08PM +0200, Richard Biener wrote:
> 2020-07-30  Richard Biener  <rguent...@suse.de>
> 
>       PR debug/96383
>       c-family/
>       * c-common.h (c_common_finalize_early_debug): Declare.
>       * c-common.c: Include debug.h.
>       (c_common_finalize_early_debug): finalize_early_debug langhook
>       implementation generating debug for extern declarations.
> 
>       c/
>       * c-objc-common.h (LANG_HOOKS_FINALIZE_EARLY_DEBUG):
>       Define to c_common_finalize_early_debug.
> 
>       cp/
>       * cp-objcp-common.h (LANG_HOOKS_FINALIZE_EARLY_DEBUG):
>       Define to c_common_finalize_early_debug.
> 
>       * langhooks-def.h (lhd_finalize_early_debug): Declare.
>       (LANG_HOOKS_FINALIZE_EARLY_DEBUG): Define.
>       (LANG_HOOKS_INITIALIZER): Amend.
>       * langhooks.c: Include cgraph.h and debug.h.
>       (lhd_finalize_early_debug): Default implementation from
>       former code in finalize_compilation_unit.
>       * langhooks.h (lang_hooks::finalize_early_debug): Add.
> 
>       gcc/
>       * cgraphunit.c (symbol_table::finalize_compilation_unit):
>       Call the finalize_early_debug langhook.
> 
>       * gcc.dg/debug/dwarf2/pr96383-1.c: New testcase.
>       * gcc.dg/debug/dwarf2/pr96383-2.c: Likewise.
> 
>       libstdc++/
>       * testsuite/20_util/assume_aligned/3.cc: Use -g0.

LGTM for trunk right now, for 10.3 perhaps after 2 weeks.  Not sure about
older branches, either not at all, or after much longer settlement period.

        Jakub

Reply via email to