From patchwork Sun Oct 16 10:03:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 120021 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 64A29B7105 for ; Sun, 16 Oct 2011 21:06:16 +1100 (EST) Received: (qmail 22420 invoked by alias); 16 Oct 2011 10:06:13 -0000 Received: (qmail 22411 invoked by uid 22791); 16 Oct 2011 10:06:12 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, TW_CX X-Spam-Check-By: sourceware.org Received: from rcsinet15.oracle.com (HELO rcsinet15.oracle.com) (148.87.113.117) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 16 Oct 2011 10:05:59 +0000 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p9GA5snb006549 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 16 Oct 2011 10:05:55 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p9GA5roT013617 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 16 Oct 2011 10:05:53 GMT Received: from abhmt111.oracle.com (abhmt111.oracle.com [141.146.116.63]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p9GA5lod004456; Sun, 16 Oct 2011 05:05:48 -0500 Received: from [192.168.1.4] (/79.27.214.30) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 16 Oct 2011 03:05:47 -0700 Message-ID: <4E9AAC05.1050801@oracle.com> Date: Sun, 16 Oct 2011 12:03:49 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: Jason Merrill Subject: [C++ Patch] PR 32614 X-IsSubscribed: yes 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 Hi, in this simple documentation PR, Tom noticed that we have a (very long standing) inconsistency between the default value of -fmessage-length for C++ as documented and as implemented: in fact it's 0 in cxx-pretty-print.c, like all the other front-ends. At the time of the PR people briefly envisage changing the default but the discussion didn't go anywhere, I think we can as well do the below, for the time being at least, remove the inconsistency. Ok? Thanks, Paolo. ///////////////////// 2011-10-16 Paolo Carlini PR c++/32614 * doc/invoke.texi ([Language Independent Options]): Change default value of -fmessage-length for C++ to match implementation. Index: doc/invoke.texi =================================================================== --- doc/invoke.texi (revision 180048) +++ doc/invoke.texi (working copy) @@ -2802,10 +2802,9 @@ the remaining front ends would be able to digest t @item -fmessage-length=@var{n} @opindex fmessage-length Try to format error messages so that they fit on lines of about @var{n} -characters. The default is 72 characters for @command{g++} and 0 for the rest of -the front ends supported by GCC@. If @var{n} is zero, then no -line-wrapping will be done; each error message will appear on a single -line. +characters. The default is 0 for all the front ends supported by +GCC@. If @var{n} is zero, then no line-wrapping will be done; each +error message will appear on a single line. @opindex fdiagnostics-show-location @item -fdiagnostics-show-location=once