public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/105459] ICE: Segmentation fault (in record_operand_costs) Date: Tue, 03 May 2022 07:07:03 +0000 [thread overview] Message-ID: <bug-105459-4-UoVIOkiFlX@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-105459-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105459 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Target| |x86_64-*-* i?86-*-* --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Huh. #1 0x000000000100602f in record_operand_costs (insn=0x7ffff652d280, pref=0x0) at /home/rguenther/src/gcc-12-branch/gcc/ira-costs.cc:1382 1382 memcpy (op_costs[i], init_cost, struct_costs_size); (gdb) l 1377 for any allocnos, doing it twice if some pair of operands are 1378 commutative. */ 1379 for (i = 0; i < recog_data.n_operands; i++) 1380 { 1381 rtx op_mem = extract_mem_from_operand (recog_data.operand[i]); 1382 memcpy (op_costs[i], init_cost, struct_costs_size); 1383 gdb) p this_target_ira_int->x_init_cost $7 = (costs *) 0x0 we fail to invoke ira_init_costs for the cgraph node when we switch targets. #0 restore_target_globals (g=0x7ffff6523cf0) at /home/rguenther/src/gcc-12-branch/gcc/target-globals.h:88 #1 0x0000000002987161 in save_target_globals () at /home/rguenther/src/gcc-12-branch/gcc/target-globals.cc:87 #2 0x00000000029871e8 in save_target_globals_default_opts () at /home/rguenther/src/gcc-12-branch/gcc/target-globals.cc:113 #3 0x0000000001910882 in ix86_set_current_function (fndecl= <function_decl 0x7ffff6346600 main>) at /home/rguenther/src/gcc-12-branch/gcc/config/i386/i386-options.cc:3241 #4 0x0000000000df8000 in invoke_set_current_function_hook ( fndecl=<function_decl 0x7ffff6346600 main>) at /home/rguenther/src/gcc-12-branch/gcc/function.cc:4702 #5 0x0000000000df8374 in allocate_struct_function ( fndecl=<function_decl 0x7ffff6346600 main>, abstract_p=false) at /home/rguenther/src/gcc-12-branch/gcc/function.cc:4825 #6 0x0000000000df867b in push_struct_function ( fndecl=<function_decl 0x7ffff6346600 main>) at /home/rguenther/src/gcc-12-branch/gcc/function.cc:4891 #7 0x00000000010905d0 in input_function ( fn_decl=<function_decl 0x7ffff6346600 main>, data_in=0x3f36e50, ib=0x7fffffffd920, ib_cfg=0x7fffffffd900, node=<cgraph_node * 0x7ffff6349000 "main"/5>) at /home/rguenther/src/gcc-12-branch/gcc/lto-streamer-in.cc:1386 not sure when we are supposed to initialize costs here?
next prev parent reply other threads:[~2022-05-03 7:07 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-05-03 5:24 [Bug rtl-optimization/105459] New: " asolokha at gmx dot com 2022-05-03 7:07 ` rguenth at gcc dot gnu.org [this message] 2022-05-03 8:46 ` [Bug rtl-optimization/105459] [12/13 Regression] ICE: Segmentation fault (in record_operand_costs) since r12-3721-g63c6446f77b9001d marxin at gcc dot gnu.org 2022-05-03 8:47 ` marxin at gcc dot gnu.org 2022-05-03 9:00 ` rguenth at gcc dot gnu.org 2022-05-05 5:45 ` linkw at gcc dot gnu.org 2022-05-06 8:33 ` jakub at gcc dot gnu.org 2022-05-17 9:08 ` linkw at gcc dot gnu.org 2022-05-17 9:10 ` linkw at gcc dot gnu.org 2022-05-23 6:28 ` linkw at gcc dot gnu.org 2022-05-23 8:14 ` linkw at gcc dot gnu.org 2022-05-25 7:43 ` linkw at gcc dot gnu.org 2022-06-02 2:15 ` linkw at gcc dot gnu.org 2022-06-02 2:18 ` linkw at gcc dot gnu.org 2022-07-11 9:22 ` cvs-commit at gcc dot gnu.org 2022-07-11 9:22 ` [Bug rtl-optimization/105459] [12 " rguenth at gcc dot gnu.org 2022-07-19 11:37 ` cvs-commit at gcc dot gnu.org 2022-07-19 11:38 ` rguenth 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-105459-4-UoVIOkiFlX@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).