This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to use -fomit-frame-pointer for one file only

Hello,

I am trying to remove the use of the frame pointers for bootloader_util.c because I am getting the error : "r7 cannot be used in asm here", but I only know how to remove the frame pointers to all files by using -fomit-frame-pointer in CFLAGS. How do I make only one single file omit the frame pointers?

Thank you very much for your help!

Related