[cfe-dev] cc language dialect
alex.caudill at gmail.com
Thu May 10 16:00:03 PDT 2012
On Thu, May 10, 2012 at 5:25 PM, Hal Finkel <hfinkel at anl.gov> wrote:
> 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.
I vote for it as well. I believe this is a source of problems on Solaris.
> > - If so, is driver.cpp the correct place to do it?
> > David
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> Hal Finkel
> Postdoctoral Appointee
> Leadership Computing Facility
> Argonne National Laboratory
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
More information about the cfe-dev