From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13921 invoked by alias); 17 Dec 2008 03:55:32 -0000 Received: (qmail 13912 invoked by uid 22791); 17 Dec 2008 03:55:32 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from ms4.Sony.CO.JP (HELO ms4.sony.co.jp) (211.125.136.198) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 17 Dec 2008 03:54:34 +0000 Received: from mta6.sony.co.jp (mta6.Sony.CO.JP [137.153.71.9]) by ms4.sony.co.jp (R8/Sony) with ESMTP id mBH3sOrv023723; Wed, 17 Dec 2008 12:54:24 +0900 (JST) Received: from mta6.sony.co.jp (localhost [127.0.0.1]) by mta6.sony.co.jp (R8/Sony) with ESMTP id mBH3sNiG001118; Wed, 17 Dec 2008 12:54:23 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mta6.sony.co.jp (R8/Sony) with ESMTP id mBH3sNb8001112; Wed, 17 Dec 2008 12:54:23 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.4.141.32]) by smail1.sm.sony.co.jp (8.11.6p2/8.11.6) with ESMTP id mBH3sO213134; Wed, 17 Dec 2008 12:54:24 +0900 (JST) Received: from localhost (tidal.sm.sony.co.jp [43.4.145.112]) by imail.sm.sony.co.jp (8.12.11/3.7W) with ESMTP id mBH3sBdf027594; Wed, 17 Dec 2008 12:54:11 +0900 (JST) Date: Wed, 17 Dec 2008 17:47:00 -0000 Message-Id: <20081217.125423.41656508.kaminaga@sm.sony.co.jp> To: jengelh@medozas.de Cc: eljay@adobe.com, gcc-help@gcc.gnu.org, kaminaga@sm.sony.co.jp Subject: Re: #line directive and -D option From: Hiroki Kaminaga In-Reply-To: References: <20081217.105641.39158223.kaminaga@sm.sony.co.jp> <204DEA5423F3BF47A6EE88C4E2979EC66BDE084E2B@nambx04.corp.adobe.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-12/txt/msg00194.txt.bz2 From: Jan Engelhardt ... > >If you don't want the prefix, don't append the prefix. > > Well sometimes that just is not possible; for example when > you do an out-of-srcdir build in an autotools project, aka: > > mkdir obj > cd obj > ../configure > > then the compiler will be invoked with lots of ../${filename}.c. > That's why I use basename. Some part of prefix is needed if there is a same filename in different direcotry, so I wanted to strip top N prefix, not all dirname. However, I think this is more of a build environment issue, and if there were any convenient gcc functionlarity, I wanted to use it. Best Regards, (Hiroki Kaminaga) t --