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]

Re: m68k-openbsd -fpic fix


>   > What I had in mind is that the pic register is allocated like every other
>   > register, except that it needs something special for initialization.
>   > Don't know how that fits in the current concepts, though.
> That won't work with our current reload pass.  That is the model that a few
> ports have tried to take and in each case we had to dedicate one of the
> general purpose registers to keep reload from generating incorrect code or
> aborting.

We could use a (const (unspec ...)) to initialize the pic register, and
make LEGITIMATE_CONSTANT_P return true for this 'magic' value.

Then reload should be able to handle it just like any old constant.


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