public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/99015] New: ICE: Max. number of generated reload insns per insn is achieved (90)
@ 2021-02-09  1:32 zhan3299 at purdue dot edu
  2021-02-12 19:14 ` [Bug inline-asm/99015] " zhan3299 at purdue dot edu
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: zhan3299 at purdue dot edu @ 2021-02-09  1:32 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99015
           Summary: ICE: Max. number of generated reload insns per insn is
                    achieved (90)
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: inline-asm
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhan3299 at purdue dot edu
  Target Milestone: ---

Another inline-asm issue causes an ICE.

--- poc.c starts ---
int main() {
    asm("" : : "fq"(.100));
}
--- poc.c ends ---

The version of GCC is 10.2.0 x86-64, and running 'gcc -O1 poc.c ' can trigger
the ICE.

--- error trace starts ---
$ gcc -O1 poc.c
during RTL pass: reload
test.c: In function ‘main’:
test.c:3:1: internal compiler error: maximum number of generated reload insns
per insn achieved (90)
    3 | }
      | ^
0x9fb0c0 lra_constraints(bool)
        ../../gcc/gcc/lra-constraints.c:4952
0x9e9314 lra(_IO_FILE*)
        ../../gcc/gcc/lra.c:2440
0x9a7201 do_reload
        ../../gcc/gcc/ira.c:5523
0x9a7201 execute
        ../../gcc/gcc/ira.c:5709
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.
--- error trace ends ---


This issue only occurs when compiling with -O1 and higher, but does not with
-O0.

I also test other versions of GCC. It seems to affect GCC version 8.1 and
higher, but not version 7.5 and lower.


This issue may be similar with
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98991. However, as #98991
additionally affects GCC version 7.5 and lower, I suspect they are different.

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

* [Bug inline-asm/99015] ICE: Max. number of generated reload insns per insn is achieved (90)
  2021-02-09  1:32 [Bug inline-asm/99015] New: ICE: Max. number of generated reload insns per insn is achieved (90) zhan3299 at purdue dot edu
@ 2021-02-12 19:14 ` zhan3299 at purdue dot edu
  2021-09-14  7:17 ` [Bug rtl-optimization/99015] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: zhan3299 at purdue dot edu @ 2021-02-12 19:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from zhan3299 at purdue dot edu ---
It seems clang at any optimization level can compile this. GCC at -O0 can also
compile it.

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

* [Bug rtl-optimization/99015] [9/10/11/12 Regression] ICE: Max. number of generated reload insns per insn is achieved (90)
  2021-02-09  1:32 [Bug inline-asm/99015] New: ICE: Max. number of generated reload insns per insn is achieved (90) zhan3299 at purdue dot edu
  2021-02-12 19:14 ` [Bug inline-asm/99015] " zhan3299 at purdue dot edu
@ 2021-09-14  7:17 ` pinskia at gcc dot gnu.org
  2022-01-21 13:18 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-14  7:17 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE: Max. number of         |[9/10/11/12 Regression]
                   |generated reload insns per  |ICE: Max. number of
                   |insn is achieved (90)       |generated reload insns per
                   |                            |insn is achieved (90)
      Known to work|                            |7.1.0, 7.5.0
   Target Milestone|---                         |9.5
          Component|inline-asm                  |rtl-optimization
      Known to fail|                            |12.0, 8.1.0
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|                            |2021-09-14

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

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

* [Bug rtl-optimization/99015] [9/10/11/12 Regression] ICE: Max. number of generated reload insns per insn is achieved (90)
  2021-02-09  1:32 [Bug inline-asm/99015] New: ICE: Max. number of generated reload insns per insn is achieved (90) zhan3299 at purdue dot edu
  2021-02-12 19:14 ` [Bug inline-asm/99015] " zhan3299 at purdue dot edu
  2021-09-14  7:17 ` [Bug rtl-optimization/99015] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org
@ 2022-01-21 13:18 ` rguenth at gcc dot gnu.org
  2022-05-27  9:44 ` [Bug rtl-optimization/99015] [10/11/12/13 " rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-21 13:18 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Last reconfirmed|2021-09-14 00:00:00         |2022-1-21

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

* [Bug rtl-optimization/99015] [10/11/12/13 Regression] ICE: Max. number of generated reload insns per insn is achieved (90)
  2021-02-09  1:32 [Bug inline-asm/99015] New: ICE: Max. number of generated reload insns per insn is achieved (90) zhan3299 at purdue dot edu
                   ` (2 preceding siblings ...)
  2022-01-21 13:18 ` rguenth at gcc dot gnu.org
@ 2022-05-27  9:44 ` rguenth at gcc dot gnu.org
  2022-06-28 10:43 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  9:44 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.5                         |10.4

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed

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

