From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7662 invoked by alias); 20 Apr 2007 14:03:31 -0000 Received: (qmail 7652 invoked by uid 22791); 20 Apr 2007 14:03:31 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 20 Apr 2007 15:03:24 +0100 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l3KE37Zt032522; Fri, 20 Apr 2007 10:03:07 -0400 Received: from pobox.surrey.redhat.com (pobox.fab.redhat.com [10.33.63.12]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l3KE36Nq023997; Fri, 20 Apr 2007 10:03:06 -0400 Received: from [10.33.6.5] (vpn-6-5.fab.redhat.com [10.33.6.5]) by pobox.surrey.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l3KE35pI022724; Fri, 20 Apr 2007 15:03:05 +0100 Message-ID: <4628C817.6030303@redhat.com> Date: Fri, 20 Apr 2007 14:28:00 -0000 From: Nick Clifton User-Agent: Thunderbird 1.5.0.9 (X11/20061215) MIME-Version: 1.0 To: Danny Backx CC: Ben Elliston , Sanjay Chadha , binutils@sourceware.org Subject: Re: [PATCH] enabling gprof for cross builds References: <000301c77ace$ee740120$1f28a8c0@Alps> <1176338749.5535.8.camel@localhost> <1176390019.14038.54.camel@dannypc> In-Reply-To: <1176390019.14038.54.camel@dannypc> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00270.txt.bz2 Hi Danny, > I have a patch that allows you to specify a different directory than the > host source directory. > > That means : > - you compile on a PC, sources in e.g. /home/danny/src/prog.c > - by default, gcc compiles in a path /home/danny/src in which the > executable will try to store its profile information > - that is not always present on the mobile device > - there is a way to change this directory at run time, but that > isn't always easy (it isn't on CE) > - so I've added a way to specify a different directory at compile > time, meaning I can override the directory that gcc puts in the > object file > > I've been wanting to submit the code but didn't get around to it yet. > > Should I clean it up and submit ? This does sound interesting, but isn't this a patch to gcc rather than to gprof ? If so then it should be submitted to the gcc-patches list rather than the binutils list. Either way though, cleaning it up and submitting it would be a good thing to do. Cheers Nick