From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16788 invoked by alias); 13 Apr 2010 18:05:48 -0000 Received: (qmail 16780 invoked by uid 22791); 13 Apr 2010 18:05:47 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from pogma.xen.prgmr.com (HELO pogma.xen.prgmr.com) (68.68.97.8) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Apr 2010 18:05:41 +0000 Received: from tw.local (wnpgmb1316w-ds01-50-57.dynamic.mts.net [206.45.50.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pogma.xen.prgmr.com (Postfix) with ESMTP id C9BC5BF5FD; Tue, 13 Apr 2010 18:05:39 +0000 (UTC) Message-ID: <4BC4B272.5090606@pogma.com> Date: Tue, 13 Apr 2010 18:14:00 -0000 From: Peter O'Gorman User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc11 Thunderbird/3.0.1 MIME-Version: 1.0 To: IainS CC: Ian Lance Taylor , GCC Development Subject: Re: specs question. References: <6807833B-8AB9-468B-9936-09025C700DF7@sandoe-acoustics.co.uk> <4F670628-977A-4305-8E0B-1D64E95833EA@sandoe-acoustics.co.uk> In-Reply-To: <4F670628-977A-4305-8E0B-1D64E95833EA@sandoe-acoustics.co.uk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2010-04/txt/msg00293.txt.bz2 On 04/12/2010 07:01 PM, IainS wrote: > > It clearly depends on something no-obvious. > > gcc hello.c -g -o hc => dsymutils gets run (not expected from the > syntax, assuming that sources are irrelevant) > > gcc hello.o -g -o hc => no dsymutils (expected from the absence of '.o' > in the list) Hi Iain, We don't want to run dsymutil if there are .o files, let the developer do that. If someone just does gcc -g -o foo foo.c, then any debugging information will be lost when the temporary .o file is removed, thus, to allow debugging such a foo, the compiler must run dsymutil. Of course, it doesn't need to run for stabs, or -g0. Strange, Apple's gcc-4.2 doesn't have this bug (-lm), yet that portion of the specs appears identical. Peter