* [Bug rtl-optimization/99015] [10/11/12/13 Regression] ICE: Max. number of generated reload insns per insn is achieved (90)
  2021-02-09  1:32 [Bug inline-asm/99015] New: ICE: Max. number of generated reload insns per insn is achieved (90) zhan3299 at purdue dot edu
                   ` (3 preceding siblings ...)
  2022-05-27  9:44 ` [Bug rtl-optimization/99015] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:43 ` jakub at gcc dot gnu.org
  2023-07-07 10:39 ` [Bug rtl-optimization/99015] [11/12/13/14 " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:43 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.4                        |10.5

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.

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

* [Bug rtl-optimization/99015] [11/12/13/14 Regression] ICE: Max. number of generated reload insns per insn is achieved (90)
  2021-02-09  1:32 [Bug inline-asm/99015] New: ICE: Max. number of generated reload insns per insn is achieved (90) zhan3299 at purdue dot edu
                   ` (4 preceding siblings ...)
  2022-06-28 10:43 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:39 ` rguenth at gcc dot gnu.org
  2024-03-11  2:43 ` [Bug rtl-optimization/99015] [11/12/13 " law at gcc dot gnu.org
  2024-05-08 11:45 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:39 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.5

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.

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

* [Bug rtl-optimization/99015] [11/12/13 Regression] ICE: Max. number of generated reload insns per insn is achieved (90)
  2021-02-09  1:32 [Bug inline-asm/99015] New: ICE: Max. number of generated reload insns per insn is achieved (90) zhan3299 at purdue dot edu
                   ` (5 preceding siblings ...)
  2023-07-07 10:39 ` [Bug rtl-optimization/99015] [11/12/13/14 " rguenth at gcc dot gnu.org
@ 2024-03-11  2:43 ` law at gcc dot gnu.org
  2024-05-08 11:45 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: law at gcc dot gnu.org @ 2024-03-11  2:43 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[11/12/13/14 Regression]    |[11/12/13 Regression] ICE:
                   |ICE: Max. number of         |Max. number of generated
                   |generated reload insns per  |reload insns per insn is
                   |insn is achieved (90)       |achieved (90)
                 CC|                            |law at gcc dot gnu.org

--- Comment #6 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Works on the trunk, gcc-13 still fails.  Removing gcc-14 regression marker.

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

* [Bug rtl-optimization/99015] [11/12/13 Regression] ICE: Max. number of generated reload insns per insn is achieved (90)
  2021-02-09  1:32 [Bug inline-asm/99015] New: ICE: Max. number of generated reload insns per insn is achieved (90) zhan3299 at purdue dot edu
                   ` (6 preceding siblings ...)
  2024-03-11  2:43 ` [Bug rtl-optimization/99015] [11/12/13 " law at gcc dot gnu.org
@ 2024-05-08 11:45 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-05-08 11:45 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2022-01-21 00:00:00         |2024-5-8
           Keywords|                            |needs-bisection

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
What fixed it?

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

end of thread, other threads:[~2024-05-08 11:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-09  1:32 [Bug inline-asm/99015] New: ICE: Max. number of generated reload insns per insn is achieved (90) zhan3299 at purdue dot edu
2021-02-12 19:14 ` [Bug inline-asm/99015] " zhan3299 at purdue dot edu
2021-09-14  7:17 ` [Bug rtl-optimization/99015] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org
2022-01-21 13:18 ` rguenth at gcc dot gnu.org
2022-05-27  9:44 ` [Bug rtl-optimization/99015] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:43 ` jakub at gcc dot gnu.org
2023-07-07 10:39 ` [Bug rtl-optimization/99015] [11/12/13/14 " rguenth at gcc dot gnu.org
2024-03-11  2:43 ` [Bug rtl-optimization/99015] [11/12/13 " law at gcc dot gnu.org
2024-05-08 11:45 ` rguenth 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).