From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 242333850432; Sun, 18 Jul 2021 14:34:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 242333850432 From: "mikpelinux at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/82420] ICE with -malign-int and -m68000 Date: Sun, 18 Jul 2021 14:34:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mikpelinux at gmail dot com 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: 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: Sun, 18 Jul 2021 14:34:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D82420 --- Comment #3 from Mikael Pettersson --- Still ICEs in gcc-12: > gcc/xgcc -Bgcc -march=3D68000 -malign-int -S /tmp/pr82420.c during RTL pass: expand /tmp/pr82420.c: In function 'f': /tmp/pr82420.c:3:4: internal compiler error: Segmentation fault 3 | a /=3D 3; | ^~ 0x95fe3f crash_signal /tmp/gcc-12-20210711/gcc/toplev.c:328 0x6c30a2 assign_temp(tree_node*, int, int) /tmp/gcc-12-20210711/gcc/function.c:976 0x67e321 emit_push_insn(rtx_def*, machine_mode, tree_node*, rtx_def*, unsig= ned int, int, rtx_def*, poly_int<1u, long>, rtx_def*, rtx_def*, int, rtx_def*, bool) /tmp/gcc-12-20210711/gcc/expr.c:4621 0x559c98 emit_library_call_value_1(int, rtx_def*, rtx_def*, libcall_type, machine_mode, int, std::pair*) /tmp/gcc-12-20210711/gcc/calls.c:5595 0x86de22 emit_library_call_value(rtx_def*, rtx_def*, libcall_type, machine_mode, rtx_def*, machine_mode, rtx_def*, machine_mode) /tmp/gcc-12-20210711/gcc/rtl.h:4390 0x86de22 expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def*, int, optab_methods) /tmp/gcc-12-20210711/gcc/optabs.c:2172 0x86f9e6 sign_expand_binop(machine_mode, optab_tag, optab_tag, rtx_def*, rtx_def*, rtx_def*, int, optab_methods) /tmp/gcc-12-20210711/gcc/optabs.c:2304 0x665e44 expand_divmod(int, tree_code, machine_mode, rtx_def*, rtx_def*, rtx_def*, int, optab_methods) /tmp/gcc-12-20210711/gcc/expmed.c:5271 0x66fdad expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /tmp/gcc-12-20210711/gcc/expr.c:9473 0x57296a expand_gimple_stmt_1 /tmp/gcc-12-20210711/gcc/cfgexpand.c:3980 0x57296a expand_gimple_stmt /tmp/gcc-12-20210711/gcc/cfgexpand.c:4041 0x577392 expand_gimple_basic_block /tmp/gcc-12-20210711/gcc/cfgexpand.c:6083 0x579196 execute /tmp/gcc-12-20210711/gcc/cfgexpand.c:6809 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. The SEGV occurs because emit_library_call_value_1 () [calls.c line 5595] ca= lls emit_push_insn () with NULL_TREE for TYPE, emit_push_insn () in this test c= ase needs to call assign_temp () [expr.c line 4621] with the given TYPE, but assign_temp () fundamentally requires a non-NULL_TREE TYPE.=