public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113491] ICE: SIGSEGV in make_ssa_name_fn (tree-ssanames.cc:354) at -Os with _BitInt() used as switch control expression Date: Fri, 19 Jan 2024 15:47:55 +0000 [thread overview] Message-ID: <bug-113491-4-AGOiceTvMF@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-113491-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113491 --- Comment #1 from Zdenek Sojka <zsojka at seznam dot cz> --- Created attachment 57162 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57162&action=edit shorter testcase (reduced from gcc.dg/torture/pr45830.c) $ x86_64-pc-linux-gnu-gcc -Os pr45830.i -wrapper valgrind,-q ==7594== Invalid read of size 2 ==7594== at 0x177D97A: make_ssa_name_fn(function*, tree_node*, gimple*, unsigned int) (tree-ssanames.cc:354) ==7594== by 0x1610F62: make_ssa_name (tree-ssanames.h:98) ==7594== by 0x1610F62: tree_switch_conversion::switch_conversion::build_arrays() (tree-switch-conversion.cc:727) ==7594== by 0x1611346: tree_switch_conversion::switch_conversion::expand(gswitch*) [clone .part.0] (tree-switch-conversion.cc:1067) ==7594== by 0x161140A: expand (tree-switch-conversion.cc:2546) ==7594== by 0x161140A: (anonymous namespace)::pass_convert_switch::execute(function*) (tree-switch-conversion.cc:2564) ==7594== by 0x13CC0EA: execute_one_pass(opt_pass*) (passes.cc:2646) ==7594== by 0x13CC9DF: execute_pass_list_1(opt_pass*) (passes.cc:2755) ==7594== by 0x13CC9F1: execute_pass_list_1(opt_pass*) (passes.cc:2756) ==7594== by 0x13CCA18: execute_pass_list(function*, opt_pass*) (passes.cc:2766) ==7594== by 0x13CD33C: do_per_function_toporder(void (*)(function*, void*), void*) [clone .part.0] (passes.cc:1773) ==7594== by 0x13CD56E: do_per_function_toporder (passes.cc:1740) ==7594== by 0x13CD56E: execute_ipa_pass_list(opt_pass*) (passes.cc:3100) ==7594== by 0xFCDDE7: ipa_passes (cgraphunit.cc:2211) ==7594== by 0xFCDDE7: symbol_table::compile() [clone .part.0] (cgraphunit.cc:2332) ==7594== by 0xFD0667: compile (cgraphunit.cc:2312) ==7594== by 0xFD0667: symbol_table::finalize_compilation_unit() (cgraphunit.cc:2584) ==7594== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==7594== during GIMPLE pass: switchconv pr45830.i: In function 'foo': pr45830.i:19:1: internal compiler error: Segmentation fault 19 | } | ^ 0x150de9f crash_signal /repo/gcc-trunk/gcc/toplev.cc:317 0x177d97a make_ssa_name_fn(function*, tree_node*, gimple*, unsigned int) /repo/gcc-trunk/gcc/tree-ssanames.cc:354 0x1610f62 make_ssa_name(tree_node*, gimple*) /repo/gcc-trunk/gcc/tree-ssanames.h:98 0x1610f62 tree_switch_conversion::switch_conversion::build_arrays() /repo/gcc-trunk/gcc/tree-switch-conversion.cc:727 0x1611346 tree_switch_conversion::switch_conversion::expand(gswitch*) /repo/gcc-trunk/gcc/tree-switch-conversion.cc:1067 0x161140a tree_switch_conversion::switch_conversion::expand(gswitch*) /repo/gcc-trunk/gcc/tree-switch-conversion.cc:2546 0x161140a execute /repo/gcc-trunk/gcc/tree-switch-conversion.cc:2564 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.
next prev parent reply other threads:[~2024-01-19 15:47 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-01-18 19:48 [Bug tree-optimization/113491] New: " zsojka at seznam dot cz 2024-01-19 15:47 ` zsojka at seznam dot cz [this message] 2024-01-19 17:29 ` [Bug tree-optimization/113491] " jakub at gcc dot gnu.org 2024-01-20 11:37 ` cvs-commit at gcc dot gnu.org 2024-01-20 11:38 ` jakub at gcc dot gnu.org 2024-01-20 17:11 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-113491-4-AGOiceTvMF@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).