public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* specs file modification to default gcc or g++ to current  standard
@ 2013-11-13  4:20 Sidney Marshall
  0 siblings, 0 replies; 3+ messages in thread
From: Sidney Marshall @ 2013-11-13  4:20 UTC (permalink / raw)
  To: gcc-help; +Cc: sidneym

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:
%{!mandroid|tno-android-cc:%(cc1_cpu) %{profile:-p};:%(cc1_cpu) 
%{profile:-p} %{
!mglibc:%{!muclibc:%{!mbionic: -mbionic}}} 
%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC
: -fPIC}}}}}

*cc1_options:
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are 
incompatible}} %{!
iplugindir*:%{fplugin*:%:find-plugindir()}} %1 %{!Q:-quiet} 
%{!dumpbase:-dumpbas
e %B} %{d*} %{m*} %{aux-info*} 
%{fcompare-debug-second:%:compare-debug-auxbase-o
pt(%b)}  %{!fcompare-debug-second:%{c|S:%{o*:-auxbase-strip 
%*}%{!o*:-auxbase %b
}}}%{!c:%{!S:-auxbase %b}}  %{g*} %{O*} %{W*&pedantic*} %{w} 
%{std*&ansi&trigrap
hs} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} 
%{Qy:} %{-help:-
-help} %{-target-help:--target-help} %{-version:--version} 
%{-help=*:--help=%*}
%{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} 
%{-param*} %{fm
udflap|fmudflapth:-fno-builtin -fno-merge-constants} 
%{coverage:-fprofile-arcs -
ftest-coverage}

*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?

Also, out of curiosity - when will the -std=c++11 be the default?

--Sidney Marshall

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: specs file modification to default gcc or g++ to current standard
       [not found] <5282fe63.0201430a.39cf.ffffc7a4SMTPIN_ADDED_MISSING@mx.google.com>
@ 2013-11-13 15:01 ` Ian Lance Taylor
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Lance Taylor @ 2013-11-13 15:01 UTC (permalink / raw)
  To: Sidney Marshall; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* specs file modification to default gcc or g++ to current  standard
@ 2013-11-13  4:20 Sidney Marshall
  0 siblings, 0 replies; 3+ messages in thread
From: Sidney Marshall @ 2013-11-13  4:20 UTC (permalink / raw)
  To: gcc-help; +Cc: sidneym

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:
%{!mandroid|tno-android-cc:%(cc1_cpu) %{profile:-p};:%(cc1_cpu) 
%{profile:-p} %{
!mglibc:%{!muclibc:%{!mbionic: -mbionic}}} 
%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC
: -fPIC}}}}}

*cc1_options:
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are 
incompatible}} %{!
iplugindir*:%{fplugin*:%:find-plugindir()}} %1 %{!Q:-quiet} 
%{!dumpbase:-dumpbas
e %B} %{d*} %{m*} %{aux-info*} 
%{fcompare-debug-second:%:compare-debug-auxbase-o
pt(%b)}  %{!fcompare-debug-second:%{c|S:%{o*:-auxbase-strip 
%*}%{!o*:-auxbase %b
}}}%{!c:%{!S:-auxbase %b}}  %{g*} %{O*} %{W*&pedantic*} %{w} 
%{std*&ansi&trigrap
hs} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} 
%{Qy:} %{-help:-
-help} %{-target-help:--target-help} %{-version:--version} 
%{-help=*:--help=%*}
%{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} 
%{-param*} %{fm
udflap|fmudflapth:-fno-builtin -fno-merge-constants} 
%{coverage:-fprofile-arcs -
ftest-coverage}

*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?

Also, out of curiosity - when will the -std=c++11 be the default?

--Sidney Marshall

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-13 15:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-13  4:20 specs file modification to default gcc or g++ to current standard Sidney Marshall
     [not found] <5282fe63.0201430a.39cf.ffffc7a4SMTPIN_ADDED_MISSING@mx.google.com>
2013-11-13 15:01 ` Ian Lance Taylor
  -- strict thread matches above, loose matches on Subject: below --
2013-11-13  4:20 Sidney Marshall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).