-ansi


The C source program is processed in strict compliance with the ANSI standard.

[Specification format]

-ansi

 

-

Interpretation when omitted

Compatibility with the conventional C language specifications is conferred and processing continues after warning is output.

[Detailed description]

-

To process the C source program in strict compliance with the ANSI standardNote, and output an error or warning for a specification that violates the standard.

Note

This is a standard specified by ISO/IE C9899:1990 (C90).
Although CC-RL also accepts some of the specifications added by ISO/IE C9899:1999 (C99), if this option is specified, code in violation of the standard will cause an error.

-

When this option is specified, macro name "__STDC__" is defined as the macro that the value is 1.

-

Processing when compiling in strict adherence to the language specification is as follows.

-

_Bool type

An error will occur.

-

long long type

An error will occur.

-

#line-number

An error will occur.

If this option is not specified, "#line-number" will be handled in the same way as "#line line-number".

-

Type conversion

Type conversion such as the assignment of a function pointer to a void pointer will cause an error.

[Example of use]

-

To process the C source program in strict compliance with the ANSI standard, and output an error or warning for a specification that violates the standard, describe as:

>ccrl -ansi -cpu=S2 -dev=dr5f100pj.dvf main.c