This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[m68k] PIC fixes
- From: Paul Brook <paul at codesourcery dot com>
- To: Undisclosed.Recipients: ;
- Cc: gcc-patches at gcc dot gnu dot org, Bernardo Innocenti <bernie at develer dot com>
- Date: Tue, 20 Dec 2005 21:43:14 +0000
- Subject: [m68k] PIC fixes
- References: <20050412145347.GA26669@nevyn.them.org>
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.