This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A query regarding the implementation of pragmas
- From: Andrew Haley <aph at redhat dot com>
- To: Mohamed Shafi <shafitvm at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 14 Apr 2008 11:52:01 +0100
- Subject: Re: A query regarding the implementation of pragmas
- References: <ba0bd44d0804140311q8c5c2a8v676c8df403ab98dc@mail.gmail.com>
Mohamed Shafi wrote:
> For a function call will i be able to implement long call/short call
> for the same function at different locations?
> Say fun1 calls bar and fun2 calls bar. I want short-call to be
> generated for bar in fun1 and long-call to be generated in fun2.
> Is to possible to implement this in the back-end using pragmas?
I'm not at all sure it's appropriate to do this in gcc at all. Of course
you can do this with a target-specific attribute, but wouldn't this
best be left to the linker?
Andrew.