This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: specs file modification to default gcc or g++ to current standard


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


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