will do that :
for my own reference :
-fomit-frame-pointer
Don't keep the frame pointer in a register for functions that don't need one. This avoids the instructions to save, set up and restore frame pointers; it also makes an extra register available in many functions. It also makes debugging impossible on some machines.
On some machines, such as the VAX, this flag has no effect, because the standard calling sequence automatically handles the frame pointer and nothing is saved by pretending it doesn't exist. The machine-description macro FRAME_POINTER_REQUIRED controls whether a target machine supports this flag. See Register Usage.
Enabled at levels -O, -O2, -O3, -Os.
Hi,
I reference Chape 5 of "Arm system Developer's Guide: Designing and Optimizing system software" book.
This book mention this option.
Then, I trace arm-elf-gcc between within -fomit-frame-pointer and without -fomit-frame-pointer.
Producing asm for arm within -fomit-frame-pointer option is more clear than without -fomit-frame-pointer option.
but I never check this option for MINGW what has any effect.