From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DB4033857C74; Wed, 7 Oct 2020 15:05:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB4033857C74 From: "clyon at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/97322] New: [11 regression] ICE in int_mode_for_mode, at stor-layout.c:404 on arm Date: Wed, 07 Oct 2020 15:05:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: clyon at gcc dot gnu.org 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 attachments.created 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: Wed, 07 Oct 2020 15:05:29 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97322 Bug ID: 97322 Summary: [11 regression] ICE in int_mode_for_mode, at stor-layout.c:404 on arm Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: clyon at gcc dot gnu.org Target Milestone: --- Created attachment 49322 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49322&action=3Dedit preprocessed strtof_l.i Since r11-3671 (g:bf510679bb3f9bfd6019666065016bb26a5b5466), I've noticed an ICE while building the toolchains for arm. GCC crashes either while building glibc or newlib. I'm attaching a glibc reproducer: strtof_l.i arm-none-linux-gnueabihf-gcc strtof_l.i -O2=20 during RTL pass: expand In file included from strtof_l.c:45: strtod_l.c: In function '____strtof_l_internal': strtod_l.c:506:1: internal compiler error: in int_mode_for_mode, at stor-layout.c:404 506 | ____STRTOF_INTERNAL (const STRING_TYPE *nptr, STRING_TYPE **endptr,= int group, | ^~~~~~~~~~~~~~~~~~~~~ 0xcf0afb int_mode_for_mode(machine_mode) =20=20=20=20=20=20=20 /home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/stor-layout.c:4= 04 0x92e70e emit_move_via_integer /home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/expr.c:= 3425 0x93e4fc emit_move_insn_1(rtx_def*, rtx_def*) /home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/expr.c:= 3793 0x93e82b emit_move_insn(rtx_def*, rtx_def*) /home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/expr.c:= 3935 0x7dc96f emit_library_call_value_1(int, rtx_def*, rtx_def*, libcall_type, machine_mode, int, std::pair*) =20=20=20=20=20=20=20 /home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/calls.c:5601 0x10d2f34 emit_library_call_value(rtx_def*, rtx_def*, libcall_type, machine_mode, rtx_def*, machine_mode, rtx_def*, machine_mode) /home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/rtl.h:4= 258 0x10d2f34 arm_expand_divmod_libfunc =20=20=20=20=20=20=20 /home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/config/arm/arm.= c:33280 0xa54846 expand_DIVMOD =20=20=20=20=20=20=20 /home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/internal-fn.c:3= 084 0x800fa7 expand_call_stmt =20=20=20=20=20=20=20 /home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/cfgexpand.c:2612 0x800fa7 expand_gimple_stmt_1 =20=20=20=20=20=20=20 /home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/cfgexpand.c:3686 0x800fa7 expand_gimple_stmt =20=20=20=20=20=20=20 /home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/cfgexpand.c:3851 0x80771b expand_gimple_basic_block =20=20=20=20=20=20=20 /home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/cfgexpand.c:5892 0x809e0b execute =20=20=20=20=20=20=20 /home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/cfgexpand.c:657= 6=