* [Bug target/19528] [4.0 regression] missing ra.h
2005-01-19 9:52 [Bug target/19528] New: [4.0 regression] missing ra.h corsepiu at gcc dot gnu dot org
@ 2005-01-19 12:22 ` steven at gcc dot gnu dot org
2005-01-19 12:26 ` steven at gcc dot gnu dot org
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-01-19 12:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2005-01-19 12:21 -------
I am not even going to try and look surprised, the SH port is a major
abuser of the middle-end. But of course, hard_regs_intersect_p should
have been in hard-reg-set.h from the start, *sigh*, mess-meets-mess.
Try this:
Index: hard-reg-set.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/hard-reg-set.h,v
retrieving revision 1.25
diff -u -3 -p -r1.25 hard-reg-set.h
--- hard-reg-set.h 15 Jan 2005 16:06:14 -0000 1.25
+++ hard-reg-set.h 19 Jan 2005 12:21:01 -0000
@@ -499,4 +499,19 @@ extern const char * reg_class_names[];
#define REG_CANNOT_CHANGE_MODE_P(REGN, FROM, TO) \
CANNOT_CHANGE_MODE_CLASS (FROM, TO, REGNO_REG_CLASS (REGN))
+/* Determine if two hard register sets intersect.
+ Return 1 if they do. */
+
+static inline bool
+hard_regs_intersect_p (HARD_REG_SET *a, HARD_REG_SET *b)
+{
+ HARD_REG_SET c;
+ COPY_HARD_REG_SET (c, *a);
+ AND_HARD_REG_SET (c, *b);
+ GO_IF_HARD_REG_SUBSET (c, reg_class_contents[(int) NO_REGS], lose);
+ return 1;
+lose:
+ return 0;
+}
+
#endif /* ! GCC_HARD_REG_SET_H */
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19528
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/19528] [4.0 regression] missing ra.h
2005-01-19 9:52 [Bug target/19528] New: [4.0 regression] missing ra.h corsepiu at gcc dot gnu dot org
2005-01-19 12:22 ` [Bug target/19528] " steven at gcc dot gnu dot org
@ 2005-01-19 12:26 ` steven at gcc dot gnu dot org
2005-01-19 12:55 ` paolo dot bonzini at lu dot unisi dot ch
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-01-19 12:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2005-01-19 12:26 -------
...and remove the #include "ra.h" of course.
Paolo, you should also update doc/passes.texi, which also still
has references to new-ra.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |bonzini at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-01-19 12:26:17
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19528
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/19528] [4.0 regression] missing ra.h
2005-01-19 9:52 [Bug target/19528] New: [4.0 regression] missing ra.h corsepiu at gcc dot gnu dot org
2005-01-19 12:22 ` [Bug target/19528] " steven at gcc dot gnu dot org
2005-01-19 12:26 ` steven at gcc dot gnu dot org
@ 2005-01-19 12:55 ` paolo dot bonzini at lu dot unisi dot ch
2005-01-19 13:27 ` bonzini at gcc dot gnu dot org
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: paolo dot bonzini at lu dot unisi dot ch @ 2005-01-19 12:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From paolo dot bonzini at lu dot unisi dot ch 2005-01-19 12:55 -------
Subject: Re: [4.0 regression] missing ra.h
steven at gcc dot gnu dot org wrote:
> ------- Additional Comments From steven at gcc dot gnu dot org 2005-01-19 12:26 -------
> ...and remove the #include "ra.h" of course.
Doh. I'm sorry for the breakage, but why the heck does the SH back-end
have to include it?
Why does the SH back-end have to behave different from every other one?^A^K
Paolo
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19528
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/19528] [4.0 regression] missing ra.h
2005-01-19 9:52 [Bug target/19528] New: [4.0 regression] missing ra.h corsepiu at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-01-19 12:55 ` paolo dot bonzini at lu dot unisi dot ch
@ 2005-01-19 13:27 ` bonzini at gcc dot gnu dot org
2005-01-19 13:47 ` bonzini at gcc dot gnu dot org
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2005-01-19 13:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bonzini at gcc dot gnu dot org 2005-01-19 13:27 -------
I've fixed the doc/passes.texi (commit in progress).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19528
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/19528] [4.0 regression] missing ra.h
2005-01-19 9:52 [Bug target/19528] New: [4.0 regression] missing ra.h corsepiu at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-01-19 13:27 ` bonzini at gcc dot gnu dot org
@ 2005-01-19 13:47 ` bonzini at gcc dot gnu dot org
2005-01-19 13:48 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2005-01-19 13:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bonzini at gcc dot gnu dot org 2005-01-19 13:47 -------
Steven, building cc1 to sh-unknown-elf with your patch succeeded.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19528
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/19528] [4.0 regression] missing ra.h
2005-01-19 9:52 [Bug target/19528] New: [4.0 regression] missing ra.h corsepiu at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-01-19 13:47 ` bonzini at gcc dot gnu dot org
@ 2005-01-19 13:48 ` pinskia at gcc dot gnu dot org
2005-01-19 14:03 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-19 13:48 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |build
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19528
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/19528] [4.0 regression] missing ra.h
2005-01-19 9:52 [Bug target/19528] New: [4.0 regression] missing ra.h corsepiu at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-01-19 13:48 ` pinskia at gcc dot gnu dot org
@ 2005-01-19 14:03 ` pinskia at gcc dot gnu dot org
2005-01-19 16:35 ` corsepiu at gcc dot gnu dot org
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-19 14:03 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19528
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/19528] [4.0 regression] missing ra.h
2005-01-19 9:52 [Bug target/19528] New: [4.0 regression] missing ra.h corsepiu at gcc dot gnu dot org
` (6 preceding siblings ...)
2005-01-19 14:03 ` pinskia at gcc dot gnu dot org
@ 2005-01-19 16:35 ` corsepiu at gcc dot gnu dot org
2005-01-19 19:00 ` steven at gcc dot gnu dot org
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: corsepiu at gcc dot gnu dot org @ 2005-01-19 16:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From corsepiu at gcc dot gnu dot org 2005-01-19 16:35 -------
(In reply to comment #5)
> Steven, building cc1 to sh-unknown-elf with your patch succeeded.
Building sh-rtems4.7 with Steven's patch also succeeds.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19528
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/19528] [4.0 regression] missing ra.h
2005-01-19 9:52 [Bug target/19528] New: [4.0 regression] missing ra.h corsepiu at gcc dot gnu dot org
` (7 preceding siblings ...)
2005-01-19 16:35 ` corsepiu at gcc dot gnu dot org
@ 2005-01-19 19:00 ` steven at gcc dot gnu dot org
2005-01-21 17:34 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-01-19 19:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2005-01-19 18:59 -------
Good. Ralf, can you post it?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19528
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/19528] [4.0 regression] missing ra.h
2005-01-19 9:52 [Bug target/19528] New: [4.0 regression] missing ra.h corsepiu at gcc dot gnu dot org
` (8 preceding siblings ...)
2005-01-19 19:00 ` steven at gcc dot gnu dot org
@ 2005-01-21 17:34 ` mmitchel at gcc dot gnu dot org
2005-01-22 12:20 ` steven at gcc dot gnu dot org
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-01-21 17:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-01-21 17:33 -------
SH is not a primary or secondary platform; removing target milestone.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19528
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/19528] [4.0 regression] missing ra.h
2005-01-19 9:52 [Bug target/19528] New: [4.0 regression] missing ra.h corsepiu at gcc dot gnu dot org
` (9 preceding siblings ...)
2005-01-21 17:34 ` mmitchel at gcc dot gnu dot org
@ 2005-01-22 12:20 ` steven at gcc dot gnu dot org
2005-01-22 12:57 ` joel at gcc dot gnu dot org
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-01-22 12:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2005-01-22 12:19 -------
Mark, while you're using your RM powers to move the target milestone on
this one, could you also please use your GWP powers to approve the simple
patch http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01258.html that fixes
this bug?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19528
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/19528] [4.0 regression] missing ra.h
2005-01-19 9:52 [Bug target/19528] New: [4.0 regression] missing ra.h corsepiu at gcc dot gnu dot org
` (10 preceding siblings ...)
2005-01-22 12:20 ` steven at gcc dot gnu dot org
@ 2005-01-22 12:57 ` joel at gcc dot gnu dot org
2005-01-22 19:43 ` mark at codesourcery dot com
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: joel at gcc dot gnu dot org @ 2005-01-22 12:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From joel at gcc dot gnu dot org 2005-01-22 12:57 -------
(In reply to comment #10)
> Mark, while you're using your RM powers to move the target milestone on
> this one, could you also please use your GWP powers to approve the simple
> patch http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01258.html that fixes
> this bug?
>
I can confirm that sh-rtems builds with this patch and won't without it.
The resulting compiler will also build RTEMS.
No sh target builds without this fix so I am also politely asking this to
be committed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19528
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/19528] [4.0 regression] missing ra.h
2005-01-19 9:52 [Bug target/19528] New: [4.0 regression] missing ra.h corsepiu at gcc dot gnu dot org
` (11 preceding siblings ...)
2005-01-22 12:57 ` joel at gcc dot gnu dot org
@ 2005-01-22 19:43 ` mark at codesourcery dot com
2005-01-24 16:22 ` pinskia at gcc dot gnu dot org
2005-04-20 2:03 ` pinskia at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: mark at codesourcery dot com @ 2005-01-22 19:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mark at codesourcery dot com 2005-01-22 19:43 -------
Subject: Re: [4.0 regression] missing ra.h
joel at gcc dot gnu dot org wrote:
> ------- Additional Comments From joel at gcc dot gnu dot org 2005-01-22 12:57 -------
> (In reply to comment #10)
>
>>Mark, while you're using your RM powers to move the target milestone on
>>this one, could you also please use your GWP powers to approve the simple
>>patch http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01258.html that fixes
>>this bug?
>>
>
>
> I can confirm that sh-rtems builds with this patch and won't without it.
> The resulting compiler will also build RTEMS.
>
> No sh target builds without this fix so I am also politely asking this to
> be committed.
The patch should says "Returns true" rather than "Returns 1" in the
comment; OK with that change.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19528
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/19528] [4.0 regression] missing ra.h
2005-01-19 9:52 [Bug target/19528] New: [4.0 regression] missing ra.h corsepiu at gcc dot gnu dot org
` (12 preceding siblings ...)
2005-01-22 19:43 ` mark at codesourcery dot com
@ 2005-01-24 16:22 ` pinskia at gcc dot gnu dot org
2005-04-20 2:03 ` pinskia at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-24 16:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-24 16:21 -------
Fixed by:
2005-01-24 J"orn Rennecke <joern.rennecke@st.com>
* sh.c (ra.h): Don't #include.
(hard_regs_intersect_p): New function, resurrected from ra.c.
* sh.c: Fix 1996 Copyright.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19528
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/19528] [4.0 regression] missing ra.h
2005-01-19 9:52 [Bug target/19528] New: [4.0 regression] missing ra.h corsepiu at gcc dot gnu dot org
` (13 preceding siblings ...)
2005-01-24 16:22 ` pinskia at gcc dot gnu dot org
@ 2005-04-20 2:03 ` pinskia at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-20 2:03 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19528
^ permalink raw reply [flat|nested] 16+ messages in thread