public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/97540] New: [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-4202-g4de7b010038933dd
@ 2020-10-23  8:04 marxin at gcc dot gnu.org
  2020-10-23  8:04 ` [Bug rtl-optimization/97540] " marxin at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-23  8:04 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97540
           Summary: [11 Regression] ICE in lra_set_insn_recog_data, at
                    lra.c:1004 since r11-4202-g4de7b010038933dd
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: hjl at gcc dot gnu.org
  Target Milestone: ---

The following fails, it's reduced from linux kernel:

$ cat mediatek.i
int mt7615_add_interface_dev_0;
int ffs(int x) { asm("" : : "rm"(x)); }
int mt7615_add_interface() { ffs(~mt7615_add_interface_dev_0); }

$ gcc mediatek.i -c -O2
during RTL pass: reload
mediatek.i: In function ‘mt7615_add_interface’:
mediatek.i:3:64: internal compiler error: in lra_set_insn_recog_data, at
lra.c:1004
    3 | int mt7615_add_interface() { ffs(~mt7615_add_interface_dev_0); }
      |                                                                ^
0x6a2457 lra_set_insn_recog_data(rtx_insn*)
        /home/marxin/Programming/gcc/gcc/lra.c:1004
0xc2434f lra_get_insn_recog_data
        /home/marxin/Programming/gcc/gcc/lra-int.h:488
0xc2434f remove_scratches_1
        /home/marxin/Programming/gcc/gcc/lra.c:2064
0xc244a3 lra_emit_move(rtx_def*, rtx_def*)
        /home/marxin/Programming/gcc/gcc/lra.c:506
0xc368c6 curr_insn_transform
        /home/marxin/Programming/gcc/gcc/lra-constraints.c:4523
0xc37db6 lra_constraints(bool)
        /home/marxin/Programming/gcc/gcc/lra-constraints.c:5123
0xc24d8c lra(_IO_FILE*)
        /home/marxin/Programming/gcc/gcc/lra.c:2415
0xbe0171 do_reload
        /home/marxin/Programming/gcc/gcc/ira.c:5529
0xbe0171 execute
        /home/marxin/Programming/gcc/gcc/ira.c:5715
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.

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

end of thread, other threads:[~2020-12-04 14:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-23  8:04 [Bug rtl-optimization/97540] New: [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-4202-g4de7b010038933dd marxin at gcc dot gnu.org
2020-10-23  8:04 ` [Bug rtl-optimization/97540] " marxin at gcc dot gnu.org
2020-10-23 11:47 ` rguenth at gcc dot gnu.org
2020-10-23 14:01 ` crazylht at gmail dot com
2020-10-26 19:30 ` dcb314 at hotmail dot com
2020-10-27  6:05 ` crazylht at gmail dot com
2020-10-30  0:52 ` crazylht at gmail dot com
2020-11-02  9:05 ` marxin at gcc dot gnu.org
2020-11-02 11:13 ` crazylht at gmail dot com
2020-11-04  5:07 ` cvs-commit at gcc dot gnu.org
2020-11-04  5:13 ` crazylht at gmail dot com
2020-12-04 14:10 ` marxin 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).