This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: A query regarding the implementation of pragmas


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]