aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2004-07-02 04:18:17 +0000
committerMichael Chastain <mec@google.com>2004-07-02 04:18:17 +0000
commitd205ad70f2ce07f7cbe9debc8bc1859981613bb5 (patch)
tree5e273832b76d0400df2d8ecbc6a53033e551d18d /gdb/testsuite
parent2d2b9592a766d04fb1d91bf601f1efacde28b751 (diff)
downloadgdb-d205ad70f2ce07f7cbe9debc8bc1859981613bb5.zip
gdb-d205ad70f2ce07f7cbe9debc8bc1859981613bb5.tar.gz
gdb-d205ad70f2ce07f7cbe9debc8bc1859981613bb5.tar.bz2
2004-07-02 Michael Chastain <mec.gnu@mindspring.com>
* lib/compiler.c: Accept __HP_CXD_SPP for old hp ansi c compiler. * lib/compiler.cc: Likewise.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/lib/compiler.c6
-rw-r--r--gdb/testsuite/lib/compiler.cc6
3 files changed, 17 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index bf936bf..7eff41e 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-02 Michael Chastain <mec.gnu@mindspring.com>
+
+ * lib/compiler.c: Accept __HP_CXD_SPP for old hp ansi c compiler.
+ * lib/compiler.cc: Likewise.
+
2004-06-30 Michael Chastain <mec.gnu@mindspring.com>
* lib/compiler.cc: Work around string preprocessing problem
diff --git a/gdb/testsuite/lib/compiler.c b/gdb/testsuite/lib/compiler.c
index 1cc5d73..da2fb0c 100644
--- a/gdb/testsuite/lib/compiler.c
+++ b/gdb/testsuite/lib/compiler.c
@@ -52,7 +52,13 @@ set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ "unknown"} -]
#endif
#endif
+#if defined (__HP_CXD_SPP)
+/* older hp ansi c, such as A.11.01.25171.gp, defines this */
+set compiler_info [join {hpcc __HP_CXD_SPP} -]
+#endif
+
#if defined (__HP_cc)
+/* newer hp ansi c, such as B.11.11.28706.gp, defines this */
set compiler_info [join {hpcc __HP_cc} -]
#endif
diff --git a/gdb/testsuite/lib/compiler.cc b/gdb/testsuite/lib/compiler.cc
index fdf1ab5..66fb32b 100644
--- a/gdb/testsuite/lib/compiler.cc
+++ b/gdb/testsuite/lib/compiler.cc
@@ -40,7 +40,13 @@ set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ "unknown"} -]
#endif
#endif
+#if defined (__HP_CXD_SPP)
+/* older hp ansi c, such as A.11.01.25171.gp, defines this */
+set compiler_info [join {hpcc __HP_CXD_SPP} -]
+#endif
+
#if defined (__HP_cc)
+/* newer hp ansi c, such as B.11.11.28706.gp, defines this */
set compiler_info [join {hpcc __HP_cc} -]
#endif