public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/21616] [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS'
[not found] <bug-21616-10179@http.gcc.gnu.org/bugzilla/>
@ 2005-10-07 4:03 ` gdr at gcc dot gnu dot org
2006-02-09 19:30 ` dje at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-10-07 4:03 UTC (permalink / raw)
To: gcc-bugs
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.5 |3.4.6
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21616
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/21616] [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS'
[not found] <bug-21616-10179@http.gcc.gnu.org/bugzilla/>
2005-10-07 4:03 ` [Bug target/21616] [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS' gdr at gcc dot gnu dot org
@ 2006-02-09 19:30 ` dje at gcc dot gnu dot org
2006-02-10 12:16 ` amodra at bigpond dot net dot au
` (5 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: dje at gcc dot gnu dot org @ 2006-02-09 19:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from dje at gcc dot gnu dot org 2006-02-09 19:30 -------
Try adding the legitimize_reload_address fragment for unaligned offset from
gcc-4.X:
/* Force ld/std non-word aligned offset into base register by wrapping
in offset 0. */
if (GET_CODE (x) == PLUS
&& GET_CODE (XEXP (x, 0)) == REG
&& REGNO (XEXP (x, 0)) < 32
&& REG_MODE_OK_FOR_BASE_P (XEXP (x, 0), mode)
&& GET_CODE (XEXP (x, 1)) == CONST_INT
&& (INTVAL (XEXP (x, 1)) & 3) != 0
&& !ALTIVEC_VECTOR_MODE (mode)
&& GET_MODE_SIZE (mode) >= UNITS_PER_WORD
&& TARGET_POWERPC64)
{
x = gen_rtx_PLUS (GET_MODE (x), x, GEN_INT (0));
push_reload (XEXP (x, 0), NULL_RTX, &XEXP (x, 0), NULL,
BASE_REG_CLASS, GET_MODE (x), VOIDmode, 0, 0,
opnum, (enum reload_type) type);
*win = 1;
return x;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21616
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/21616] [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS'
[not found] <bug-21616-10179@http.gcc.gnu.org/bugzilla/>
2005-10-07 4:03 ` [Bug target/21616] [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS' gdr at gcc dot gnu dot org
2006-02-09 19:30 ` dje at gcc dot gnu dot org
@ 2006-02-10 12:16 ` amodra at bigpond dot net dot au
2006-02-28 10:19 ` gdr at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: amodra at bigpond dot net dot au @ 2006-02-10 12:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from amodra at bigpond dot net dot au 2006-02-10 12:16 -------
Created an attachment (id=10817)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10817&action=view)
Patch against current 3.4 sources
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21616
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/21616] [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS'
[not found] <bug-21616-10179@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2006-02-10 12:16 ` amodra at bigpond dot net dot au
@ 2006-02-28 10:19 ` gdr at gcc dot gnu dot org
2006-02-28 15:27 ` dje at watson dot ibm dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: gdr at gcc dot gnu dot org @ 2006-02-28 10:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from gdr at gcc dot gnu dot org 2006-02-28 10:18 -------
(In reply to comment #9)
> Created an attachment (id=10817)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10817&action=view) [edit]
> Patch against current 3.4 sources
>
Could you get it reviewed by the appropriate maintainer?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21616
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/21616] [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS'
[not found] <bug-21616-10179@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2006-02-28 10:19 ` gdr at gcc dot gnu dot org
@ 2006-02-28 15:27 ` dje at watson dot ibm dot com
2006-02-28 23:59 ` amodra at bigpond dot net dot au
` (2 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: dje at watson dot ibm dot com @ 2006-02-28 15:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from dje at watson dot ibm dot com 2006-02-28 15:19 -------
Subject: Re: [3.4 only] ICE: unable to find a register to spill in class
`FLOAT_REGS'
If Alan and Gaby want the patch backported to GCC 3.4 branch, it's
okay with me. The patch is fine.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21616
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/21616] [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS'
[not found] <bug-21616-10179@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2006-02-28 15:27 ` dje at watson dot ibm dot com
@ 2006-02-28 23:59 ` amodra at bigpond dot net dot au
2006-03-01 1:04 ` amodra at gcc dot gnu dot org
2006-03-01 1:06 ` amodra at bigpond dot net dot au
7 siblings, 0 replies; 12+ messages in thread
From: amodra at bigpond dot net dot au @ 2006-02-28 23:59 UTC (permalink / raw)
To: gcc-bugs
--
amodra at bigpond dot net dot au changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |amodra at bigpond dot net
|dot org |dot au
Status|NEW |ASSIGNED
Known to work| |3.3.6
Last reconfirmed|2006-01-07 01:55:02 |2006-02-28 23:55:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21616
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/21616] [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS'
[not found] <bug-21616-10179@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2006-02-28 23:59 ` amodra at bigpond dot net dot au
@ 2006-03-01 1:04 ` amodra at gcc dot gnu dot org
2006-03-01 1:06 ` amodra at bigpond dot net dot au
7 siblings, 0 replies; 12+ messages in thread
From: amodra at gcc dot gnu dot org @ 2006-03-01 1:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from amodra at gcc dot gnu dot org 2006-03-01 01:04 -------
Subject: Bug 21616
Author: amodra
Date: Wed Mar 1 01:04:29 2006
New Revision: 111592
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111592
Log:
PR target/21616
Revert most of 2004-03-10 changes, apply mainline 2005-01-07.
* config/rs6000/rs6000.c (invalid_gpr_mem): Delete.
(base_reg_operand): Delete.
(legitimate_offset_address_p): Revert 2004-03-10 changes.
(secondary_reload_class): Likewise.
(rs6000_legitimize_reload_address): Convert non-word aligned
offset address using ld/std into indirect address.
* config/rs6000/rs6000.h (SECONDARY_RELOAD_CLASS): Define.
(SECONDARY_INPUT_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
(PREDICATE_CODES): Delete invalid_gpr_mem and base_reg_operand.
* config/rs6000/rs6000-protos.h (secondary_reload_class): Update.
* config/rs6000/rs6000.md (movdf_hardfloat64): Remove m->b
alternative and split.
(movdi_internal64): Likewise.
(reload_outdf, reload_indf, reload_outdi, reload_indi): Delete.
Modified:
branches/gcc-3_4-branch/gcc/ChangeLog
branches/gcc-3_4-branch/gcc/config/rs6000/rs6000-protos.h
branches/gcc-3_4-branch/gcc/config/rs6000/rs6000.c
branches/gcc-3_4-branch/gcc/config/rs6000/rs6000.h
branches/gcc-3_4-branch/gcc/config/rs6000/rs6000.md
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21616
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/21616] [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS'
[not found] <bug-21616-10179@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2006-03-01 1:04 ` amodra at gcc dot gnu dot org
@ 2006-03-01 1:06 ` amodra at bigpond dot net dot au
7 siblings, 0 replies; 12+ messages in thread
From: amodra at bigpond dot net dot au @ 2006-03-01 1:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from amodra at bigpond dot net dot au 2006-03-01 01:06 -------
.
--
amodra at bigpond dot net dot au changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21616
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/21616] [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS'
2005-05-17 8:38 [Bug middle-end/21616] New: " raj dot khem at gmail dot com
` (2 preceding siblings ...)
2005-05-21 0:28 ` guptan at hotmail dot com
@ 2005-05-24 20:43 ` guptan at hotmail dot com
3 siblings, 0 replies; 12+ messages in thread
From: guptan at hotmail dot com @ 2005-05-24 20:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From guptan at hotmail dot com 2005-05-24 20:39 -------
Andrew,
I was able to strip the worksround mentioned in
http://gcc.gnu.org/ml/gcc-cvs/2004-03/msg00482.html and apply the patch at PR
target/13674 to avoid this bug.
If its of interest, I can post a patch for gcc-3.4 . I need to do a little bit
of cleanup before that.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21616
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/21616] [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS'
2005-05-17 8:38 [Bug middle-end/21616] New: " raj dot khem at gmail dot com
2005-05-21 0:14 ` [Bug target/21616] [3.4 only] " pinskia at gcc dot gnu dot org
2005-05-21 0:20 ` pinskia at gcc dot gnu dot org
@ 2005-05-21 0:28 ` guptan at hotmail dot com
2005-05-24 20:43 ` guptan at hotmail dot com
3 siblings, 0 replies; 12+ messages in thread
From: guptan at hotmail dot com @ 2005-05-21 0:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From guptan at hotmail dot com 2005-05-21 00:28 -------
Thanks Andrew.
[17:00] <ngupta> pinskia, yes I am trying to get an answer if PR21616 existed on
gcc-4.0 :)
[17:01] <pinskia> it might be worked around by optimizing it better :)
[17:01] <ngupta> I suspect its already fixed in rs6000.md, but dont want to go
over the whole setup thingie
[17:02] <pinskia> let me try it
[17:02] <ngupta> than I rather backport that from gcc-4.0
[17:05] <pinskia> did you try the patch for PR 15286?
[17:07] <ngupta> nope, lemme look
[17:08] <pinskia> oh, that will not help
[17:08] <pinskia> I know which bug this is, it has to do with ld not taking any
old offset but only aligned offsets
[17:08] <pinskia> let me find that patch
[17:08] <-- rosalesa has quit ("Leaving")
[17:13] <ngupta> oh ok, i m waiting
[17:14] --> jk- (~jk@toolbox.otago.ac.nz) has joined #ppc64
[17:14] <pinskia> ngupta: the patch for PR 13674 is the one which really fixed
the problem I think
[17:15] <pinskia> there is a workaround on the 3.4 branch for PR 13674 but it
looks like it does not work for this testcase :(
[17:16] <ngupta> yup, thats what I was abt to try
[17:16] <ngupta> -fnew-ra
[17:17] <pinskia> in fact I think the work around is causing the ICE to show up,
it is trying to use FP register because that is what the work around says to use
[17:19] <ngupta> so back to, could u try gcc-4.0
[17:20] <pinskia> I did and it worked
[17:20] <ngupta> I have started a build with this patch anyway
[17:20] <pinskia> you might need to revert the work around though
[17:20] <ngupta> oh ok, u mean patch for PR13674?
[17:21] <pinskia> the one which is on the 3.4 branch yes
[17:22] <ngupta> ok, got it
[17:22] <ngupta> thx, will update the bug after testing it
[17:24] <pinskia> 2004-03-10 Alan Modra <amodra@bigpond.net.au>
[17:24] <pinskia> Hartmut Penner <hpenner@de.ibm.com>
[17:25] <ngupta> BTW, I will also CC dje/hpenner on this bug.
[17:25] <pinskia> one from http://gcc.gnu.org/ml/gcc-cvs/2004-03/msg00482.html
by the way
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |hpenner at de dot ibm dot
| |com, dje at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21616
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/21616] [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS'
2005-05-17 8:38 [Bug middle-end/21616] New: " raj dot khem at gmail dot com
2005-05-21 0:14 ` [Bug target/21616] [3.4 only] " pinskia at gcc dot gnu dot org
@ 2005-05-21 0:20 ` pinskia at gcc dot gnu dot org
2005-05-21 0:28 ` guptan at hotmail dot com
2005-05-24 20:43 ` guptan at hotmail dot com
3 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-21 0:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-21 00:19 -------
The work around for PR 13674 in the 3.4 branch is trying to use a FP register as that is what the work
around says to do.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21616
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/21616] [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS'
2005-05-17 8:38 [Bug middle-end/21616] New: " raj dot khem at gmail dot com
@ 2005-05-21 0:14 ` pinskia at gcc dot gnu dot org
2005-05-21 0:20 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-21 0:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-21 00:14 -------
This was really fixed on the mainline by:
2005-01-07 David Edelsohn <edelsohn@gnu.org>
PR target/13674
* config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
Convert non-word aligned offset address using ld/std into
indirect address.
There is a work around on the 3.4 branch which looks like it is not working for this case for some
reason.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE: unable to find a |[3.4 only] ICE: unable to
|register to spill in class |find a register to spill in
|`FLOAT_REGS' |class `FLOAT_REGS'
Target Milestone|--- |3.4.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21616
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2006-03-01 1:06 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-21616-10179@http.gcc.gnu.org/bugzilla/>
2005-10-07 4:03 ` [Bug target/21616] [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS' gdr at gcc dot gnu dot org
2006-02-09 19:30 ` dje at gcc dot gnu dot org
2006-02-10 12:16 ` amodra at bigpond dot net dot au
2006-02-28 10:19 ` gdr at gcc dot gnu dot org
2006-02-28 15:27 ` dje at watson dot ibm dot com
2006-02-28 23:59 ` amodra at bigpond dot net dot au
2006-03-01 1:04 ` amodra at gcc dot gnu dot org
2006-03-01 1:06 ` amodra at bigpond dot net dot au
2005-05-17 8:38 [Bug middle-end/21616] New: " raj dot khem at gmail dot com
2005-05-21 0:14 ` [Bug target/21616] [3.4 only] " pinskia at gcc dot gnu dot org
2005-05-21 0:20 ` pinskia at gcc dot gnu dot org
2005-05-21 0:28 ` guptan at hotmail dot com
2005-05-24 20:43 ` guptan at hotmail 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).