From: Paul Gilliam Date: Fri, 4 Mar 2005 17:35:46 +0000 (+0000) Subject: 2004-03-03 Paul Gilliam X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae051c1bca4a725f911d253efc85456f5dc49550;p=binutils-gdb.git 2004-03-03 Paul Gilliam * lib/compiler.c: Add test for IBM's xlc compiler. * lib/compiler.cc: Likewise. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f0a278e49b1..47ed69c5b2c 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2004-03-03 Paul Gilliam + + * lib/compiler.c: Add test for IBM's xlc compiler. + * lib/compiler.cc: Likewise. + + 2004-02-24 Joel Brobecker * gdb.ada/fixed_points.exp: Create compilation object directory diff --git a/gdb/testsuite/lib/compiler.c b/gdb/testsuite/lib/compiler.c index 8ebccaf95c4..58750413466 100644 --- a/gdb/testsuite/lib/compiler.c +++ b/gdb/testsuite/lib/compiler.c @@ -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 diff --git a/gdb/testsuite/lib/compiler.cc b/gdb/testsuite/lib/compiler.cc index 4e4eeee1ba7..eea1df46949 100644 --- a/gdb/testsuite/lib/compiler.cc +++ b/gdb/testsuite/lib/compiler.cc @@ -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