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

Zdenek Sojka <zsojka at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zsojka at seznam dot cz

--- Comment #1 from Zdenek Sojka <zsojka at seznam dot cz> ---
Simpler testcase, likely related (r278484):

$ cat testcase-min2.i
__attribute__((flatten)) void a() { a(); }

$ x86_64-pc-linux-gnu-gcc -O -fPIC testcase-min2.i -wrapper valgrind,-q
==16177== Invalid write of size 4
==16177==    at 0x65BAAD: ipa_update_overall_fn_summary(cgraph_node*) [clone
.cold] (ipa-fnsummary.c:3755)
==16177==    by 0x19317E3: ipa_inline (ipa-inline.c:2612)
==16177==    by 0x19317E3: (anonymous
namespace)::pass_ipa_inline::execute(function*) (ipa-inline.c:3025)
==16177==    by 0xEA35B7: execute_one_pass(opt_pass*) (passes.c:2500)
==16177==    by 0xEA4ED6: execute_ipa_pass_list(opt_pass*) (passes.c:2927)
==16177==    by 0xB20600: ipa_passes (cgraphunit.c:2541)
==16177==    by 0xB20600: symbol_table::compile() [clone .part.0]
(cgraphunit.c:2618)
==16177==    by 0xB2257C: compile (cgraphunit.c:2598)
==16177==    by 0xB2257C: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2865)
==16177==    by 0xF9771E: compile_file() (toplev.c:483)
==16177==    by 0x98B331: do_compile (toplev.c:2275)
==16177==    by 0x98B331: toplev::main(int, char**) (toplev.c:2414)
==16177==    by 0x98EEAE: main (main.c:39)
==16177==  Address 0xc is not stack'd, malloc'd or (recently) free'd
==16177== 
during IPA pass: inline
testcase-min2.i:1:1: internal compiler error: Segmentation fault
    1 | __attribute__((flatten)) void a() { a(); }
      | ^~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to