aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/compiler.c
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2004-06-14 15:29:30 +0000
committerMichael Chastain <mec@google.com>2004-06-14 15:29:30 +0000
commit4f70a4c95ab41254f8d08c00f6c51bcf07814aab (patch)
tree59bdb6b976e431415c96307307858b937be9a9f2 /gdb/testsuite/lib/compiler.c
parentcea4838c90297f951d3fe58672b75e4184a29f44 (diff)
downloadgdb-4f70a4c95ab41254f8d08c00f6c51bcf07814aab.zip
gdb-4f70a4c95ab41254f8d08c00f6c51bcf07814aab.tar.gz
gdb-4f70a4c95ab41254f8d08c00f6c51bcf07814aab.tar.bz2
2004-06-14 Michael Chastain <mec.gnu@mindspring.com>
* lib/compiler.c: Remove gcc_compiled, hp_cc_compiler, hp_aCC_compiler. * lib/compiler.cc: Likewise. * lib/gdb.exp (get_compiler_info): Eval lines only if they are 'set' commands. Log diagnostics for other lines. Set gcc_compiled, hp_cc_compiler, and hp_aCC_compiler.
Diffstat (limited to 'gdb/testsuite/lib/compiler.c')
-rw-r--r--gdb/testsuite/lib/compiler.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/gdb/testsuite/lib/compiler.c b/gdb/testsuite/lib/compiler.c
index dbce43e..47b376f 100644
--- a/gdb/testsuite/lib/compiler.c
+++ b/gdb/testsuite/lib/compiler.c
@@ -34,7 +34,7 @@
TODO: purge signed_keyword_not_used. */
-set compiler_info ""
+set compiler_info "unknown"
#if defined (__GNUC__)
#if defined (__GNUC_PATCHLEVEL__)
@@ -43,23 +43,14 @@ set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ __GNUC_PATCHLEVEL__} -]
#else
set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ "unknown"} -]
#endif
-set gcc_compiled __GNUC__
-#else
-set gcc_compiled 0
#endif
#if defined (__HP_cc)
set compiler_info [join {hpcc __HP_cc} -]
-set hp_cc_compiler __HP_cc
-#else
-set hp_cc_compiler 0
#endif
#if defined (__HP_aCC)
set compiler_info [join {hpacc __HP_aCC} -]
-set hp_aCC_compiler __HP_aCC
-#else
-set hp_aCC_compiler 0
#endif
/* gdb.base/whatis.exp still uses this */