From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9803 invoked by alias); 13 Nov 2013 04:20:54 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 9794 invoked by uid 89); 13 Nov 2013 04:20:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.1 required=5.0 tests=BAYES_50,MISSING_MID,RDNS_NONE,SPF_PASS autolearn=no version=3.3.2 X-HELO: filter03.roch.ny.frontiernet.net Received: from Unknown (HELO filter03.roch.ny.frontiernet.net) (66.133.183.233) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 13 Nov 2013 04:20:52 +0000 Received: from localhost (localhost [127.0.0.1]) by filter03.roch.ny.frontiernet.net (Postfix) with ESMTP id A01C118A22A; Wed, 13 Nov 2013 04:20:44 +0000 (UTC) Received: from relay05.roch.ny.frontiernet.net ([66.133.182.168]) by localhost (filter03.roch.ny.frontiernet.net [66.133.183.233]) (amavisd-new, port 10024) with LMTP id p9nHXhNL73Rf; Wed, 13 Nov 2013 04:20:42 +0000 (UTC) X-Previous-IP: 65.37.45.94 Received: from HOME.frontiernet.net (65-37-45-94.dsl1-fairport.roch.ny.frontiernet.net [65.37.45.94]) by relay05.roch.ny.frontiernet.net (Postfix) with ESMTPA id 6B5ED2F91E; Wed, 13 Nov 2013 04:20:40 +0000 (UTC) Date: Wed, 13 Nov 2013 04:20:00 -0000 To: gcc-help@gcc.gnu.org From: Sidney Marshall Subject: specs file modification to default gcc or g++ to current standard Cc: sidneym@frontiernet.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-SW-Source: 2013-11/txt/msg00080.txt.bz2 Message-ID: <20131113042000.3pbn-MVu3x7rxLs757mF19A6NmLKJUmuQy0SZ0gvxEk@z> 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