This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]