This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bogus position independent code(PIC) emitted for ColdFire v4e
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Peter Barada <pbarada at mail dot wm dot sps dot mot dot com>, <gcc at gcc dot gnu dot org>, <Peter dot Barada at motorola dot com>, <peter at baradas dot org>
- Date: Thu, 12 Dec 2002 14:28:06 -0500 (EST)
- Subject: Re: Bogus position independent code(PIC) emitted for ColdFire v4e
On Wed, 11 Dec 2002, Richard Henderson wrote:
> On Thu, Dec 12, 2002 at 01:33:50AM -0500, Hans-Peter Nilsson wrote:
> > > I think you're better off going the UNSPEC route.
> >
> > Any particular reason?
>
> First, because there's a clear distinction between
>
> static int *x = &foo;
> and
> auto int *x = &foo;
>
> in that the first /must/ be a direct relocation vs foo,
> and the second oughtn't be in pic mode.
FWIW, I don't recall there being a problem with that, going the
ENCODE_SECTION_INFO route.
brgds, H-P