This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add new hooks ASM_OUTPUT_START_FUNCTION_HEADER ...
- From: Trevor Saunders <tbsaunde at tbsaunde dot org>
- To: gcc-patches at gcc dot gnu dot org, Andreas Krebbel <krebbel at linux dot vnet dot ibm dot com>, Ulrich Weigand <Ulrich dot Weigand at de dot ibm dot com>
- Date: Mon, 21 Sep 2015 20:24:41 -0400
- Subject: Re: [PATCH] Add new hooks ASM_OUTPUT_START_FUNCTION_HEADER ...
- Authentication-results: sourceware.org; auth=none
- References: <20150921113158 dot GA30365 at linux dot vnet dot ibm dot com>
On Mon, Sep 21, 2015 at 12:31:58PM +0100, Dominik Vogt wrote:
> This patch adds to new backend hooks
> ASM_OUTPUT_START_FUNCTION_HEADER and
> ASM_OUTPUT_END_FUNCTION_FOOTER that may be defined to emit
> assembly code at the very start or end of a function. This
> functionality is needed by the patch that ports the "target"
> attribute and pragma to S/390. (I'll post that patch shortly, and
> in a different thread.)
obligatory question, why are we adding new target macros instead of
using hooks? Especially in a place like this where the caller is very
unlikely to be at all hot.
thanks!
Trev