2006-03-07 Paul Brook <paul@codesourcery.com>
authorPaul Brook <paul@codesourcery.com>
Tue, 7 Mar 2006 18:51:56 +0000 (18:51 +0000)
committerPaul Brook <paul@codesourcery.com>
Tue, 7 Mar 2006 18:51:56 +0000 (18:51 +0000)
* lib/compiler.c: Extract armcc version number.
* lib/compiler.cc: Ditto.

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

index ba927c2..b31e487 100644 (file)
@@ -1,5 +1,10 @@
 2006-03-07  Paul Brook  <paul@codesourcery.com>
 
+       * lib/compiler.c: Extract armcc version number.
+       * lib/compiler.cc: Ditto.
+
+2006-03-07  Paul Brook  <paul@codesourcery.com>
+
        * gdb.arch/altivec-abi.exp: Use nowarnings instead of
        additional_flags=-w.
        * gdb.arch/altivec-regs.exp: Ditto.
index 7160591..bfec521 100644 (file)
@@ -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 6031900..444fb63 100644 (file)
@@ -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