Re: DEFAULT_CALLER_SAVES doesn't work on the mac

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

 



"Muhammed Fawzy" <mfawzymkh@xxxxxxxxxxx> writes:

>    I am trying to force GCC to save ALL registers before functions
> calls. I am running GCC 4.0.1 on MAC OS X leopard.
> I am trying to achieve this by defining DEFAULT_CALLER_SAVES as well
> as compiling with -fcaller-saves.  however, disassemble of a simple
> helloworld program that calls functions a from main doesn't show any
> difference.
> is there any special thing needed to force gcc to save all registers ?

-fcaller-saves is the default when optimizing.

Try using -fcall-used-REG for all your registers.

Ian

[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