errno_name

Tells the optimizer how to find the errno identifier.

Syntax
#pragma errno_name id | ...
  
Remarks

When this pragma is used, the optimizer can use the identifier errno (either a macro or a function call) to optimize standard C library functions better. If not used, the optimizer makes worst-case assumptions about the effects of calls to the standard C library.

Note: The MSL C library already includes a use of this pragma, so you would only need to use it for third-party C libraries.

If errno resolves to a variable name, specify it like this:

#pragma errno_name _Errno

If errno is a function call accessing ordinarily inaccessible global variables, use this form:

#pragma errno_name ...

Otherwise, do not use this pragma to prevent incorrect optimizations.

This pragma does not correspond to any panel setting. By default, this pragma is unspecified (worst case assumption).

Related information
aggressive_inline
dont_reuse_strings
enumsalwaysint
enums_signed
explicit_zero_data
float_constants
instmgr_file
longlong
longlong_enums
min_enum_size
pool_strings
readonly_strings
reverse_bitfields
store_object_files