This is the mail archive of the gcc-help@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: Disable calling convention optimization for local functions


* Satyam Sharma:

> Note, I tried specifying __attribute__((cdecl)) for the local static
> function (whose calling convention I wish to prevent from getting
> optimized), but the optimization still happens.

You could try __attribute__ ((used)).  This is supposed to tell the
compiler that the function is referenced in ways it cannot detect, and
it should inhibit calling convention optimizations due to this.


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