https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125121

--- Comment #5 from Erhard F. <erhard_f at mailbox dot org> ---
Created attachment 64836
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64836&action=edit
preprocessed source (Gentoo 16.1.1_p20260620 p3 + patch)

Thanks for working on this!

The patch applies cleanly on Gentoo 16.1.1_p20260620 p3. But it does not fix my
original issue, bulding portage-utils with -fno-ipa-cp (downstream bug
https://bugs.gentoo.org/973410). Trace looks a bit different now:

// Thread model: posix
// Supported LTO compression algorithms: zlib zstd
// gcc version 16.1.1 20260620 (Gentoo 16.1.1_p20260620 p3) 
// 
// during IPA pass: sra
// hash.c:376:1: internal compiler error: Segmentation fault
//   376 | }
//       | ^
// 0x555556f43ffa diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
//      ???:0
// 0x55555698ef7e internal_error(char const*, ...)
//      ???:0
// 0x555555df2e3d callback_get_arg_mapping(cgraph_edge*, cgraph_edge*)
//      ???:0
// 0x555556a8d353 symbol_table::call_edge_duplication_hooks(cgraph_edge*,
cgraph_edge*)
//      ???:0
// 0x555556a90dcc cgraph_edge::clone(cgraph_node*, gcall*, unsigned int,
profile_count, profile_count, bool)
//      ???:0
// 0x555556a90380 cgraph_node::create_clone(tree_node*, profile_count, bool,
vec<cgraph_edge*, va_heap, vl_ptr>, bool, cgraph_node*, ipa_param_adjustments*,
char const*)
//      ???:0
// 0x555556fb8842 cgraph_node::create_virtual_clone(vec<cgraph_edge*, va_heap,
vl_ptr> const&, vec<ipa_replace_map*, va_gc, vl_embed>*,
ipa_param_adjustments*, char const*, unsigned int)
//      ???:0
// -quiet -I . -I .. -I ../autotools/gnulib -I ../autotools/gnulib -D_REENTRANT
-D HAVE_CONFIG_H hash.c -quiet -dumpbase libq_a-hash.c -dumpbase-ext .c
-mtune=generic -march=x86-64 -mtls-dialect=gnu2 -O2 -Wall -Wunused -Wimplicit
-Wshadow -Wformat=2 -Wmissing-declarations -Wwrite-strings -Wbad-function-cast
-Wnested-externs -Wcomment -Winline -Wchar-subscripts -Wcast-align
-Wsequence-point -Wold-style-definition -Wextra -Wno-format-nonliteral
-Wno-expansion-to-defined -fno-ipa-cp -fopenmp -freport-bug
-foffload-options=-fno-stack-protector -fcf-protection
-foffload-options=-fcf-protection=none -o - -frandom-seed=0 -fdump-noaddr

Reply via email to