This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: "small data" in m68k gcc?
- From: Gunther Nikl <gni at gecko dot de>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Bernardo Innocenti <bernie at develer dot com>, colin-gcc at horizon dot com, gcc at gcc dot gnu dot org
- Date: Tue, 14 Oct 2003 16:02:14 +0200
- Subject: Re: "small data" in m68k gcc?
- References: <20031012214902.2016.qmail@science.horizon.com> <200310130113.55072.bernie@develer.com> <20031013004640.GA26731@redhat.com>
On Sun, Oct 12, 2003 at 05:46:40PM -0700, Richard Henderson wrote:
> On Mon, Oct 13, 2003 at 01:13:55AM +0200, Bernardo Innocenti wrote:
> > There's currently no distinction between -fpic and -fPIC in the
> > m68k back-end.
>
> Sure there is. The former generates 16-bit offsets from pic register,
> the later generates 32-bit offsets. Which is why -fPIC isn't available
> on ColdFire.
Wouldn't it be possible to load the offset into a register and use that
one to index into the pic table?
Gunther