[cfe-dev] cc language dialect
hfinkel at anl.gov
Thu May 10 15:25:03 PDT 2012
On Thu, 10 May 2012 18:03:16 -0400
David Chisnall <csdavec at swan.ac.uk> wrote:
> Hello the list,
> When using clang as cc, we are finding that a lot of programs rely on
> the fact that c99 is a c99 compiler, and cc is a c89 compiler.
> Presumably we also don't want c99 to default to c11 when we make
> clang default to c11. I added a little hack to driver.cpp to select
> a default dialect based on the invocation name, but:
> - Is this generally useful (POSIX says people should stop using cc in
> 1997 and it seems to be gone from the latest version of the spec)
I support this change. It will make porting easier if 'cc' (or
anything with that suffix) defaults to c89/c90.
> - If so, is driver.cpp the correct place to do it?
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
Leadership Computing Facility
Argonne National Laboratory
More information about the cfe-dev