[RTL, ColdFire 15/63] Avoid out-of-segment constants on uClinux.

Jeffrey Law law@redhat.com
Thu Jan 11 17:16:00 GMT 2007


On Wed, 2007-01-10 at 21:47 -0700, Roger Sayle wrote:
> Hi Richard,
> 
> On Wed, 10 Jan 2007, Richard Sandiford wrote:
> >
> > gcc/
> > 	* Makefile.in (rtlanal.o): Depend on tree.h.
> > 	* rtl.h (offset_within_section_p, split_const): Declare.
> > 	* rtlanal.c: Include tree.h.
> > 	(offset_within_block_p): New function, taken from
> > 	mips_offset_within_object_p.
> > 	(split_const): New function, taken from mips_split_const.
> 
> The middle-end infrastructure bits of this patch are OK for mainline.
> The relevant functions look reasonable to share in the rtlanal.c
> rather than duplicate in each backend.
Agreed.  There may be other ports that can use this infrastructure
as well.  The mn103 has some similar segmentation issues as does
the PA.

Jeff




More information about the Gcc-patches mailing list