public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/97269] New: [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617
@ 2020-10-02  7:33 marxin at gcc dot gnu.org
  2020-10-02  7:33 ` [Bug target/97269] " marxin at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-02  7:33 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97269
           Summary: [11 Regression] ICE in change_address_1, at
                    emit-rtl.c:2275 since
                    r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617
           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
                CC: richard.sandiford at arm dot com
  Target Milestone: ---
              Host: x86_64-linux
            Target: arm-linux-gnueabihf

The following fails:

$ ./xgcc -B. /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/20050309-1.c
-fstack-protector -mcpu=cortex-m7 -mpure-code -c
during RTL pass: mach
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/20050309-1.c: In function
‘test’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/20050309-1.c:41:1: internal
compiler error: in change_address_1, at emit-rtl.c:2275
   41 | }
      | ^
0xcc01cd change_address_1
        /home/marxin/Programming/gcc2/gcc/emit-rtl.c:2275
0xcc11be replace_equiv_address(rtx_def*, rtx_def*, bool)
        /home/marxin/Programming/gcc2/gcc/emit-rtl.c:2545
0xce498c validize_mem(rtx_def*)
        /home/marxin/Programming/gcc2/gcc/explow.c:531
0xd1273b emit_move_insn(rtx_def*, rtx_def*)
        /home/marxin/Programming/gcc2/gcc/expr.c:3931
0x1c3d582 gen_split_74(rtx_insn*, rtx_def**)
        /home/marxin/Programming/gcc2/gcc/config/arm/arm.md:9216
0x1e49f3b split_insns(rtx_def*, rtx_insn*)
        /home/marxin/Programming/gcc2/gcc/config/arm/arm.md:9192
0xcc3c4d try_split(rtx_def*, rtx_insn*, int)
        /home/marxin/Programming/gcc2/gcc/emit-rtl.c:3834
0x110b3c4 split_insn
        /home/marxin/Programming/gcc2/gcc/recog.c:2884
0x110b82d split_all_insns_noflow()
        /home/marxin/Programming/gcc2/gcc/recog.c:3046
0x16ca01b arm_reorg
        /home/marxin/Programming/gcc2/gcc/config/arm/arm.c:19143
0x11599c0 execute
        /home/marxin/Programming/gcc2/gcc/reorg.c:4028
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] 9+ messages in thread

* [Bug target/97269] [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617
  2020-10-02  7:33 [Bug target/97269] New: [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617 marxin at gcc dot gnu.org
@ 2020-10-02  7:33 ` marxin at gcc dot gnu.org
  2020-10-02 13:49 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-02  7:33 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-10-02
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
      Known to fail|                            |11.0
      Known to work|                            |10.2.0

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

* [Bug target/97269] [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617
  2020-10-02  7:33 [Bug target/97269] New: [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617 marxin at gcc dot gnu.org
  2020-10-02  7:33 ` [Bug target/97269] " marxin at gcc dot gnu.org
@ 2020-10-02 13:49 ` rguenth at gcc dot gnu.org
  2020-10-12 11:46 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-10-02 13:49 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.0

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

* [Bug target/97269] [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617
  2020-10-02  7:33 [Bug target/97269] New: [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617 marxin at gcc dot gnu.org
  2020-10-02  7:33 ` [Bug target/97269] " marxin at gcc dot gnu.org
  2020-10-02 13:49 ` rguenth at gcc dot gnu.org
@ 2020-10-12 11:46 ` rguenth at gcc dot gnu.org
  2020-10-13  7:37 ` marxin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-10-12 11:46 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1

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

* [Bug target/97269] [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617
  2020-10-02  7:33 [Bug target/97269] New: [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617 marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-10-12 11:46 ` rguenth at gcc dot gnu.org
@ 2020-10-13  7:37 ` marxin at gcc dot gnu.org
  2020-10-29 18:45 ` rsandifo at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-13  7:37 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktkachov at gcc dot gnu.org

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Any update on this please?

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

* [Bug target/97269] [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617
  2020-10-02  7:33 [Bug target/97269] New: [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617 marxin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2020-10-13  7:37 ` marxin at gcc dot gnu.org
@ 2020-10-29 18:45 ` rsandifo at gcc dot gnu.org
  2021-01-05 11:29 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2020-10-29 18:45 UTC (permalink / raw)
  To: gcc-bugs

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

rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:

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

--- Comment #2 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Mine.

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

* [Bug target/97269] [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617
  2020-10-02  7:33 [Bug target/97269] New: [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617 marxin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2020-10-29 18:45 ` rsandifo at gcc dot gnu.org
@ 2021-01-05 11:29 ` cvs-commit at gcc dot gnu.org
  2021-01-05 11:31 ` rsandifo at gcc dot gnu.org
  2021-03-29 11:47 ` rsandifo at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-01-05 11:29 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

commit r11-6461-ge8beba1cfc761cc35762283b3b44a355ef05e25b
Author: Richard Sandiford <richard.sandiford@arm.com>
Date:   Tue Jan 5 11:29:10 2021 +0000

    explow, aarch64: Fix force-Pmode-to-mem for ILP32 [PR97269]

    This patch fixes a mode/rtx mismatch for ILP32 targets in:

              mem = force_const_mem (ptr_mode, imm);

    where imm can be Pmode rather than ptr_mode.

    The patch uses convert_memory_address to convert the Pmode address
    to ptr_mode before the call.  However, immediate addresses can in
    general contain unspecs, and convert_memory_address wasn't set up
    to handle those.

    The patch therefore adds some generic unspec handling to
    convert_memory_address_addr_space_1.  As the comment says, we can add
    a target hook if this behaviour turns out to be wrong for some targets.
    But I think what the patch does is a strict improvement over the status
    quo: without it, we would try to force the unspec into a register,
    but nevertheless wrap the result in a (const ...).  That in turn
    would be invalid rtl and seems bound to generate an ICE later.

    I tested the explow.c part using -fstack-protector with local hacks
    to force SYMBOL_FORCE_TO_MEM for UNSPEC_SALT_ADDR.

    Fixes c-c++-common/torture/pr57945.c and various other tests.

    gcc/
            PR target/97269
            * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
            nested in CONSTs.
            * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
            convert_memory_address to convert symbolic immediates to ptr_mode
            before forcing them to memory.

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

* [Bug target/97269] [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617
  2020-10-02  7:33 [Bug target/97269] New: [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617 marxin at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2021-01-05 11:29 ` cvs-commit at gcc dot gnu.org
@ 2021-01-05 11:31 ` rsandifo at gcc dot gnu.org
  2021-03-29 11:47 ` rsandifo at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2021-01-05 11:31 UTC (permalink / raw)
  To: gcc-bugs

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

rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:

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

--- Comment #4 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Fixed on trunk.

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

* [Bug target/97269] [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617
  2020-10-02  7:33 [Bug target/97269] New: [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617 marxin at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2021-01-05 11:31 ` rsandifo at gcc dot gnu.org
@ 2021-03-29 11:47 ` rsandifo at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2021-03-29 11:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
*** Bug 96879 has been marked as a duplicate of this bug. ***

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

end of thread, other threads:[~2021-03-29 11:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-02  7:33 [Bug target/97269] New: [11 Regression] ICE in change_address_1, at emit-rtl.c:2275 since r11-3427-ge94797250b403d66cb3624a594e41faf0dd76617 marxin at gcc dot gnu.org
2020-10-02  7:33 ` [Bug target/97269] " marxin at gcc dot gnu.org
2020-10-02 13:49 ` rguenth at gcc dot gnu.org
2020-10-12 11:46 ` rguenth at gcc dot gnu.org
2020-10-13  7:37 ` marxin at gcc dot gnu.org
2020-10-29 18:45 ` rsandifo at gcc dot gnu.org
2021-01-05 11:29 ` cvs-commit at gcc dot gnu.org
2021-01-05 11:31 ` rsandifo at gcc dot gnu.org
2021-03-29 11:47 ` rsandifo 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).