From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14253 invoked by alias); 30 Jun 2004 13:11:11 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 14089 invoked from network); 30 Jun 2004 13:11:00 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 30 Jun 2004 13:11:00 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1BferZ-0003MT-Rx; Wed, 30 Jun 2004 09:10:57 -0400 Date: Wed, 30 Jun 2004 13:11:00 -0000 From: Daniel Jacobowitz To: Michael Elizabeth Chastain Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/testsuite] compiler.cc, compiler.c: work with old hp acc Message-ID: <20040630131057.GA12658@nevyn.them.org> Mail-Followup-To: Michael Elizabeth Chastain , gdb-patches@sources.redhat.com References: <20040630075939.64DDD4B104@berman.michael-chastain.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040630075939.64DDD4B104@berman.michael-chastain.com> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-06/txt/msg00691.txt.bz2 On Wed, Jun 30, 2004 at 03:59:39AM -0400, Michael Chastain wrote: > After some experimentation and cursing, it looks like their compiler > does aggressive string concatenation. If the last token in the line is > a string, then the preprocessor eats the newline in order to merge with > the first token on the next line, in case that token is a string. THANK you! I ran into this recently and couldn't figure out what the problem was. There's also some option you can pass to aCC to stop it from doing this - there's an ANSI and a non-ANSI preprocessor and you can explicitly specify the ANSI one. > ! /* Note the semicolon at the end of this line. Older versions of > ! hp c++ have a bug in string preprocessing: if the last token on a > ! line is a string, then the preprocessor concatenates the next line > ! onto the current line and eats the newline! That messes up TCL of > ! course. That happens with HP aC++ A.03.13, but it no longer happens > ! with HP aC++ A.03.45. */ > ! > ! set compiler_info "unknown" ; > > #if defined (__GNUC__) > #if defined (__GNUC_PATCHLEVEL__) > I saw this with A.03.37. -- Daniel Jacobowitz