https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70255
--- Comment #18 from shatz at dsit dot co.il --- (In reply to Manuel López-Ibáñez from comment #15) > (In reply to shatz from comment #14) > > It is not documented that __attribute__((optimize(""))) works reliably when > > Unfortunately, you should not expect the optimize attribute to work > reliably: https://gcc.gnu.org/wiki/FAQ#optimize_attribute_broken Regular users like me don't read this page and probable can't be realistically expected to read it. So, if the situation is really as bad as mentioned there, it should be mentioned in the places that users do read. Like these: https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gcc/Function-Attributes.html#Function-Attributes https://gcc.gnu.org/onlinedocs/gcc-6.1.0/gcc/Common-Function-Attributes.html#Common-Function-Attributes