MIPS constant tweaks, add -fsection-anchor support
Richard Sandiford
richard@codesourcery.com
Thu Mar 16 20:32:00 GMT 2006
Richard Sandiford <richard@codesourcery.com> writes:
> The patch also adds section anchor support. This probably needs a bit more
> tuning for MIPS16 and TARGET_ABICALLS[*]. [...]
>
> [*] in the latter case because of the two-instruction access sequence
> for local symbols. It would probably be better to use %got_disp
> for anchor symbols if TARGET_NEWABI.
It actually turned out a bit better than I thought. Attached are some
CSiBE comparisons for the three mips64-linux-gnu ABIs, all compiled
with -Os. The first column is -fno-section-anchors and the second
is -fsection-anchors, both produced from a patched compiler.
The patch has now been bootstrapped & regression-tested on mips64-linux-gnu,
which showed up that:
> * config/mips/mips.h: Protect externs with !IN_LIBGCC.
...this was wrong for objc: it should have been USED_FOR_TARGET instead.
There were no objections to the patch, so I applied it with that change.
Richard
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: csibe-32.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060316/020113e8/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: csibe-n32.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060316/020113e8/attachment-0001.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: csibe-64.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060316/020113e8/attachment-0002.txt>
More information about the Gcc-patches
mailing list