public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/98743] New: ICE in convert_move, at expr.c:220
@ 2021-01-19 10:29 marxin at gcc dot gnu.org
  2021-01-19 10:31 ` [Bug target/98743] " marxin at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-01-19 10:29 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98743
           Summary: ICE in convert_move, at expr.c:220
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-linux
            Target: riscv64-linux-gnu

I see the following with a cross compiler:

$ riscv64-linux-gnu-g++
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/cpp0x/initlist-value.C -Og
-fno-early-inlining -finline-small-functions -fpack-struct -c
during RTL pass: expand
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/cpp0x/initlist-value.C: In
function ‘int main()’:
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/cpp0x/initlist-value.C:24:26:
internal compiler error: in convert_move, at expr.c:220
   24 |   A* ap = new (&space) A{};
      |                          ^
0x5f6b1a convert_move(rtx_def*, rtx_def*, int)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-riscv64/build/gcc/expr.c:220
0x9a1787 store_expr(tree_node*, rtx_def*, int, bool, bool)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-riscv64/build/gcc/expr.c:5796
0x9a308c expand_assignment(tree_node*, tree_node*, bool)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-riscv64/build/gcc/expr.c:5465
0x89d96d expand_gimple_stmt_1
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-riscv64/build/gcc/cfgexpand.c:3909
0x89d96d expand_gimple_stmt
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-riscv64/build/gcc/cfgexpand.c:4007
0x8a1407 expand_gimple_basic_block
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-riscv64/build/gcc/cfgexpand.c:6044
0x8a3696 execute
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-riscv64/build/gcc/cfgexpand.c:6728
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

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

* [Bug target/98743] ICE in convert_move, at expr.c:220
  2021-01-19 10:29 [Bug target/98743] New: ICE in convert_move, at expr.c:220 marxin at gcc dot gnu.org
@ 2021-01-19 10:31 ` marxin at gcc dot gnu.org
  2021-01-21  5:14 ` kito at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-01-19 10:31 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-01-19
             Status|UNCONFIRMED                 |NEW
                 CC|                            |andrew at sifive dot com,
                   |                            |kito at gcc dot gnu.org,
                   |                            |palmer at dabbelt dot com,
                   |                            |wilson at gcc dot gnu.org

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

* [Bug target/98743] ICE in convert_move, at expr.c:220
  2021-01-19 10:29 [Bug target/98743] New: ICE in convert_move, at expr.c:220 marxin at gcc dot gnu.org
  2021-01-19 10:31 ` [Bug target/98743] " marxin at gcc dot gnu.org
@ 2021-01-21  5:14 ` kito at gcc dot gnu.org
  2021-01-21  6:32 ` kito at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kito at gcc dot gnu.org @ 2021-01-21  5:14 UTC (permalink / raw)
  To: gcc-bugs

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

Kito Cheng <kito at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |kito at gcc dot gnu.org

--- Comment #1 from Kito Cheng <kito at gcc dot gnu.org> ---
Confirmed.

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

* [Bug target/98743] ICE in convert_move, at expr.c:220
  2021-01-19 10:29 [Bug target/98743] New: ICE in convert_move, at expr.c:220 marxin at gcc dot gnu.org
  2021-01-19 10:31 ` [Bug target/98743] " marxin at gcc dot gnu.org
  2021-01-21  5:14 ` kito at gcc dot gnu.org
@ 2021-01-21  6:32 ` kito at gcc dot gnu.org
  2021-01-22  7:57 ` kito at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kito at gcc dot gnu.org @ 2021-01-21  6:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Kito Cheng <kito at gcc dot gnu.org> ---
ICE after g:6fbec038f7a7ddf29f074943611b53210d17c40c, hmmm...interesting...

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

* [Bug target/98743] ICE in convert_move, at expr.c:220
  2021-01-19 10:29 [Bug target/98743] New: ICE in convert_move, at expr.c:220 marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-01-21  6:32 ` kito at gcc dot gnu.org
@ 2021-01-22  7:57 ` kito at gcc dot gnu.org
  2021-02-02  8:56 ` cvs-commit at gcc dot gnu.org
  2021-02-02  8:57 ` kito at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: kito at gcc dot gnu.org @ 2021-01-22  7:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Kito Cheng <kito at gcc dot gnu.org> ---
Seems like g:3e60ddeb8220ed388819bb3f14e8caa9309fd3c2 is the real root cause

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

* [Bug target/98743] ICE in convert_move, at expr.c:220
  2021-01-19 10:29 [Bug target/98743] New: ICE in convert_move, at expr.c:220 marxin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-01-22  7:57 ` kito at gcc dot gnu.org
@ 2021-02-02  8:56 ` cvs-commit at gcc dot gnu.org
  2021-02-02  8:57 ` kito at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-02  8:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kito Cheng <kito@gcc.gnu.org>:

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

commit r11-7032-gbc7c2b34c34f21ea58198ba58a48eb065bdda25d
Author: Kito Cheng <kito.cheng@sifive.com>
Date:   Fri Jan 22 16:29:09 2021 +0800

    PR target/98743: Fix ICE in convert_move for RISC-V

     - Check `from` mode is not BLMmode before call store_expr, calling
store_expr
       with BLKmode will cause ICE.

     - Verified with riscv64, x86_64 and aarch64, no introduce new regression.

    Note: Those logic was introduced by
3e60ddeb8220ed388819bb3f14e8caa9309fd3c2,
          so I cc Jakub for reivew.

    Changes for V2:

     - Checking mode of `from` rather than mode of `to`.
     - Verified on riscv64, x86_64 and aarch64 again.

    gcc/ChangeLog:

            PR target/98743
            * expr.c: Check mode before calling store_expr.

    gcc/testsuite/ChangeLog:

            PR target/98743
            * g++.dg/opt/pr98743.C: New.

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

* [Bug target/98743] ICE in convert_move, at expr.c:220
  2021-01-19 10:29 [Bug target/98743] New: ICE in convert_move, at expr.c:220 marxin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2021-02-02  8:56 ` cvs-commit at gcc dot gnu.org
@ 2021-02-02  8:57 ` kito at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: kito at gcc dot gnu.org @ 2021-02-02  8:57 UTC (permalink / raw)
  To: gcc-bugs

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

Kito Cheng <kito at gcc dot gnu.org> changed:

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

--- Comment #5 from Kito Cheng <kito at gcc dot gnu.org> ---
Fixed on trunk.

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

end of thread, other threads:[~2021-02-02  8:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-19 10:29 [Bug target/98743] New: ICE in convert_move, at expr.c:220 marxin at gcc dot gnu.org
2021-01-19 10:31 ` [Bug target/98743] " marxin at gcc dot gnu.org
2021-01-21  5:14 ` kito at gcc dot gnu.org
2021-01-21  6:32 ` kito at gcc dot gnu.org
2021-01-22  7:57 ` kito at gcc dot gnu.org
2021-02-02  8:56 ` cvs-commit at gcc dot gnu.org
2021-02-02  8:57 ` kito 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).