https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101598
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Eric Botcazou <ebotca...@gcc.gnu.org>: https://gcc.gnu.org/g:cb21297f9259ceedd5f5dd7c3973535f14124d6d commit r13-3485-gcb21297f9259ceedd5f5dd7c3973535f14124d6d Author: Eric Botcazou <ebotca...@adacore.com> Date: Tue Oct 25 12:20:33 2022 +0200 Relax assertion in profiler 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 the fix for PR debug/101598 was installed. gcc/ * profile.cc (branch_prob): Be prepared for ignored functions with DECL_SOURCE_LOCATION set to UNKNOWN_LOCATION. gcc/testsuite: * gnat.dg/specs/coverage1.ads: New test. * gnat.dg/specs/variant_part.ads: Minor tweak. * gnat.dg/specs/weak1.ads: Add dg directive.