From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0E8963848030; Tue, 16 Feb 2021 17:38:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0E8963848030 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/99122] New: [10/11 Regression] ICE in force_constant_size, at gimplify.c:733 Date: Tue, 16 Feb 2021 17:38:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Tue, 16 Feb 2021 17:38:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99122 Bug ID: 99122 Summary: [10/11 Regression] ICE in force_constant_size, at gimplify.c:733 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Changed between 20191103 and 20191110 at -O2+ : $ cat z1.c void f () { int n =3D 5; struct { char a[n]; } x; g (x, x); } int g (double x, double y) { return __builtin_isgreater (x, y); } $ gcc-11-20210214 -c z1.c -O2 z1.c: In function 'f': z1.c:5:3: warning: implicit declaration of function 'g' [-Wimplicit-function-declaration] 5 | g (x, x); | ^ during GIMPLE pass: einline z1.c:5:3: internal compiler error: in force_constant_size, at gimplify.c:733 5 | g (x, x); | ^~~~~~~~ 0xa2e116 force_constant_size ../../gcc/gimplify.c:733 0xa361a7 gimple_add_tmp_var(tree_node*) ../../gcc/gimplify.c:771 0x9fbeea create_tmp_var(tree_node*, char const*) ../../gcc/gimple-expr.c:485 0xa4310f create_tmp_from_val ../../gcc/gimplify.c:564 0xa4310f lookup_tmp_var ../../gcc/gimplify.c:596 0xa4310f internal_get_tmp_var ../../gcc/gimplify.c:635 0xa3d7cb gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.c:15058 0xa4404c gimplify_compound_lval ../../gcc/gimplify.c:3074 0xa3b115 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.c:14022 0xa6a999 gimple_regimplify_operands(gimple*, gimple_stmt_iterator*) ../../gcc/gimplify-me.c:235 0xdcf752 insert_init_stmt ../../gcc/tree-inline.c:3397 0xddbbe9 setup_one_parameter ../../gcc/tree-inline.c:3568 0xde1e05 initialize_inlined_parameters ../../gcc/tree-inline.c:3595 0xde1e05 expand_call_inline ../../gcc/tree-inline.c:4956 0xde4d19 gimple_expand_calls_inline ../../gcc/tree-inline.c:5288 0xde4d19 optimize_inline_calls(tree_node*) ../../gcc/tree-inline.c:5461 0x185e393 early_inliner(function*) ../../gcc/ipa-inline.c:3007=