This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] MIPS: Optimize virtual thunks for LOADGP_ABSOLUTE case.
- From: Richard Sandiford <richard at codesourcery dot com>
- To: David Daney <ddaney at avtrex dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 01 Jun 2007 08:20:39 +0100
- Subject: Re: [Patch] MIPS: Optimize virtual thunks for LOADGP_ABSOLUTE case.
- References: <465FA4CB.4060908@avtrex.com>
David Daney <ddaney@avtrex.com> writes:
> In my hacking around I noticed that the mips port is emitting useless
> code in virtual thunks when the -mno-shared option is specified (the
> default for non -fPIC code in the o32 ABI).
Good catch.
> 2007-05-31 David Daney <ddaney@avtrex.com>
>
> * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
> LOADGP_ABSOLUTE.
OK, thanks.
Richard