From: Michael Chastain Date: Wed, 30 Jun 2004 08:01:33 +0000 (+0000) Subject: 2004-06-30 Michael Chastain X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06ea1a610f5dbdb2e629ba80e9774a6b1937d6e0;p=binutils-gdb.git 2004-06-30 Michael Chastain * lib/compiler.cc: Work around string preprocessing problem with old hp c++ compiler. * lib/compiler.c: Likewise. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 211adad751e..bf936bf2873 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2004-06-30 Michael Chastain + + * lib/compiler.cc: Work around string preprocessing problem + with old hp c++ compiler. + * lib/compiler.c: Likewise. + 2004-06-29 Corinna Vinschen * gdb.arch/i386-prologue.c: Add copyright header. Use preprocessor diff --git a/gdb/testsuite/lib/compiler.c b/gdb/testsuite/lib/compiler.c index 47b376f12cf..1cc5d7397ad 100644 --- a/gdb/testsuite/lib/compiler.c +++ b/gdb/testsuite/lib/compiler.c @@ -34,7 +34,14 @@ TODO: purge signed_keyword_not_used. */ -set compiler_info "unknown" +/* 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__) diff --git a/gdb/testsuite/lib/compiler.cc b/gdb/testsuite/lib/compiler.cc index 72b9dc1d22a..fdf1ab5478b 100644 --- a/gdb/testsuite/lib/compiler.cc +++ b/gdb/testsuite/lib/compiler.cc @@ -22,7 +22,14 @@ /* This file is exactly like compiler.c. I could just use compiler.c if I could be sure that every C++ compiler accepted extensions of ".c". */ -set compiler_info "unknown" +/* 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__)