From patchwork Mon Sep 17 15:59:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Koning X-Patchwork-Id: 184482 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 4025E2C0082 for ; Tue, 18 Sep 2012 01:59:31 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1348502372; h=Comment: DomainKey-Signature:Received:Received:Received:From:To:Subject: Date:Message-ID:Content-Type:Content-ID: Content-Transfer-Encoding:MIME-Version:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=YZtWOfInnV+ysX56k3KPVpCliYM=; b=bmEaKk+E//oOKWp VB+X1RnhSmSPfTmTFuImUyTkxgb2H5/VRQiorAhdj/t3I+Uz/5ScuCzEncKIFdoZ JmQeMgpB1BAhENLzD7E8tcqt6rGpKIBy2wjRO8Aw9Zl5UBMXBoR1aR3Ai2UYJkUX KUSyrszY4gFzcMktJaZfKa3lO5qU= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:X-Loopcount0:From:To:Subject:Date:Message-ID:Content-Type:Content-ID:Content-Transfer-Encoding:MIME-Version:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=X0mRT4oUaWR7oFJwNk3RD4RR+ev1gmRHk4hUiz/I0XPfObh737N4SiYFCy/EIp /H8gbwYFlADRRyPvKuPLWyo9NirjqfpBUgg5Nby9l3GGEWgvazL3XoqUJLY59fSA eCdaBFG/5/dnG8RX7c3jSdAYp2H4XxJGU3A8MOeqqVjWI=; Received: (qmail 31024 invoked by alias); 17 Sep 2012 15:59:27 -0000 Received: (qmail 31015 invoked by uid 22791); 17 Sep 2012 15:59:26 -0000 X-SWARE-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from ausxippc101.us.dell.com (HELO ausxippc101.us.dell.com) (143.166.85.207) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 Sep 2012 15:59:11 +0000 X-Loopcount0: from 10.175.216.249 From: To: Subject: [DOC] Update -feliminate-unused-debug-types description Date: Mon, 17 Sep 2012 15:59:06 +0000 Message-ID: Content-ID: <6E5E3C51F86F2448A67A377E42B962CC@dell.com> MIME-Version: 1.0 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 Currently the description of -feliminate-unused-debug-types says that it is off by default. In fact, it is on by default. The attached patch corrects the documentation to reflect that. Ok to commit? paul 2012-09-17 Paul Koning * doc/invoke.text (-feliminate-unused-debug-types): Update to reflect that this is enabled by default. Index: invoke.texi =================================================================== --- invoke.texi (revision 191393) +++ invoke.texi (working copy) @@ -324,7 +324,7 @@ -fdump-tree-storeccp@r{[}-@var{n}@r{]} @gol -fdump-final-insns=@var{file} @gol -fcompare-debug@r{[}=@var{opts}@r{]} -fcompare-debug-second @gol --feliminate-dwarf2-dups -feliminate-unused-debug-types @gol +-feliminate-dwarf2-dups -fno-eliminate-unused-debug-types @gol -feliminate-unused-debug-symbols -femit-class-debug-always @gol -fenable-@var{kind}-@var{pass} @gol -fenable-@var{kind}-@var{pass}=@var{range-list} @gol @@ -6192,17 +6192,18 @@ Print the compiler's built-in specs---and don't do anything else. (This is used when GCC itself is being built.) @xref{Spec Files}. -@item -feliminate-unused-debug-types +@item -fno-eliminate-unused-debug-types @opindex feliminate-unused-debug-types -Normally, when producing DWARF 2 output, GCC emits debugging +@opindex fno-eliminate-unused-debug-types +Normally, when producing DWARF 2 output, GCC avoids producing debug symbol +output for types that are nowhere used in the source file being compiled. +Sometimes it is useful to have GCC emit debugging information for all types declared in a compilation unit, regardless of whether or not they are actually used -in that compilation unit. Sometimes this is useful, such as +in that compilation unit, for example if, in the debugger, you want to cast a value to a type that is not actually used in your program (but is declared). More often, however, this results in a significant amount of wasted space. -With this option, GCC avoids producing debug symbol output -for types that are nowhere used in the source file being compiled. @end table @node Optimize Options