https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123888
--- Comment #18 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
In WPA dumps the calls appears in
_ZN7mozilla3net13nsStandardURL16TemplatedMutatorIS1_E4InitEjiRK12nsTSubstringIcEPKcP6nsIURIPP13nsIURIMutator.constprop.0/6423
(Init.constprop)
Type: function definition analyzed
Visibility:
next sharing asm name: 5963
References:
Referring:
Read from file: ../../../../objdir/netwerk/base/Unified_cpp_netwerk_base4.o
Function Init.constprop/6423 is inline copy in NewStandardURI/1673
Clone of
_ZN7mozilla3net13nsStandardURL16TemplatedMutatorIS1_E4InitEjiRK12nsTSubstringIcEPKcP6nsIURIPP13nsIURIMutator.constprop.0/5963
Availability: local
Unit id: 2
Function flags: first_run:3640 local hot
Called by:
_ZThn24_N7mozilla3net13nsStandardURL16TemplatedMutatorIS1_E4InitEjiRK12nsTSubstringIcEPKcP6nsIURIPP13nsIURIMutator.artificial_thunk.0/6422
(inlined)
Calls: __builtin_unreachable/5924 (indirect_inlining) __builtin_expect/2318
_ZN7mozilla3net13nsStandardURL4InitEjiRK12nsTSubstringIcEPKcP6nsIURI/4740
__builtin_unreachable/5924 (0 (precise),0.00 per call)
indirect polymorphic callsite, vptr not changed, calling param -1,
offset 0otr_token 2, otr_type struct nsStandardURL, context Outer type
(dynamic):struct nsStandardURL (or a derived type) offset 0, flags 0, num
speculative call targets: 0
indirect polymorphic callsite, vptr not changed, calling param -1,
offset 0otr_token 2, otr_type struct nsStandardURL, context Outer type
(dynamic):struct nsStandardURL (or a derived type) offset 0, flags 0, num
speculative call targets: 0
indirect polymorphic callsite, vptr not changed, calling param -1,
offset 0otr_token 1, otr_type struct nsStandardURL, context Outer type
(dynamic):struct nsStandardURL (or a derived type) offset 0, flags 0, num
speculative call targets: 0
If we can confirm that this is the problematic unreachable, I guess it is time
to dive into why polymorphic calls thinks the context is invalid (which may be
related to thunk it sits in - without indirect inlining we hardly see thinks in
the code)