This is the mail archive of the gcc@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]

Re: -std's (was Re: v3 link failures analyzed)


"Joseph S. Myers" <jsm28@cam.ac.uk> writes:

| On 10 Jan 2001, Gabriel Dos Reis wrote:
| 
| > When you just want to compile a program with the most recent
| > standard without having to keep that of xxx:yyyy.  We shouldn't get
| > more pendatic than necessary.  It is a practical matter.
| 
| If changing a Makefile once a decade is felt to be undue effort for this,
| then perhaps the option should be -std=iso9899 (for C - at present meaning
| iso9899:199409 until C99 support is complete) and -std=iso14882 (for C++)
| without qualifying dates?

The matter isn't changing makefiles a decade.  It is about providing
user-friendly and intuitive flags reflecting existing practices.  It
is about providing a non-obscure flag reflecting the most stringent
compliance to the most recent standard in use.  I don't find it
reasonable to require user to recall the exact spelling.  And I don't
find it unreasonable to provide a flag select the most recent standard.
Isn't it easier to teach that -iso selects both the most recent
standards for C or C++ instead of insisting on different numbers?

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com

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