* [Bug target/24445] "unable to find a register to spill in class 'R0_REGS"
2005-10-19 17:32 [Bug c/24445] New: "unable to find a register to spill in class 'R0_REGS" rpjday at mindspring dot com
@ 2005-10-19 19:07 ` pinskia at gcc dot gnu dot org
2005-10-19 19:09 ` rpjday at mindspring dot com
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-19 19:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-19 19:07 -------
I think a work around for this problem was committed on the 17th which is after
the snapshot was done, Can you confirm that?
If you do, please mark this as a dup of bug 22553.
Thanks,
Andrew Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24445
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/24445] "unable to find a register to spill in class 'R0_REGS"
2005-10-19 17:32 [Bug c/24445] New: "unable to find a register to spill in class 'R0_REGS" rpjday at mindspring dot com
2005-10-19 19:07 ` [Bug target/24445] " pinskia at gcc dot gnu dot org
@ 2005-10-19 19:09 ` rpjday at mindspring dot com
2005-10-19 19:54 ` rpjday at mindspring dot com
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rpjday at mindspring dot com @ 2005-10-19 19:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rpjday at mindspring dot com 2005-10-19 19:09 -------
Created an attachment (id=10026)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10026&action=view)
compressed strtok.i file from running the single offending
sh4-unknown-linux-gnu-gcc command
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24445
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/24445] "unable to find a register to spill in class 'R0_REGS"
2005-10-19 17:32 [Bug c/24445] New: "unable to find a register to spill in class 'R0_REGS" rpjday at mindspring dot com
2005-10-19 19:07 ` [Bug target/24445] " pinskia at gcc dot gnu dot org
2005-10-19 19:09 ` rpjday at mindspring dot com
@ 2005-10-19 19:54 ` rpjday at mindspring dot com
2005-10-20 12:12 ` kkojima at gcc dot gnu dot org
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rpjday at mindspring dot com @ 2005-10-19 19:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rpjday at mindspring dot com 2005-10-19 19:54 -------
Using a CVS pull as of today didn't seem to solve the problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24445
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/24445] "unable to find a register to spill in class 'R0_REGS"
2005-10-19 17:32 [Bug c/24445] New: "unable to find a register to spill in class 'R0_REGS" rpjday at mindspring dot com
` (2 preceding siblings ...)
2005-10-19 19:54 ` rpjday at mindspring dot com
@ 2005-10-20 12:12 ` kkojima at gcc dot gnu dot org
2005-10-20 12:14 ` sieb at sscd dot de
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2005-10-20 12:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from kkojima at gcc dot gnu dot org 2005-10-20 12:11 -------
Here is a reduced testcase:
extern int bar (void) __attribute__ ((__pure__));
extern char *baz;
void foo (void)
{
baz = (char *) bar ();
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24445
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/24445] "unable to find a register to spill in class 'R0_REGS"
2005-10-19 17:32 [Bug c/24445] New: "unable to find a register to spill in class 'R0_REGS" rpjday at mindspring dot com
` (3 preceding siblings ...)
2005-10-20 12:12 ` kkojima at gcc dot gnu dot org
@ 2005-10-20 12:14 ` sieb at sscd dot de
2005-10-20 12:45 ` rpjday at mindspring dot com
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: sieb at sscd dot de @ 2005-10-20 12:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from sieb at sscd dot de 2005-10-20 12:14 -------
(In reply to comment #1)
> I think a work around for this problem was committed on the 17th which is after
> the snapshot was done, Can you confirm that?
>
I just tried cvs head (as of 2005-10-20 12:10 GMT). Same problem,
unfortunately.
Regards,
Alexander
--
sieb at sscd dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sieb at sscd dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24445
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/24445] "unable to find a register to spill in class 'R0_REGS"
2005-10-19 17:32 [Bug c/24445] New: "unable to find a register to spill in class 'R0_REGS" rpjday at mindspring dot com
` (4 preceding siblings ...)
2005-10-20 12:14 ` sieb at sscd dot de
@ 2005-10-20 12:45 ` rpjday at mindspring dot com
2005-10-21 14:15 ` rpjday at mindspring dot com
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rpjday at mindspring dot com @ 2005-10-20 12:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rpjday at mindspring dot com 2005-10-20 12:45 -------
(In reply to comment #4)
> Here is a reduced testcase:
>
> extern int bar (void) __attribute__ ((__pure__));
> extern char *baz;
> void foo (void)
> {
> baz = (char *) bar ();
> }
>
OK, given the reduced test case that shows the problem, I assume there's no
need to provide any further details from the crosstool output then?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24445
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/24445] "unable to find a register to spill in class 'R0_REGS"
2005-10-19 17:32 [Bug c/24445] New: "unable to find a register to spill in class 'R0_REGS" rpjday at mindspring dot com
` (5 preceding siblings ...)
2005-10-20 12:45 ` rpjday at mindspring dot com
@ 2005-10-21 14:15 ` rpjday at mindspring dot com
2005-10-22 21:36 ` rpjday at mindspring dot com
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rpjday at mindspring dot com @ 2005-10-21 14:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rpjday at mindspring dot com 2005-10-21 14:15 -------
In case anyone is interested, this error appeared between gcc-4.1 snapshots
20050917 and 20050924. gcc-4.1-20050917 built a toolchain without incident.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24445
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/24445] "unable to find a register to spill in class 'R0_REGS"
2005-10-19 17:32 [Bug c/24445] New: "unable to find a register to spill in class 'R0_REGS" rpjday at mindspring dot com
` (6 preceding siblings ...)
2005-10-21 14:15 ` rpjday at mindspring dot com
@ 2005-10-22 21:36 ` rpjday at mindspring dot com
2005-10-30 9:56 ` rpjday at mindspring dot com
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rpjday at mindspring dot com @ 2005-10-22 21:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rpjday at mindspring dot com 2005-10-22 21:36 -------
Just now tested with new snapshot gcc-4.1-20051022, same result.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24445
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/24445] "unable to find a register to spill in class 'R0_REGS"
2005-10-19 17:32 [Bug c/24445] New: "unable to find a register to spill in class 'R0_REGS" rpjday at mindspring dot com
` (7 preceding siblings ...)
2005-10-22 21:36 ` rpjday at mindspring dot com
@ 2005-10-30 9:56 ` rpjday at mindspring dot com
2005-11-01 23:55 ` kkojima at gcc dot gnu dot org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rpjday at mindspring dot com @ 2005-10-30 9:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from rpjday at mindspring dot com 2005-10-30 09:56 -------
The latest snapshot of gcc-4.1-20051029 still produces the same error at the
same location. Was there a workaround posted somewhere, or is this still an
unresolved issue?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24445
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/24445] "unable to find a register to spill in class 'R0_REGS"
2005-10-19 17:32 [Bug c/24445] New: "unable to find a register to spill in class 'R0_REGS" rpjday at mindspring dot com
` (8 preceding siblings ...)
2005-10-30 9:56 ` rpjday at mindspring dot com
@ 2005-11-01 23:55 ` kkojima at gcc dot gnu dot org
2005-11-01 23:58 ` [Bug target/24445] [4.1 Regression] " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2005-11-01 23:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from kkojima at gcc dot gnu dot org 2005-11-01 23:55 -------
With binary search, I've found that the failure started after the patch:
2005-09-18 Jan Hubicka <jh@suse.cz>
* calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
http://gcc.gnu.org/viewcvs/trunk/gcc/calls.c?r1=103656&r2=104405
--
kkojima at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kkojima at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24445
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/24445] [4.1 Regression] "unable to find a register to spill in class 'R0_REGS"
2005-10-19 17:32 [Bug c/24445] New: "unable to find a register to spill in class 'R0_REGS" rpjday at mindspring dot com
` (9 preceding siblings ...)
2005-11-01 23:55 ` kkojima at gcc dot gnu dot org
@ 2005-11-01 23:58 ` pinskia at gcc dot gnu dot org
2005-11-03 6:39 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-01 23:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from pinskia at gcc dot gnu dot org 2005-11-01 23:58 -------
(In reply to comment #10)
> With binary search, I've found that the failure started after the patch:
That would mean it was a latent bug.
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Priority|P2 |P3
Last reconfirmed|0000-00-00 00:00:00 |2005-11-01 23:58:43
date| |
Summary|"unable to find a register |[4.1 Regression] "unable to
|to spill in class 'R0_REGS" |find a register to spill in
| |class 'R0_REGS"
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24445
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/24445] [4.1 Regression] "unable to find a register to spill in class 'R0_REGS"
2005-10-19 17:32 [Bug c/24445] New: "unable to find a register to spill in class 'R0_REGS" rpjday at mindspring dot com
` (10 preceding siblings ...)
2005-11-01 23:58 ` [Bug target/24445] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-11-03 6:39 ` mmitchel at gcc dot gnu dot org
2005-11-11 2:12 ` kkojima at gcc dot gnu dot org
2005-11-11 17:43 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-11-03 6:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from mmitchel at gcc dot gnu dot org 2005-11-03 06:39 -------
Downgrading to P5; SH is not a primary or secondary target.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24445
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/24445] [4.1 Regression] "unable to find a register to spill in class 'R0_REGS"
2005-10-19 17:32 [Bug c/24445] New: "unable to find a register to spill in class 'R0_REGS" rpjday at mindspring dot com
` (11 preceding siblings ...)
2005-11-03 6:39 ` mmitchel at gcc dot gnu dot org
@ 2005-11-11 2:12 ` kkojima at gcc dot gnu dot org
2005-11-11 17:43 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2005-11-11 2:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from kkojima at gcc dot gnu dot org 2005-11-11 02:12 -------
Subject: Bug 24445
Author: kkojima
Date: Fri Nov 11 02:12:42 2005
New Revision: 106774
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106774
Log:
PR target/24445
* calls.c (expand_call): Copy a return value to a plain register
if needed.
* gcc.dg/pr24445.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr24445.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/calls.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24445
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/24445] [4.1 Regression] "unable to find a register to spill in class 'R0_REGS"
2005-10-19 17:32 [Bug c/24445] New: "unable to find a register to spill in class 'R0_REGS" rpjday at mindspring dot com
` (12 preceding siblings ...)
2005-11-11 2:12 ` kkojima at gcc dot gnu dot org
@ 2005-11-11 17:43 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-11 17:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from pinskia at gcc dot gnu dot org 2005-11-11 17:43 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24445
^ permalink raw reply [flat|nested] 15+ messages in thread