From patchwork Fri Mar 25 16:00:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Merrill X-Patchwork-Id: 88391 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 205F9B6F14 for ; Sat, 26 Mar 2011 03:00:25 +1100 (EST) Received: (qmail 25849 invoked by alias); 25 Mar 2011 16:00:23 -0000 Received: (qmail 25840 invoked by uid 22791); 25 Mar 2011 16:00:22 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 Mar 2011 16:00:18 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p2PG0IiM006830 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 25 Mar 2011 12:00:18 -0400 Received: from [127.0.0.1] (ovpn-113-150.phx2.redhat.com [10.3.113.150]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p2PG0HkX028186 for ; Fri, 25 Mar 2011 12:00:17 -0400 Message-ID: <4D8CBC10.4010902@redhat.com> Date: Fri, 25 Mar 2011 17:00:16 +0100 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: gcc-patches List Subject: C++ PATCH to add -std=c++03 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Since the most recent C++ standard is officially dated 2003 (representing the 1998 standard adjusted by the 2003 technical corrigendum) we really ought to support -std=c++03, meaning the same thing as -std=c++98 since we don't attempt to distinguish between the two. Tested x86_64-pc-linux-gnu, applying to trunk. commit 170711238aced11aa20095caebd1fe4c9e4f7b55 Author: Jason Merrill Date: Wed Mar 23 11:09:19 2011 +0100 * c.opt: Add -std=c++03. diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index 0061ec5..4c4727f 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -1137,7 +1137,11 @@ Remap file names when including files std=c++98 C++ ObjC++ -Conform to the ISO 1998 C++ standard +Conform to the ISO 1998 C++ standard revised by the 2003 technical corrigendum + +std=c++03 +C++ ObjC++ Alias(std=c++98) +Conform to the ISO 1998 C++ standard revised by the 2003 technical corrigendum std=c++0x C++ ObjC++