From d6341159ca41e496a5bb3726c6e6e0459230503e Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Tue, 7 Mar 2006 18:55:12 +0000 Subject: [PATCH] 2006-03-07 Paul Brook Backport from mainline. * gdb/testsuite/lib/compiler.c: Extract armcc version number. * gdb/testsuite/lib/compiler.cc: Ditto. --- ChangeLog.csl | 6 ++++++ gdb/testsuite/lib/compiler.c | 4 ++++ gdb/testsuite/lib/compiler.cc | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/ChangeLog.csl b/ChangeLog.csl index 282b2bbc0a6..f8e41556e33 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,3 +1,9 @@ +2006-03-07 Paul Brook + + Backport from mainline. + * gdb/testsuite/lib/compiler.c: Extract armcc version number. + * gdb/testsuite/lib/compiler.cc: Ditto. + 2006-03-07 Paul Brook Backport from mainline. diff --git a/gdb/testsuite/lib/compiler.c b/gdb/testsuite/lib/compiler.c index 7160591a93c..bfec521be08 100644 --- a/gdb/testsuite/lib/compiler.c +++ b/gdb/testsuite/lib/compiler.c @@ -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 diff --git a/gdb/testsuite/lib/compiler.cc b/gdb/testsuite/lib/compiler.cc index 60319007bc1..444fb6376a3 100644 --- a/gdb/testsuite/lib/compiler.cc +++ b/gdb/testsuite/lib/compiler.cc @@ -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 -- 2.47.2