Some options ignore trailing chars, like -ansi{any chars}

Frederick W. Wheeler wheeler@cipr.rpi.edu
Tue Mar 9 06:38:00 GMT 1999


This might be a bug in how gcc parses the options, or it might be a
bug in the documentation, or it might be so unimportant that nobody
really cares.

It seems that gcc accepts some options given with extra trailing
strings, but not others.  For example, gcc has the documented options
`-ansi' and `-trigraphs'.  Gcc accepts the option `-ansix', but not
`-trigraphsx'.  The extra `x' can apparently be any string, `-ansifoo'
is accepted also.

% gcc --version
egcs-2.91.60
% uname -a
SunOS seurat 5.6 Generic_105181-03 sun4u sparc

Thanks for providing such an outstanding compiler.

Regards,
Fred Wheeler

--
Fred Wheeler
wheeler@cipr.rpi.edu
www.cipr.rpi.edu/wheeler


More information about the Gcc-bugs mailing list