Re: Disable calling convention optimization for local functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks, Florian, __attribute__ ((used)) works.

Satyam


On Sun, Nov 12, 2017 at 12:34 AM, Florian Weimer <fw@xxxxxxxxxxxxx> wrote:

> * 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux