public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/111010] New: [13 regression] error: unable to find a register to spill compiling GCDAProfiling.c
@ 2023-08-14  9:42 ro at gcc dot gnu.org
  2023-08-14  9:43 ` [Bug target/111010] " ro at gcc dot gnu.org
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: ro at gcc dot gnu.org @ 2023-08-14  9:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111010
           Summary: [13 regression] error: unable to find a register to
                    spill compiling GCDAProfiling.c
           Product: gcc
           Version: 13.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
              Host: i386-pc-solaris2.11
            Target: i386-pc-solaris2.11
             Build: i386-pc-solaris2.11

Building current LLVM main with GCC 13.1.0 fails on Solaris/amd64, compiling
compiler-rt/lib/profile/GCDAProfiling.c.  I could reduce that file to the
attached
testcase:

$ gcc -O3 -m32 -fPIC -c GCDAProfiling.i -w
GCDAProfiling.i: In function ‘c’:
GCDAProfiling.i:21:1: error: unable to find a register to spill
   21 | }
      | ^
GCDAProfiling.i:21:1: error: this is the insn:
(insn 109 333 249 9 (set (reg:DI 300)
        (ior:DI (ashift:DI (zero_extend:DI (mem:SI (plus:SI (mult:SI (reg:SI
377 [orig:229 _118 ] [229])
                                (const_int 4 [0x4]))
                            (reg/f:SI 338 [orig:83 a.0_1 ] [83])) [3
MEM[(unsigned int *)_11]+0 S4 A32]))
                (const_int 32 [0x20]))
            (zero_extend:DI (mem:SI (plus:SI (mult:SI (reg:SI 299 [233])
                            (const_int 4 [0x4]))
                        (reg/f:SI 338 [orig:83 a.0_1 ] [83])) [3 MEM[(unsigned
int *)_15]+0 S4 A32])))) "GCDAProfiling.i":15:7 680 {*concatsidi3_3}
     (expr_list:REG_DEAD (reg:SI 377 [orig:229 _118 ] [229])
        (expr_list:REG_DEAD (reg/f:SI 338 [orig:83 a.0_1 ] [83])
            (expr_list:REG_DEAD (reg:SI 299 [233])
                (nil)))))

The corresponding cc1 invocation is

cc1 -fpreprocessed GCDAProfiling.i -quiet -m32 -mtune=generic -march=pentium4
-O3 -w -fPIC

The testcase compiles on the gcc-12 branch and trunk, so this is gcc-13 branch
regression only.

However, it does compile with a Linux/x86_64 gcc 13.1.0.

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

end of thread, other threads:[~2023-08-23 14:46 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-14  9:42 [Bug target/111010] New: [13 regression] error: unable to find a register to spill compiling GCDAProfiling.c ro at gcc dot gnu.org
2023-08-14  9:43 ` [Bug target/111010] " ro at gcc dot gnu.org
2023-08-14  9:44 ` ro at gcc dot gnu.org
2023-08-14 11:14 ` rguenth at gcc dot gnu.org
2023-08-14 14:38 ` ro at CeBiTec dot Uni-Bielefeld.DE
2023-08-14 14:54 ` ro at gcc dot gnu.org
2023-08-18 11:04 ` [Bug target/111010] [13/14 " ro at gcc dot gnu.org
2023-08-18 12:03 ` [Bug target/111010] [13/14 regression] error: unable to find a register to spill compiling GCDAProfiling.c since r13-5092-g4e0b504f26f78f rguenth at gcc dot gnu.org
2023-08-18 12:12 ` rguenth at gcc dot gnu.org
2023-08-21 11:46 ` ro at CeBiTec dot Uni-Bielefeld.DE
2023-08-21 11:53 ` ubizjak at gmail dot com
2023-08-21 12:47 ` ubizjak at gmail dot com
2023-08-21 12:48 ` ubizjak at gmail dot com
2023-08-21 14:59 ` ubizjak at gmail dot com
2023-08-22  7:08 ` ro at CeBiTec dot Uni-Bielefeld.DE
2023-08-22  7:09 ` ro at CeBiTec dot Uni-Bielefeld.DE
2023-08-22  7:59 ` ubizjak at gmail dot com
2023-08-22  8:01 ` ro at CeBiTec dot Uni-Bielefeld.DE
2023-08-22  8:03 ` ubizjak at gmail dot com
2023-08-23 14:42 ` cvs-commit at gcc dot gnu.org
2023-08-23 14:45 ` cvs-commit at gcc dot gnu.org
2023-08-23 14:46 ` ubizjak 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).