On Mon, Oct 24, 2022 at 10:26 AM Eric Botcazou via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> Hi,
>
> this assertion in branch_prob:
>
>   if (bb == ENTRY_BLOCK_PTR_FOR_FN (cfun)->next_bb)
>     {
>       location_t loc = DECL_SOURCE_LOCATION (current_function_decl);
>       gcc_checking_assert (!RESERVED_LOCATION_P (loc));
>
> had been correct until:
>
> 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.
>
> was installed.
>
> Tested on x86-64/Linux, OK for mainline and 12 branch?

OK.

>
> 2022-10-24  Eric Botcazou  <ebotca...@adacore.com>
>
>         * profile.cc (branch_prob): Be prepared for ignored functions with
>         DECL_SOURCE_LOCATION set to UNKNOWN_LOCATION.
>
>
> 2022-10-24  Eric Botcazou  <ebotca...@adacore.com>
>
>         * gnat.dg/specs/coverage1.ads: New test.
>
> --
> Eric Botcazou

Reply via email to