public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cnsun at uwaterloo dot ca" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/100529] [11/12 Regression] ICE at -O3: in force_constant_size, at gimplify.c:733 since r11-4494-ga4223abb3deb24e8 Date: Sat, 05 Jun 2021 15:02:54 +0000 [thread overview] Message-ID: <bug-100529-4-jXTJ55u1af@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-100529-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100529 --- Comment #3 from Chengnian Sun <cnsun at uwaterloo dot ca> --- Another duplicate. $ gcc-trunk -v Using built-in specs. COLLECT_GCC=gcc-trunk COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/configure --enable-languages=c,c++,lto --enable-checking-yes --enable-multiarch --prefix=/scratch/software/gcc-trunk --disable-bootstrap Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20210605 (experimental) [master revision :438cdd67a:600f90cbbbf2f1e4511d72a23a5d637d11e9f28b] (GCC) $ cat mutant.c foo(char a) { union C { int d[map()]; char *e; }; bar((union C) & a); } $ gcc-trunk mutant.c mutant.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | foo(char a) { | ^~~ mutant.c: In function ‘foo’: mutant.c:3:11: warning: implicit declaration of function ‘map’ [-Wimplicit-function-declaration] 3 | int d[map()]; | ^~~ mutant.c:6:3: warning: implicit declaration of function ‘bar’ [-Wimplicit-function-declaration] 6 | bar((union C) & a); | ^~~ mutant.c:6:3: internal compiler error: in force_constant_size, at gimplify.c:736 6 | bar((union C) & a); | ^~~~~~~~~~~~~~~~~~ 0x6d844a force_constant_size /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:736 0xc2c537 gimple_add_tmp_var(tree_node*) /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:774 0xbf557b create_tmp_var(tree_node*, char const*) /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimple-expr.c:485 0xc36200 create_tmp_from_val /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:567 0xc36200 lookup_tmp_var /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:585 0xc36200 internal_get_tmp_var /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:638 0xc2fd57 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:15065 0xc31676 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:14526 0xc3e1f4 gimplify_expr /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:15111 0xc40105 gimplify_call_expr /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:3527 0xc30f13 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:14048 0xc3410a gimplify_stmt(tree_node**, gimple**) /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:6863 0xc3170b gimplify_statement_list /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:1885 0xc3170b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:14521 0xc3410a gimplify_stmt(tree_node**, gimple**) /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:6863 0xc3493e gimplify_bind_expr /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:1424 0xc30b73 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:14277 0xc3410a gimplify_stmt(tree_node**, gimple**) /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:6863 0xc35703 gimplify_body(tree_node*, bool) /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:15321 0xc35b51 gimplify_function_tree(tree_node*) /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/gcc/gimplify.c:15475 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.
next prev parent reply other threads:[~2021-06-05 15:02 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-11 15:46 [Bug c/100529] New: ICE at -O3: in force_constant_size, at gimplify.c:733 cnsun at uwaterloo dot ca 2021-05-11 15:51 ` [Bug c/100529] " cnsun at uwaterloo dot ca 2021-05-12 9:26 ` [Bug ipa/100529] [11/12 Regression] ICE at -O3: in force_constant_size, at gimplify.c:733 since r11-4494-ga4223abb3deb24e8 marxin at gcc dot gnu.org 2021-05-17 15:12 ` rguenth at gcc dot gnu.org 2021-06-05 15:02 ` cnsun at uwaterloo dot ca [this message] 2021-07-28 7:07 ` rguenth at gcc dot gnu.org 2022-01-17 14:55 ` [Bug c/100529] " rguenth at gcc dot gnu.org 2022-04-21 7:49 ` rguenth at gcc dot gnu.org 2023-05-29 10:04 ` [Bug c/100529] [11/12/13/14 " jakub 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-100529-4-jXTJ55u1af@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).