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

Sidney Marshall sidneym@frontiernet.net
Wed Nov 13 04:20:00 GMT 2013

I would like to have gcc or g++ default to the current standard for 
4.8.2. The compiler option -dumpspecs gives (in part):

%{!mandroid|tno-android-cc:%(cc1_cpu) %{profile:-p};:%(cc1_cpu) 
%{profile:-p} %{
!mglibc:%{!muclibc:%{!mbionic: -mbionic}}} 
: -fPIC}}}}}

%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are 
incompatible}} %{!
iplugindir*:%{fplugin*:%:find-plugindir()}} %1 %{!Q:-quiet} 
e %B} %{d*} %{m*} %{aux-info*} 
pt(%b)}  %{!fcompare-debug-second:%{c|S:%{o*:-auxbase-strip 
%*}%{!o*:-auxbase %b
}}}%{!c:%{!S:-auxbase %b}}  %{g*} %{O*} %{W*&pedantic*} %{w} 
hs} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} 
%{Qy:} %{-help:-
-help} %{-target-help:--target-help} %{-version:--version} 
%{!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 -


The cc1plus is empty so I added:


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

More information about the Gcc-help mailing list