From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C4297388C029; Tue, 11 May 2021 16:20:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C4297388C029 From: "cnsun at uwaterloo dot ca" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/100536] New: ICE: in expand_call, at calls.c:4980 Date: Tue, 11 May 2021 16:20:28 +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: tree-ssa X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cnsun at uwaterloo dot ca 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, 11 May 2021 16:20:28 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100536 Bug ID: 100536 Summary: ICE: in expand_call, at calls.c:4980 Product: gcc Version: tree-ssa Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: cnsun at uwaterloo dot ca Target Milestone: --- $ 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.FUbEknNORK-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 20210511 (experimental) [master revision :7db32cac8:aa891c56f25baac94db004e309d1b6e40b770a95] (GCC) $ cat mutant.c struct { union { union { union { union { union { union { double b[4]; } a[18]; } a[18]; } a[18]; } a[18]; } a[18]; } a[18]; } s; baz() { bar(s); } $ gcc-trunk mutant.c mutant.c:16:1: warning: return type defaults to =E2=80=98int=E2=80=99 [-Wim= plicit-int] 16 | baz() { bar(s); } | ^~~ mutant.c: In function =E2=80=98baz=E2=80=99: mutant.c:16:9: warning: implicit declaration of function =E2=80=98bar=E2=80= =99; did you mean =E2=80=98baz=E2=80=99? [-Wimplicit-function-declaration] 16 | baz() { bar(s); } | ^~~ | baz mutant.c:16:9: sorry, unimplemented: passing too large argument on stack 16 | baz() { bar(s); } | ^~~~~~ during RTL pass: expand mutant.c:16:9: internal compiler error: in expand_call, at calls.c:4980 0x686a4e expand_call(tree_node*, rtx_def*, int) /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/calls.c:4980 0xb5fe9e expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/expr.c:11461 0xa3cfc9 expand_expr /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/expr.h:301 0xa3cfc9 expand_call_stmt /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/cfgexpand.c:2843 0xa3cfc9 expand_gimple_stmt_1 /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/cfgexpand.c:3847 0xa3cfc9 expand_gimple_stmt /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/cfgexpand.c:4011 0xa428c9 expand_gimple_basic_block /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/cfgexpand.c:6048 0xa4451f execute /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/cfgexpand.c:6732 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=