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]

Re: c++/3385: -std=foo doesn't work with C++


Joseph S. Myers wrote:-

> Presumably your specs reorganisation can make all the -std options, and
> -ansi, alias down to the few values cc1/cc1plus/cpplib need to know about,
> including having -ansi become -std=c89 when compiling C and -std=c++98
> when compiling C++ (possibly both on the same driver command line)?

At present, they override each other - whichever comes last wins.  The
driver automatically knows which are valid, and would give an
appropriate error about invalid ones before the front ends saw them.
At present, I'm not aliasing them, so the last one on the command line
would be passed through to the front ends verbatim, but that can be
easily changed.

I really must post something about what I've done on this.  There's a
small chance I might do it this weekend.

Neil.


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