public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/106364] New: ICE when compiling inline asm with -m32
@ 2022-07-20 4:43 tlwang at uwaterloo dot ca
2022-07-20 7:30 ` [Bug rtl-optimization/106364] " marxin at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: tlwang at uwaterloo dot ca @ 2022-07-20 4:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106364
Bug ID: 106364
Summary: ICE when compiling inline asm with -m32
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: tlwang at uwaterloo dot ca
Target Milestone: ---
See below.
// Target: x86_64-pc-linux-gnu
// Configured with: /tmp/tmp.KjYQzLjtrV-gcc-builder/gcc/configure
--enable-languages=c,c++,lto --enable-checking-yes --enable-multiarch
--prefix=/scratch/software/gcc-trunk --disable-bootstrap
// Thread model: posix
// Supported LTO compression algorithms: zlib
// gcc version 13.0.0 20220719 (experimental) [master -g2180cdd8a] (GCC)
//
// inline_asm_program0_preprocessed.c: In function ‘l’:
// inline_asm_program0_preprocessed.c:6:5: error: ‘asm’ operand has impossible
constraints
// 6 | asm(""
// | ^~~
// during RTL pass: reload
// inline_asm_program0_preprocessed.c:9:1: internal compiler error: maximum
number of LRA assignment passes is achieved (30)
// 9 | }
// | ^
// 0xe5fd80 lra_assign(bool&)
// /tmp/tmp.KjYQzLjtrV-gcc-builder/gcc/gcc/lra-assigns.cc:1694
// 0xe5a76c lra(_IO_FILE*)
// /tmp/tmp.KjYQzLjtrV-gcc-builder/gcc/gcc/lra.cc:2426
// 0xe0e159 do_reload
// /tmp/tmp.KjYQzLjtrV-gcc-builder/gcc/gcc/ira.cc:5940
// 0xe0e159 execute
// /tmp/tmp.KjYQzLjtrV-gcc-builder/gcc/gcc/ira.cc:6126
// Please submit a full bug report, with preprocessed source.
// Please include the complete backtrace with any bug report.
// See <https://gcc.gnu.org/bugs/> for instructions.
// /scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/13.0.0/cc1
-quiet -imultilib 32 -imultiarch i386-linux-gnu
inline_asm_program0_preprocessed.c -quiet -dumpdir a- -dumpbase
inline_asm_program0_preprocessed.c -dumpbase-ext .c -m32 -mtune=generic
-march=x86-64 -O0 -w -freport-bug -o - -frandom-seed=0 -fdump-noaddr
# 0 "inline_asm_program0_preprocessed.c"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 0 "<command-line>" 2
# 1 "inline_asm_program0_preprocessed.c"
a, b, c, d, e, f, g, h, i;
long long j;
char k;
l() {
for (;; l())
asm(""
: "+a"(h), "+r"(b), "=r"(a), "+r"(f), "+r"(e), "+r"(i), "=r"(g),
"+r"(j), "=r"(d), "+r"(b), "+r"(k), "=r"(c));
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/106364] ICE when compiling inline asm with -m32
2022-07-20 4:43 [Bug rtl-optimization/106364] New: ICE when compiling inline asm with -m32 tlwang at uwaterloo dot ca
@ 2022-07-20 7:30 ` marxin at gcc dot gnu.org
2022-07-20 8:11 ` [Bug target/106364] " rguenth at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-07-20 7:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106364
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
CC| |marxin at gcc dot gnu.org
Last reconfirmed| |2022-07-20
Status|UNCONFIRMED |NEW
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/106364] ICE when compiling inline asm with -m32
2022-07-20 4:43 [Bug rtl-optimization/106364] New: ICE when compiling inline asm with -m32 tlwang at uwaterloo dot ca
2022-07-20 7:30 ` [Bug rtl-optimization/106364] " marxin at gcc dot gnu.org
@ 2022-07-20 8:11 ` rguenth at gcc dot gnu.org
2022-08-09 6:25 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-07-20 8:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106364
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |i?86-*-*
Keywords| |diagnostic
Component|rtl-optimization |target
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
possibly a diagnostic issue only - we might want to gate the diagnostic on
error_count/sorry_count == 0. But then the question is whether we can "safely"
stop doing lra_assign here or if there's an alternative "silent" way to
terminate compilation.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/106364] ICE when compiling inline asm with -m32
2022-07-20 4:43 [Bug rtl-optimization/106364] New: ICE when compiling inline asm with -m32 tlwang at uwaterloo dot ca
2022-07-20 7:30 ` [Bug rtl-optimization/106364] " marxin at gcc dot gnu.org
2022-07-20 8:11 ` [Bug target/106364] " rguenth at gcc dot gnu.org
@ 2022-08-09 6:25 ` pinskia at gcc dot gnu.org
2022-08-09 6:27 ` pinskia at gcc dot gnu.org
2023-04-15 6:05 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-08-09 6:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106364
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=104447
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Richard Biener from comment
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/106364] ICE when compiling inline asm with -m32
2022-07-20 4:43 [Bug rtl-optimization/106364] New: ICE when compiling inline asm with -m32 tlwang at uwaterloo dot ca
` (2 preceding siblings ...)
2022-08-09 6:25 ` pinskia at gcc dot gnu.org
@ 2022-08-09 6:27 ` pinskia at gcc dot gnu.org
2023-04-15 6:05 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-08-09 6:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106364
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |compile-time-hog,
| |ice-checking
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Without checking enabled, this goes into an infinite loop which is similar to
RP 105032.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/106364] ICE when compiling inline asm with -m32
2022-07-20 4:43 [Bug rtl-optimization/106364] New: ICE when compiling inline asm with -m32 tlwang at uwaterloo dot ca
` (3 preceding siblings ...)
2022-08-09 6:27 ` pinskia at gcc dot gnu.org
@ 2023-04-15 6:05 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-04-15 6:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106364
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So this was fixed with r13-6804-g81d762cbec9685 (aka PR 109137) so closing as
such.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-04-15 6:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-20 4:43 [Bug rtl-optimization/106364] New: ICE when compiling inline asm with -m32 tlwang at uwaterloo dot ca
2022-07-20 7:30 ` [Bug rtl-optimization/106364] " marxin at gcc dot gnu.org
2022-07-20 8:11 ` [Bug target/106364] " rguenth at gcc dot gnu.org
2022-08-09 6:25 ` pinskia at gcc dot gnu.org
2022-08-09 6:27 ` pinskia at gcc dot gnu.org
2023-04-15 6:05 ` pinskia 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).