2004-03-03 Paul Gilliam <pgilliam@us.ibm.com>
authorPaul Gilliam <pgilliam@us.ibm.com>
Fri, 4 Mar 2005 17:35:46 +0000 (17:35 +0000)
committerPaul Gilliam <pgilliam@us.ibm.com>
Fri, 4 Mar 2005 17:35:46 +0000 (17:35 +0000)
        * lib/compiler.c: Add test for IBM's xlc compiler.
        * lib/compiler.cc: Likewise.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/compiler.c
gdb/testsuite/lib/compiler.cc

index f0a278e49b1cf6966b412abbd807c2b8a57164ba..47ed69c5b2c736faa311793b9861cc58e56e7324 100644 (file)
@@ -1,3 +1,9 @@
+2004-03-03  Paul Gilliam  <pgilliam@us.ibm.com>
+
+        * lib/compiler.c: Add test for IBM's xlc compiler.
+        * lib/compiler.cc: Likewise.
+
+
 2004-02-24  Joel Brobecker  <brobecker@adacore.com>
 
        * gdb.ada/fixed_points.exp: Create compilation object directory
index 8ebccaf95c4d48913d3975d4ecc9f76adb938af1..58750413466ce02eb8222cd0f3774e2d0a7d1075 100644 (file)
@@ -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
index 4e4eeee1ba7a4310105c2ad1be8baa3722e1cec1..eea1df46949267c6b891621696dd667c1348cf04 100644 (file)
@@ -52,3 +52,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