fix obvious problem with compiler.c and compiler.cc: for xlc, used 'regsub',
authorPaul Gilliam <pgilliam@us.ibm.com>
Mon, 7 Mar 2005 18:57:57 +0000 (18:57 +0000)
committerPaul Gilliam <pgilliam@us.ibm.com>
Mon, 7 Mar 2005 18:57:57 +0000 (18:57 +0000)
but for get_compiler_info, line must start with 'set'.

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

index 58750413466ce02eb8222cd0f3774e2d0a7d1075..7160591a93c20c067182fb6eec3efe52da6d7f25 100644 (file)
@@ -68,5 +68,5 @@ set compiler_info [join {hpacc __HP_aCC} -]
 #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
+set need_a_set [regsub -all {\.} [join {xlc __xlc__} -] - compiler_info]
 #endif
index eea1df46949267c6b891621696dd667c1348cf04..60319007bc1e97684f3288d30f98bec2128da6f3 100644 (file)
@@ -56,5 +56,5 @@ set compiler_info [join {hpacc __HP_aCC} -]
 #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
+set need_a_set [regsub -all {\.} [join {xlc __xlc__} -] - compiler_info]
 #endif