This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC][PATCH][X86_64] Eliminate PLT stubs for specified external functions via -fno-plt=
- From: Michael Matz <matz at suse dot de>
- To: Xinliang David Li <davidxl at google dot com>
- Cc: Sriraman Tallam <tmsriram at google dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, "H.J. Lu" <hjl dot tools at gmail dot com>
- Date: Mon, 4 May 2015 18:58:52 +0200 (CEST)
- Subject: Re: [RFC][PATCH][X86_64] Eliminate PLT stubs for specified external functions via -fno-plt=
- Authentication-results: sourceware.org; auth=none
- References: <CAAs8HmxC4KQSc5EWiux7syOj8+ghs_LY8zY-D4-Wjp+ZhHiDuw at mail dot gmail dot com> <alpine dot LSU dot 2 dot 11 dot 1505041613320 dot 21748 at wotan dot suse dot de> <CAAkRFZJtMA1==WiQ9j0hXUKemSW+Y1wbSFSZF8tiBkRhPnVJBw at mail dot gmail dot com>
Hi,
On Mon, 4 May 2015, Xinliang David Li wrote:
> The use case proposed by Sri allows user to selectively eliminate PLT
> overhead for hot external calls only.
Yes, but only _because_ his approach doesn't use lazy binding. With the
full solution such restriction to a subset of functions isn't necessary.
And we should strive for going the full way, instead of adding hacks,
shouldn't we?
Ciao,
Michael.