From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 678 invoked by alias); 27 Oct 2013 13:59:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 655 invoked by uid 48); 27 Oct 2013 13:59:21 -0000 From: "mtewoodbury at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers Date: Sun, 27 Oct 2013 13:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mtewoodbury at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-10/txt/msg01978.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687 --- Comment #6 from Max TenEyck Woodbury --- (In reply to Andrew Pinski from comment #5) > > Simply to make identification host independent. The fact that my > > projects are stored on '/VOL10' on one of my machines and '/DATA0.2' > > This sounds like a bug in how you are compiling the sources. Also there are > options inside GDB to transpose paths to the path on your machine. It is precisely because the identification varies with the way to file name is passed to the compiler that makes setting __FILE__ desirable. The compiler invocation details are not always under the developer's control. Tools like 'make', 'autoconf' and 'automake' dictate the forms. So, I have fairly strong objections to calling it an external procedural BUG. The issue REALLY is that __LINE__ gets messed up; leave discussions of how the compiler is invoked out of it.