tech-kern archive

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

Re: gcc: optimizations, and stack traces



Le 18/02/2018 à 21:37, Maxime Villard a écrit :
Le 11/02/2018 à 12:04, Krister Walfridsson a écrit :
On Sun, Feb 11, 2018 at 9:11 AM, Maxime Villard <max%m00nbsd.net@localhost> wrote:
[...] we need to find a way
to tell GCC to always push the frame at the beginning of the functions.

This is done by passing the -fno-shrink-wrap flag to GCC.

    /Krister

Sorry for the delay; I tested a week ago with -fno-shrink-wrap and it didn't
change anything. I'll retry properly soon.

I re-tested properly, and indeed it works. I could verify that the frame is
always pushed at the very beginning of the functions.

Many of our ASM functions don't push frames, but that's a different issue.

Thanks for the info,
Maxime


Home | Main Index | Thread Index | Old Index