Richard Tobin said:
There isn't an "ANSI variant". ANSI standardised C in 1989. ISO
adopted that definition in 1990. ISO produced another standard in
1999, which (apparently) ANSI adopted in 2000. So ANSI C is the same
as ISO C, and the versions can be referred to as C89 and C00 or C90
and C99 depending on which standards body you prefer.
Sorry, not what I meant as a question [my fault], it was more what
-ansi *means* as a gcc switch.
OT here of course, but for completeness - here's what the manual says...
The original ANSI C standard (X3.159-1989) was ratified in 1989 and
published in 1990.
This standard was ratified as an ISO standard (ISO/IEC 9899:1990) later
in 1990. There
were no technical differences between these publications, although the
sections of the ANSI
standard were renumbered and became clauses in the ISO standard. This
standard, in
both its forms, is commonly known as C89, or occasionally as C90, from
the dates of
ratification. The ANSI standard, but not the ISO standard, also came
with a Rationale
document. To select this standard in GCC, use one of the options
'-ansi', '-std=c89' or
'-std=iso9899:1990';