Force ret to be at the end of a function

Wei Qin weiqin@gmail.com
Fri Apr 6 02:48:00 GMT 2007


Hello,

I notice that gcc sometimes places the "ret" instruction in the middle
of a function, or sometimes emits multiple "ret" instructions for a
function. For some reason, I wish that my gcc emits only one  "ret" at
the end of a function. Is there a gcc switch to force that without
disabling optimization?

Thank you,

Weiqin



More information about the Gcc-help mailing list