This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RTL, ColdFire 15/63] Avoid out-of-segment constants on uClinux.
- From: Roger Sayle <roger at eyesopen dot com>
- To: Richard Sandiford <richard at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 10 Jan 2007 21:47:32 -0700 (MST)
- Subject: Re: [RTL, ColdFire 15/63] Avoid out-of-segment constants on uClinux.
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.
Roger
--