From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CBA9E3857C67; Sat, 5 Jun 2021 15:02:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CBA9E3857C67 From: "cnsun at uwaterloo dot ca" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cnsun at uwaterloo dot ca X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2021 15:02:54 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100529 --- Comment #3 from Chengnian Sun --- Another duplicate. $ gcc-trunk -v Using built-in specs. COLLECT_GCC=3Dgcc-trunk COLLECT_LTO_WRAPPER=3D/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-lin= ux-gnu/12.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /tmp/tmp.YBPd3t5p5G-gcc-builder/gcc/configure --enable-languages=3Dc,c++,lto --enable-checking-yes --enable-multiarch --prefix=3D/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 =E2=80=98int=E2=80=99 [-Wimp= licit-int] 1 | foo(char a) { | ^~~ mutant.c: In function =E2=80=98foo=E2=80=99: mutant.c:3:11: warning: implicit declaration of function =E2=80=98map=E2=80= =99 [-Wimplicit-function-declaration] 3 | int d[map()]; | ^~~ mutant.c:6:3: warning: implicit declaration of function =E2=80=98bar=E2=80= =99 [-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 for instructions.=