[m68k] PIC fixes
Paul Brook
paul@codesourcery.com
Tue Dec 20 21:43:00 GMT 2005
This is a followup for a patch originally posted by Dan some time ago, with
the two changes requested by Bernardo.
http://gcc.gnu.org/ml/gcc-patches/2005-04/msg01281.html
This is a regression where gcc tries to generate bsr.l for pic code on targets
that don't support bsr.l.
There was some discussion about whether -fpic should use bsr.w. IIUC the
conclusion was that even though text/data are <64k, the GOT may still be a
long way from .text. If people want a really-small model it should be
implemented as a separate option.
Tested on m68k-elf/-m5200
Ok for mainline and 4.x?
Paul
2005-12-20 Daniel Jacobowitz <dan@codesourcery.com>
Paul Brook <paul@codesourcery.com>
* config/m68k/m68k.c (m68k_output_pic_call): Don't use bsr.l for
!TARGET_68020.
* config/m68k/t-m68kelf (EXTRA_PARTS): Remove.
(EXTRA_MULTILIB_PARTS): Set.
* config/m68k/t-uclinux (EXTRA_PARTS): Remove.
(EXTRA_MULTILIB_PARTS): Set.
More information about the Gcc-patches
mailing list