This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3385: -std=foo doesn't work with C++
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Subject: Re: c++/3385: -std=foo doesn't work with C++
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Sat, 23 Jun 2001 10:26:59 +0100
- Cc: Daniel Elstner <daniel dot elstner at gmx dot net>, gcc-bugs at gcc dot gnu dot org
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.