You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pragma allows you to set global optimization options for functions defined later in the source file. One or more strings can be specified. Each function that is defined after this point is treated as if it had been declared with one optimize(string) attribute for each string argument.
The optimize attribute is used to specify that a function is to be compiled with different optimization options than specified on the command line.
So the attribute or pragma does override the command line?
For example, when using -O3 on the command line, the fmt code will be compiled using only the Og optimization level.
Or did I misunderstand the GCC documentation?
The text was updated successfully, but these errors were encountered:
Commit: 243d8be
https://gcc.gnu.org/onlinedocs/gcc-9.1.0/gcc/Function-Specific-Option-Pragmas.html:
https://gcc.gnu.org/onlinedocs/gcc-9.1.0/gcc/Common-Function-Attributes.html:
So the attribute or pragma does override the command line?
For example, when using -O3 on the command line, the fmt code will be compiled using only the Og optimization level.
Or did I misunderstand the GCC documentation?
The text was updated successfully, but these errors were encountered: