[patch] testsuite armcc version detection
Paul Brook
paul@codesourcery.com
Tue Mar 7 17:23:00 GMT 2006
The patch below adds testsuite support code to detect the version number of
the ARM C/C++ compiler (armcc).
Ok?
Paul
2006-03-07 Paul Brook <paul@codesourcery.com>
* lib/compiler.c: Extract armcc version number.
* lib/compiler.cc: Ditto.
Index: gdb/testsuite/lib/compiler.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/compiler.c,v
retrieving revision 1.10
diff -u -p -r1.10 compiler.c
--- gdb/testsuite/lib/compiler.c 7 Mar 2005 18:57:57 -0000 1.10
+++ gdb/testsuite/lib/compiler.c 7 Mar 2006 14:31:48 -0000
@@ -70,3 +70,7 @@ set compiler_info [join {hpacc __HP_aCC}
numbers seperated by '.'s: currently "7.0.0.0" */
set need_a_set [regsub -all {\.} [join {xlc __xlc__} -] - compiler_info]
#endif
+
+#if defined (__ARMCC_VERSION)
+set compiler_info [join {armcc __ARMCC_VERSION} -]
+#endif
Index: gdb/testsuite/lib/compiler.cc
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/compiler.cc,v
retrieving revision 1.12
diff -u -p -r1.12 compiler.cc
--- gdb/testsuite/lib/compiler.cc 7 Mar 2005 18:57:57 -0000 1.12
+++ gdb/testsuite/lib/compiler.cc 7 Mar 2006 14:31:48 -0000
@@ -58,3 +58,7 @@ set compiler_info [join {hpacc __HP_aCC}
numbers seperated by '.'s: currently "7.0.0.0" */
set need_a_set [regsub -all {\.} [join {xlc __xlc__} -] - compiler_info]
#endif
+
+#if defined (__ARMCC_VERSION)
+set compiler_info [join {armcc __ARMCC_VERSION} -]
+#endif
More information about the Gdb-patches
mailing list