aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/compiler.c
diff options
context:
space:
mode:
authorPaul Gilliam <pgilliam@us.ibm.com>2005-03-04 17:35:46 +0000
committerPaul Gilliam <pgilliam@us.ibm.com>2005-03-04 17:35:46 +0000
commitae051c1bca4a725f911d253efc85456f5dc49550 (patch)
tree37bee1f070d5caa1ec633a60598f91d573fa806c /gdb/testsuite/lib/compiler.c
parent25742a2cf04136b9f6f95e5dee2743512c92a8cb (diff)
downloadgdb-ae051c1bca4a725f911d253efc85456f5dc49550.zip
gdb-ae051c1bca4a725f911d253efc85456f5dc49550.tar.gz
gdb-ae051c1bca4a725f911d253efc85456f5dc49550.tar.bz2
2004-03-03 Paul Gilliam <pgilliam@us.ibm.com>
* lib/compiler.c: Add test for IBM's xlc compiler. * lib/compiler.cc: Likewise.
Diffstat (limited to 'gdb/testsuite/lib/compiler.c')
-rw-r--r--gdb/testsuite/lib/compiler.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/compiler.c b/gdb/testsuite/lib/compiler.c
index 8ebccaf..5875041 100644
--- a/gdb/testsuite/lib/compiler.c
+++ b/gdb/testsuite/lib/compiler.c
@@ -64,3 +64,9 @@ set compiler_info [join {hpcc __HP_cc} -]
#if defined (__HP_aCC)
set compiler_info [join {hpacc __HP_aCC} -]
#endif
+
+#if defined (__xlc__)
+/* IBM'x xlc compiler. NOTE: __xlc__ expands to a double quoted string of four
+ numbers seperated by '.'s: currently "7.0.0.0" */
+regsub -all {\.} [join {xlc __xlc__} -] - compiler_info
+#endif