c/preprocessor/impl

Implementation defined behavior is controlled by directive.

Syntax
@1@ Behaves in an implementation-defined manner (unless is one of the standard pragmas shown below). @2@ Removes the encoding prefix (if any), the outer quotes, and leading/trailing whitespace from, replaces each with  and each  with , then tokenizes the result (as in translation stage 3), and then uses the result as if the input to  in.

Explanation
The pragma directive controls implementation-specific behavior of the compiler, such as disabling compiler warnings or changing alignment requirements. Any pragma that is not recognized is ignored.

Standard pragmas
The following three pragmas are defined by the language standard:

where is either  or  or.

@1@ If set to, informs the compiler that the program will access or modify floating-point environment, which means that optimizations that could subvert flag tests and mode changes (e.g., global common subexpression elimination, code motion, and constant folding) are prohibited. The default value is implementation-defined, usually.

@2@ Allows contracting of floating-point expressions, that is optimizations that omit rounding errors and floating-point exceptions that would be observed if the expression was evaluated exactly as written. For example, allows the implementation of with a single fused multiply-add CPU instruction. The default value is implementation-defined, usually.

@3@ Informs the compiler that multiplication, division, and absolute value of complex numbers may use simplified mathematical formulas $(x+iy)×(u+iv) = (xu-yv)+i(yu+xv)$, $(x+iy)/(u+iv) = [(xu+yv)+i(yu-xv)]/(u2 +v2 )$, and $|x+iy| =$, despite the possibility of intermediate overflow. In other words, the programmer guarantees that the range of the values that will be passed to those function is limited. The default value is

Note: compilers that do not support these pragmas may provide equivalent compile-time options, such as gcc's and.