From patchwork Tue Dec 27 20:45:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandra Loosemore X-Patchwork-Id: 709101 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tp7Kj0NH0z9t0w for ; Wed, 28 Dec 2016 07:50:15 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="pJu3ezgS"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=q+pcWiC3Mc2g43YUpNjoGZnlmP36F/QkZNYUpZGWzX6OZ9zAa6 h19caoNuRDncTemYG3ZHR73nrf74nbCxRJ6AzK9Uo0itoQreEQY6QiaVvuaLbEia qVUSluun26FXKDZI2V5mN6mF2dq/+WT61L9Sb/wD3KRu+oRgU3ueeEVLs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=V1gsIII7nPYO4SfUHPb59zj6yz8=; b=pJu3ezgSrhiaCQ50v+21 fTRcmCaKACjloohjd7Ax2LSoTrgttiDfGnL0NYNIxzur5XymY59hq9kOJbi/raEn GIYHS95LxlwUw9vb6LL3+OG6rSwiwaNNsv9p9oI3sv/hBQfQFqE0tvMybmu10eRH 8Hmgpo1CrTdWJxoW5hiiu1Q= Received: (qmail 14751 invoked by alias); 27 Dec 2016 20:46:27 -0000 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 Received: (qmail 14616 invoked by uid 89); 27 Dec 2016 20:46:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL, BAYES_05, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=no version=3.3.2 spammy=Request, gol, ObjectiveC, dialects X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 27 Dec 2016 20:46:06 +0000 Received: from svr-orw-mbx-03.mgc.mentorg.com ([147.34.90.203]) by relay1.mentorg.com with esmtp id 1cLydG-0000zN-MD from Sandra_Loosemore@mentor.com for gcc-patches@gcc.gnu.org; Tue, 27 Dec 2016 12:46:02 -0800 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 27 Dec 2016 12:46:00 -0800 To: "gcc-patches@gcc.gnu.org" From: Sandra Loosemore Subject: [doc, committed] preprocessor documentation cleanup, part 3/n Message-ID: <5862D300.5010509@codesourcery.com> Date: Tue, 27 Dec 2016 13:45:52 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) To svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) This patch takes care of a leftover from the last installment of this series -- I'd missed that there was a duplicate entry for -x in cppopts.texi. I've also moved -fno-show-column out of the preprocessor options and into the "Diagnostic Message Formatting Options" section, where people will be more likely to find it. More shuffling around and refactoring of include files coming in the next installment. -Sandra Index: doc/cppopts.texi =================================================================== --- doc/cppopts.texi (revision 243928) +++ doc/cppopts.texi (working copy) @@ -297,25 +297,6 @@ location. The filename may be absolute current directory. @end ifclear -@item -x c -@itemx -x c++ -@itemx -x objective-c -@itemx -x assembler-with-cpp -@opindex x -Specify the source language: C, C++, Objective-C, or assembly. This has -nothing to do with standards conformance or extensions; it merely -selects which base syntax to expect. If you give none of these options, -cpp will deduce the language from the extension of the source file: -@samp{.c}, @samp{.cc}, @samp{.m}, or @samp{.S}. Some other common -extensions for C++ and assembly are also recognized. If cpp does not -recognize the extension, it will treat the file as C; this is the most -generic mode. - -@emph{Note:} Previous versions of cpp accepted a @option{-lang} option -which selected both the language and the standards conformance level. -This option has been removed, because it conflicts with the @option{-l} -option. - @item -I- @opindex I- Split the include path. Any directories specified with @option{-I} @@ -564,12 +545,6 @@ form @option{-fno-working-directory}. I present in the command line, this option has no effect, since no @code{#line} directives are emitted whatsoever. -@item -fno-show-column -@opindex fno-show-column -Do not print column numbers in diagnostics. This may be necessary if -diagnostics are being scanned by a program that does not understand the -column numbers, such as @command{dejagnu}. - @item -A @var{predicate}=@var{answer} @opindex A Make an assertion with the predicate @var{predicate} and answer Index: doc/invoke.texi =================================================================== --- doc/invoke.texi (revision 243928) +++ doc/invoke.texi (working copy) @@ -250,7 +250,8 @@ Objective-C and Objective-C++ Dialects}. -fdiagnostics-show-location=@r{[}once@r{|}every-line@r{]} @gol -fdiagnostics-color=@r{[}auto@r{|}never@r{|}always@r{]} @gol -fno-diagnostics-show-option -fno-diagnostics-show-caret @gol --fdiagnostics-parseable-fixits -fdiagnostics-generate-patch} +-fdiagnostics-parseable-fixits -fdiagnostics-generate-patch @gol +-fno-show-column} @item Warning Options @xref{Warning Options,,Options to Request or Suppress Warnings}. @@ -3546,6 +3547,12 @@ are printed. For example: The diff may or may not be colorized, following the same rules as for diagnostics (see @option{-fdiagnostics-color}). +@item -fno-show-column +@opindex fno-show-column +Do not print column numbers in diagnostics. This may be necessary if +diagnostics are being scanned by a program that does not understand the +column numbers, such as @command{dejagnu}. + @end table @node Warning Options