This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bogus position independent code(PIC) emitted for ColdFire v4e


On Fri, 6 Dec 2002, Richard Henderson wrote:

> On Fri, Dec 06, 2002 at 12:46:19PM -0500, Peter Barada wrote:
> > Should I use ENCODE_SECTION_INFO for m68k/ColdFire, or bite the bullet
> > and go the UNSPEC route?
>
> I think you're better off going the UNSPEC route.

Any particular reason?

I chose the ENCODE_SECTION_INFO route for CRIS, because in a
perfect GCC, going that route would supposedly enable GCC to
optimize symbol references (for example, combining foo and
foo+N).  (Context: the UNSPEC route forbids GCC from looking
through the UNSPEC.)

Right, I *also* use (CONST) UNSPEC, for references that should
go through PLT, expanded at call and call_value.  No harm done
since function references are supposedly not combinable.

brgds, H-P


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]