public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/101504] New: [12 Regression] ICE: in lra_assign, at lra-assigns.c:1649 with -O2 -march=broadwell
@ 2021-07-19 7:17 zsojka at seznam dot cz
2021-07-19 7:45 ` [Bug target/101504] " rguenth at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2021-07-19 7:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101504
Bug ID: 101504
Summary: [12 Regression] ICE: in lra_assign, at
lra-assigns.c:1649 with -O2 -march=broadwell
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 51170
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51170&action=edit
reduced testcase
Compiler output:
$ x86_64-pc-linux-gnu-gcc -O2 -march=broadwell testcase.c
during RTL pass: reload
testcase.c: In function 'foo':
testcase.c:18:1: internal compiler error: in lra_assign, at lra-assigns.c:1649
18 | }
| ^
0xee2b8b lra_assign(bool&)
/repo/gcc-trunk/gcc/lra-assigns.c:1649
0xedce4c lra(_IO_FILE*)
/repo/gcc-trunk/gcc/lra.c:2387
0xe8ec59 do_reload
/repo/gcc-trunk/gcc/ira.c:5932
0xe8ec59 execute
/repo/gcc-trunk/gcc/ira.c:6118
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.
$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r12-2388-20210719001624-gbdea84c4b57-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --with-cloog --with-ppl --with-isl
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r12-2388-20210719001624-gbdea84c4b57-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.0.0 20210719 (experimental) (GCC)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/101504] [12 Regression] ICE: in lra_assign, at lra-assigns.c:1649 with -O2 -march=broadwell
2021-07-19 7:17 [Bug target/101504] New: [12 Regression] ICE: in lra_assign, at lra-assigns.c:1649 with -O2 -march=broadwell zsojka at seznam dot cz
@ 2021-07-19 7:45 ` rguenth at gcc dot gnu.org
2021-07-22 4:15 ` hjl.tools at gmail dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-07-19 7:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101504
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/101504] [12 Regression] ICE: in lra_assign, at lra-assigns.c:1649 with -O2 -march=broadwell
2021-07-19 7:17 [Bug target/101504] New: [12 Regression] ICE: in lra_assign, at lra-assigns.c:1649 with -O2 -march=broadwell zsojka at seznam dot cz
2021-07-19 7:45 ` [Bug target/101504] " rguenth at gcc dot gnu.org
@ 2021-07-22 4:15 ` hjl.tools at gmail dot com
2021-07-22 12:33 ` hjl.tools at gmail dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2021-07-22 4:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101504
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |hjl.tools at gmail dot com
Ever confirmed|0 |1
Last reconfirmed| |2021-07-22
Status|UNCONFIRMED |NEW
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/101504] [12 Regression] ICE: in lra_assign, at lra-assigns.c:1649 with -O2 -march=broadwell
2021-07-19 7:17 [Bug target/101504] New: [12 Regression] ICE: in lra_assign, at lra-assigns.c:1649 with -O2 -march=broadwell zsojka at seznam dot cz
2021-07-19 7:45 ` [Bug target/101504] " rguenth at gcc dot gnu.org
2021-07-22 4:15 ` hjl.tools at gmail dot com
@ 2021-07-22 12:33 ` hjl.tools at gmail dot com
2021-07-22 13:19 ` hjl.tools at gmail dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2021-07-22 12:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101504
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
A patch is posted at
https://gcc.gnu.org/pipermail/gcc-patches/2021-July/575829.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/101504] [12 Regression] ICE: in lra_assign, at lra-assigns.c:1649 with -O2 -march=broadwell
2021-07-19 7:17 [Bug target/101504] New: [12 Regression] ICE: in lra_assign, at lra-assigns.c:1649 with -O2 -march=broadwell zsojka at seznam dot cz
` (2 preceding siblings ...)
2021-07-22 12:33 ` hjl.tools at gmail dot com
@ 2021-07-22 13:19 ` hjl.tools at gmail dot com
2021-07-23 13:11 ` cvs-commit at gcc dot gnu.org
2021-07-23 13:11 ` hjl.tools at gmail dot com
5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2021-07-22 13:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101504
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jamborm at gcc dot gnu.org
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
*** Bug 101560 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/101504] [12 Regression] ICE: in lra_assign, at lra-assigns.c:1649 with -O2 -march=broadwell
2021-07-19 7:17 [Bug target/101504] New: [12 Regression] ICE: in lra_assign, at lra-assigns.c:1649 with -O2 -march=broadwell zsojka at seznam dot cz
` (3 preceding siblings ...)
2021-07-22 13:19 ` hjl.tools at gmail dot com
@ 2021-07-23 13:11 ` cvs-commit at gcc dot gnu.org
2021-07-23 13:11 ` hjl.tools at gmail dot com
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-07-23 13:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101504
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:
https://gcc.gnu.org/g:085666673db03c2e53db368d699c47032c6c5f2e
commit r12-2495-g085666673db03c2e53db368d699c47032c6c5f2e
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Jul 22 05:17:27 2021 -0700
x86: Don't return hard register when LRA is in progress
Don't return hard register in ix86_gen_scratch_sse_rtx when LRA is in
progress to avoid ICE when there are no available hard registers for
LRA.
gcc/
PR target/101504
* config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
hard register when LRA is in progress.
gcc/testsuite/
PR target/101504
* gcc.target/i386/pr101504.c: New test.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/101504] [12 Regression] ICE: in lra_assign, at lra-assigns.c:1649 with -O2 -march=broadwell
2021-07-19 7:17 [Bug target/101504] New: [12 Regression] ICE: in lra_assign, at lra-assigns.c:1649 with -O2 -march=broadwell zsojka at seznam dot cz
` (4 preceding siblings ...)
2021-07-23 13:11 ` cvs-commit at gcc dot gnu.org
@ 2021-07-23 13:11 ` hjl.tools at gmail dot com
5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2021-07-23 13:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101504
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-07-23 13:11 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-19 7:17 [Bug target/101504] New: [12 Regression] ICE: in lra_assign, at lra-assigns.c:1649 with -O2 -march=broadwell zsojka at seznam dot cz
2021-07-19 7:45 ` [Bug target/101504] " rguenth at gcc dot gnu.org
2021-07-22 4:15 ` hjl.tools at gmail dot com
2021-07-22 12:33 ` hjl.tools at gmail dot com
2021-07-22 13:19 ` hjl.tools at gmail dot com
2021-07-23 13:11 ` cvs-commit at gcc dot gnu.org
2021-07-23 13:11 ` hjl.tools at gmail dot com
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).