This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR 16373: -fomit-frame-pointer when optimizing on x86
There are other systems than GNU/Linux, you know.
Yes. But for x86, which is being discussed, about all OSes are smart
enough to optimize read-only sections.
-fasynchronous-unwind-tables should be a no-no for -Os.
This makes sense only to some extent unfortunately. Very often if you
care about code size you also try to do -fno-rtti -fno-exceptions if
possible, and in that case -fasynchronous-unwind-tables is a necessity.
On the other hand, you often use -Os on a "smart OS" with powerful
enough memory management, and in that case -fomit-frame-pointer
-fasynchronous-unwind-tables is a better choice.
Paolo