public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/97322] New: [11 regression] ICE in int_mode_for_mode, at stor-layout.c:404 on arm
@ 2020-10-07 15:05 clyon at gcc dot gnu.org
  2020-10-07 15:05 ` [Bug rtl-optimization/97322] " clyon at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: clyon at gcc dot gnu.org @ 2020-10-07 15:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97322

            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=49322&action=edit
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 
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)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/stor-layout.c:404
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<rtx_def*, machine_mode>*)
       
/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:4258
0x10d2f34 arm_expand_divmod_libfunc
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/config/arm/arm.c:33280
0xa54846 expand_DIVMOD
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/internal-fn.c:3084
0x800fa7 expand_call_stmt
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/cfgexpand.c:2612
0x800fa7 expand_gimple_stmt_1
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/cfgexpand.c:3686
0x800fa7 expand_gimple_stmt
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/cfgexpand.c:3851
0x80771b expand_gimple_basic_block
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/cfgexpand.c:5892
0x809e0b execute
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf-git/trunk/gcc/cfgexpand.c:6576

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug rtl-optimization/97322] [11 regression] ICE in int_mode_for_mode, at stor-layout.c:404 on arm
  2020-10-07 15:05 [Bug rtl-optimization/97322] New: [11 regression] ICE in int_mode_for_mode, at stor-layout.c:404 on arm clyon at gcc dot gnu.org
@ 2020-10-07 15:05 ` clyon at gcc dot gnu.org
  2020-10-07 18:25 ` [Bug target/97322] " jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: clyon at gcc dot gnu.org @ 2020-10-07 15:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97322

Christophe Lyon <clyon at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |11.0
             Target|                            |arm

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/97322] [11 regression] ICE in int_mode_for_mode, at stor-layout.c:404 on arm
  2020-10-07 15:05 [Bug rtl-optimization/97322] New: [11 regression] ICE in int_mode_for_mode, at stor-layout.c:404 on arm clyon at gcc dot gnu.org
  2020-10-07 15:05 ` [Bug rtl-optimization/97322] " clyon at gcc dot gnu.org
@ 2020-10-07 18:25 ` jakub at gcc dot gnu.org
  2020-10-07 21:37 ` clyon at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-10-07 18:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97322

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-10-07
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 49326
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49326&action=edit
gcc11-pr97322.patch

Untested fix.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/97322] [11 regression] ICE in int_mode_for_mode, at stor-layout.c:404 on arm
  2020-10-07 15:05 [Bug rtl-optimization/97322] New: [11 regression] ICE in int_mode_for_mode, at stor-layout.c:404 on arm clyon at gcc dot gnu.org
  2020-10-07 15:05 ` [Bug rtl-optimization/97322] " clyon at gcc dot gnu.org
  2020-10-07 18:25 ` [Bug target/97322] " jakub at gcc dot gnu.org
@ 2020-10-07 21:37 ` clyon at gcc dot gnu.org
  2020-10-08  9:56 ` cvs-commit at gcc dot gnu.org
  2020-10-08  9:57 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: clyon at gcc dot gnu.org @ 2020-10-07 21:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97322

--- Comment #2 from Christophe Lyon <clyon at gcc dot gnu.org> ---
Thanks, this patch does fix both builds for me.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/97322] [11 regression] ICE in int_mode_for_mode, at stor-layout.c:404 on arm
  2020-10-07 15:05 [Bug rtl-optimization/97322] New: [11 regression] ICE in int_mode_for_mode, at stor-layout.c:404 on arm clyon at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-10-07 21:37 ` clyon at gcc dot gnu.org
@ 2020-10-08  9:56 ` cvs-commit at gcc dot gnu.org
  2020-10-08  9:57 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-08  9:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97322

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:f18eeb6b958acd5e1590ca4a73231486b749be9b

commit r11-3720-gf18eeb6b958acd5e1590ca4a73231486b749be9b
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Thu Oct 8 11:56:15 2020 +0200

    arm: Fix ICE on glibc compilation after my DIVMOD optimization [PR97322]

    The arm target hook for divmod wasn't prepared to handle constants passed
to
    the function.

    2020-10-08  Jakub Jelinek  <jakub@redhat.com>

            PR target/97322
            * config/arm/arm.c (arm_expand_divmod_libfunc): Pass mode instead
of
            GET_MODE (op0) or GET_MODE (op1) to emit_library_call_value.

            * gcc.dg/pr97322.c: New test.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/97322] [11 regression] ICE in int_mode_for_mode, at stor-layout.c:404 on arm
  2020-10-07 15:05 [Bug rtl-optimization/97322] New: [11 regression] ICE in int_mode_for_mode, at stor-layout.c:404 on arm clyon at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2020-10-08  9:56 ` cvs-commit at gcc dot gnu.org
@ 2020-10-08  9:57 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-10-08  9:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97322

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-08  9:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-07 15:05 [Bug rtl-optimization/97322] New: [11 regression] ICE in int_mode_for_mode, at stor-layout.c:404 on arm clyon at gcc dot gnu.org
2020-10-07 15:05 ` [Bug rtl-optimization/97322] " clyon at gcc dot gnu.org
2020-10-07 18:25 ` [Bug target/97322] " jakub at gcc dot gnu.org
2020-10-07 21:37 ` clyon at gcc dot gnu.org
2020-10-08  9:56 ` cvs-commit at gcc dot gnu.org
2020-10-08  9:57 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).