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]

Disable specific function call optimization


Hello,

(I'm working on 32-bit arm in case it matters.)

There's an obvious optimization, when a function ends with
a function call, to issue a jump instead of a call.

Thus, upon return from the leaf function, we avoid a return
instruction. My problem is that this optimization breaks
tools that print function back traces :-)

I would guess the optimization is enabled by -foptimize-sibling-calls
So -fno-optimize-sibling-calls would disable it?

Regards.


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