public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/97313] New: [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7
@ 2020-10-07 7:57 marxin at gcc dot gnu.org
2020-10-07 7:58 ` [Bug rtl-optimization/97313] " marxin at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-07 7:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97313
Bug ID: 97313
Summary: [11 Regression] ICE in lra_set_insn_recog_data, at
lra.c:1004 since r11-937-g5261cf8ce824bfc7
Product: gcc
Version: 10.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: vmakarov at gcc dot gnu.org
Target Milestone: ---
Host: x86_64-linux-gnu
Target: i586-linux-gnu
The following test-case reduced from qemu fails:
$ cat /tmp/tz.i
typedef struct {
int unspecified : 1;
int secure : 1;
} MemTxAttrs;
enum { MSCAllowNonSecure } tz_msc_read_pdata;
int tz_msc_read_s_0;
int tz_msc_check();
int address_space_ldl_le();
void tz_msc_read(MemTxAttrs attrs) {
int as = tz_msc_read_s_0;
long long data;
switch (tz_msc_check()) {
case MSCAllowNonSecure:
attrs.secure = attrs.unspecified = 0;
data = address_space_ldl_le(as, attrs);
}
tz_msc_read_pdata = data;
}
$ gcc /tmp/tz.i -O2 -fPIE -m32
during RTL pass: reload
/tmp/tz.i: In function ‘tz_msc_read’:
/tmp/tz.i:21:1: internal compiler error: in lra_set_insn_recog_data, at
lra.c:1004
21 | }
| ^
0x105e179 lra_set_insn_recog_data(rtx_insn*)
/home/marxin/Programming/gcc/gcc/lra.c:1004
0x105bf0d lra_get_insn_recog_data
/home/marxin/Programming/gcc/gcc/lra-int.h:488
0x1060ae3 remove_scratches_1
/home/marxin/Programming/gcc/gcc/lra.c:2064
0x105cdfb lra_emit_move(rtx_def*, rtx_def*)
/home/marxin/Programming/gcc/gcc/lra.c:506
0x1073611 match_reload
/home/marxin/Programming/gcc/gcc/lra-constraints.c:1138
0x107cff9 curr_insn_transform
/home/marxin/Programming/gcc/gcc/lra-constraints.c:4551
0x107e986 lra_constraints(bool)
/home/marxin/Programming/gcc/gcc/lra-constraints.c:5100
0x106175d lra(_IO_FILE*)
/home/marxin/Programming/gcc/gcc/lra.c:2415
0xfee170 do_reload
/home/marxin/Programming/gcc/gcc/ira.c:5529
0xfee65e 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.
See <https://gcc.gnu.org/bugs/> for instructions.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/97313] [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7
2020-10-07 7:57 [Bug rtl-optimization/97313] New: [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7 marxin at gcc dot gnu.org
@ 2020-10-07 7:58 ` marxin at gcc dot gnu.org
2020-10-08 19:09 ` vmakarov at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-07 7:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97313
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2020-10-07
Known to work| |10.2.0
Priority|P3 |P1
Known to fail| |11.0
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Target Milestone|--- |11.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/97313] [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7
2020-10-07 7:57 [Bug rtl-optimization/97313] New: [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7 marxin at gcc dot gnu.org
2020-10-07 7:58 ` [Bug rtl-optimization/97313] " marxin at gcc dot gnu.org
@ 2020-10-08 19:09 ` vmakarov at gcc dot gnu.org
2020-10-09 14:13 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2020-10-08 19:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97313
--- Comment #1 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
Thank you for reporting this. I am trying to find the best place to fix this:
either in memory subreg elimination or in match_reload itself. I hope the fix
will be ready tomorrow.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/97313] [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7
2020-10-07 7:57 [Bug rtl-optimization/97313] New: [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7 marxin at gcc dot gnu.org
2020-10-07 7:58 ` [Bug rtl-optimization/97313] " marxin at gcc dot gnu.org
2020-10-08 19:09 ` vmakarov at gcc dot gnu.org
@ 2020-10-09 14:13 ` cvs-commit at gcc dot gnu.org
2020-10-09 14:50 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-09 14:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97313
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Vladimir Makarov <vmakarov@gcc.gnu.org>:
https://gcc.gnu.org/g:bb37ad8cc0fc937c7afcdab471e5d65d176041c3
commit r11-3758-gbb37ad8cc0fc937c7afcdab471e5d65d176041c3
Author: Vladimir N. Makarov <vmakarov@redhat.com>
Date: Fri Oct 9 10:01:13 2020 -0400
Don't keep strict_low_part in reloads for non-registers. [PR97313]
gcc/ChangeLog:
2020-10-09 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/97313
* lra-constraints.c (match_reload): Don't keep strict_low_part in
reloads for non-registers.
gcc/testsuite/ChangeLog:
2020-10-09 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/97313
* gcc.target/i386/pr97313.c: New.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/97313] [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7
2020-10-07 7:57 [Bug rtl-optimization/97313] New: [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7 marxin at gcc dot gnu.org
` (2 preceding siblings ...)
2020-10-09 14:13 ` cvs-commit at gcc dot gnu.org
@ 2020-10-09 14:50 ` cvs-commit at gcc dot gnu.org
2020-10-12 7:00 ` marxin at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-09 14:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97313
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Vladimir Makarov
<vmakarov@gcc.gnu.org>:
https://gcc.gnu.org/g:70a66ff0228277b4dd89263a663c0a87eb5d782f
commit r10-8874-g70a66ff0228277b4dd89263a663c0a87eb5d782f
Author: Vladimir N. Makarov <vmakarov@redhat.com>
Date: Fri Oct 9 10:01:13 2020 -0400
Don't keep strict_low_part in reloads for non-registers. [PR97313]
gcc/ChangeLog:
2020-10-09 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/97313
* lra-constraints.c (match_reload): Don't keep strict_low_part in
reloads for non-registers.
gcc/testsuite/ChangeLog:
2020-10-09 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/97313
* gcc.target/i386/pr97313.c: New.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/97313] [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7
2020-10-07 7:57 [Bug rtl-optimization/97313] New: [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7 marxin at gcc dot gnu.org
` (3 preceding siblings ...)
2020-10-09 14:50 ` cvs-commit at gcc dot gnu.org
@ 2020-10-12 7:00 ` marxin at gcc dot gnu.org
2020-10-19 15:39 ` vmakarov at gcc dot gnu.org
2020-10-22 6:36 ` marxin at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-12 7:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97313
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Thank you Vladimir for the fix.
Can we close it now?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/97313] [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7
2020-10-07 7:57 [Bug rtl-optimization/97313] New: [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7 marxin at gcc dot gnu.org
` (4 preceding siblings ...)
2020-10-12 7:00 ` marxin at gcc dot gnu.org
@ 2020-10-19 15:39 ` vmakarov at gcc dot gnu.org
2020-10-22 6:36 ` marxin at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2020-10-19 15:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97313
--- Comment #5 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #4)
> Thank you Vladimir for the fix.
> Can we close it now?
There are no complaints about the patch for more a week. So I guess the PR can
be closed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/97313] [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7
2020-10-07 7:57 [Bug rtl-optimization/97313] New: [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7 marxin at gcc dot gnu.org
` (5 preceding siblings ...)
2020-10-19 15:39 ` vmakarov at gcc dot gnu.org
@ 2020-10-22 6:36 ` marxin at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-22 6:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97313
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Closing then.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2020-10-22 6:36 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-07 7:57 [Bug rtl-optimization/97313] New: [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-937-g5261cf8ce824bfc7 marxin at gcc dot gnu.org
2020-10-07 7:58 ` [Bug rtl-optimization/97313] " marxin at gcc dot gnu.org
2020-10-08 19:09 ` vmakarov at gcc dot gnu.org
2020-10-09 14:13 ` cvs-commit at gcc dot gnu.org
2020-10-09 14:50 ` cvs-commit at gcc dot gnu.org
2020-10-12 7:00 ` marxin at gcc dot gnu.org
2020-10-19 15:39 ` vmakarov at gcc dot gnu.org
2020-10-22 6:36 ` 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).