This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: m68k-openbsd -fpic fix
- To: law at cygnus dot com
- Subject: Re: m68k-openbsd -fpic fix
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Mon, 5 Jul 1999 21:30:16 +0100 (BST)
- Cc: schwab at suse dot de, rth at cygnus dot com, espie at quatramaran dot ens dot fr, egcs at egcs dot cygnus dot com, egcs-patches at egcs dot cygnus dot com
> > 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.