Bogus position independent code(PIC) emitted for ColdFire v4e
Hans-Peter Nilsson
hp@bitrange.com
Thu Dec 12 11:59:00 GMT 2002
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
More information about the Gcc
mailing list