This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: specs file modification to default gcc or g++ to current standard
- From: Ian Lance Taylor <iant at google dot com>
- To: Sidney Marshall <sidneym at frontiernet dot net>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Wed, 13 Nov 2013 07:01:14 -0800
- Subject: Re: specs file modification to default gcc or g++ to current standard
- Authentication-results: sourceware.org; auth=none
- References: <5282fe63 dot 0201430a dot 39cf dot ffffc7a4SMTPIN_ADDED_MISSING at mx dot google dot com>
On Tue, Nov 12, 2013 at 8:21 PM, Sidney Marshall
<sidneym@frontiernet.net> wrote:
> I would like to have gcc or g++ default to the current standard for 4.8.2.
> The compiler option -dumpspecs gives (in part):
>
> *cc1:
> *cc1_options:
> *cc1plus:
> The cc1plus is empty so I added:
>
> %{!std*:-std=c++11}
>
> and this seems to work for g++ but I am confused as to which cc1 entry to
> modify and where to modify it. Which cc1 entry should I modify and where
> should I modify it?
It doesn't really matter, because cc1 doesn't care what order options
appear in. Either one should work.
> Also, out of curiosity - when will the -std=c++11 be the default?
Never. But you probably mean to ask when -std=gnu++11 will be the
default. I don't know the answer to that, sorry.
Ian