UPCONV | NOUPCONV (C only)
Category
Portability and migration
Pragma equivalent
#pragma options(upconv) (C only), #pragma options(noupconv) (C only)
Purpose
Specifies whether the unsigned
specification is preserved
when integral promotions are performed.
Syntax
Defaults
NOUPCONV
Note: The cc compiler invocation
command for a regular compile in the z/OS® UNIX System Services environment
uses UPCONV as the default option.
Usage
The UPCONV option causes the z/OS XL C compiler to follow unsignedness
preserving rules when doing C type conversions; that is, when widening
all integral types (char, short, int, long
). Use this option
when compiling older C programs that depend on the K&R
C conversion rules.
Note: This document uses the term K&R
C to refer to the C language plus the generally accepted extensions
produced by Brian Kernighan and Dennis Ritchie that were in use prior
to the ISO standardization of C.
Whenever the UPCONV compiler option is in effect, the usage status of the UPCONV option is inserted in the object file to aid you in diagnosing a problem with your program.
Predefined macros
None.