diff options
author | Michael Chastain <mec@google.com> | 2004-06-30 08:01:33 +0000 |
---|---|---|
committer | Michael Chastain <mec@google.com> | 2004-06-30 08:01:33 +0000 |
commit | 06ea1a610f5dbdb2e629ba80e9774a6b1937d6e0 (patch) | |
tree | d50d5bf054d6c80b0f57c1c9f5622c9c7719c86a /gdb/testsuite/lib/compiler.cc | |
parent | e7f0a167643f8b3bc72321be3656fa8e35f9e4e6 (diff) | |
download | binutils-gdb-06ea1a610f5dbdb2e629ba80e9774a6b1937d6e0.tar.gz |
2004-06-30 Michael Chastain <mec.gnu@mindspring.com>
* lib/compiler.cc: Work around string preprocessing problem
with old hp c++ compiler.
* lib/compiler.c: Likewise.
Diffstat (limited to 'gdb/testsuite/lib/compiler.cc')
-rw-r--r-- | gdb/testsuite/lib/compiler.cc | 9 |
1 files changed, 8 insertions, 1 deletions
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__) |