From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16217 invoked by alias); 3 Mar 2005 23:27:00 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 16064 invoked from network); 3 Mar 2005 23:26:55 -0000 Received: from unknown (HELO e34.co.us.ibm.com) (32.97.110.132) by sourceware.org with SMTP; 3 Mar 2005 23:26:55 -0000 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by e34.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j23NQtKN488646 for ; Thu, 3 Mar 2005 18:26:55 -0500 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay05.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j23NQswp197708 for ; Thu, 3 Mar 2005 16:26:54 -0700 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j23NQsPm018272 for ; Thu, 3 Mar 2005 16:26:54 -0700 Received: from dyn319633.beaverton.ibm.com (DYN319633.beaverton.ibm.com [9.47.22.123]) by d03av01.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j23NQsaE018269 for ; Thu, 3 Mar 2005 16:26:54 -0700 From: Paul Gilliam Reply-To: pgilliam@us.ibm.com To: gdb-patches@sources.redhat.com Subject: [patch] allow [test_compile_info xlc-*] return true Date: Thu, 03 Mar 2005 23:27:00 -0000 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200503031523.11563.pgilliam@us.ibm.com> X-SW-Source: 2005-03/txt/msg00039.txt.bz2 The following patch adds a test for IBM's xlc compiler to compiler.c and compiler.cc so that xlc will be recognized by 'get_compiler_info' in testsuite/lib/gdb.exp. Ok to commit? ------ cut here ------8<----------- 2004-03-03 Paul Gilliam * lib/compilerc: Add test for IBM's xlc compiler. * lib/compiler.cc: Likewise. diff -Naur testsuite.old/lib/compiler.c testsuite/lib/compiler.c --- testsuite.old/lib/compiler.c 2005-03-03 15:07:49.361274048 -0800 +++ testsuite/lib/compiler.c 2005-03-03 15:10:24.503253288 -0800 @@ -64,3 +64,9 @@ #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 -Naur testsuite.old/lib/compiler.cc testsuite/lib/compiler.cc --- testsuite.old/lib/compiler.cc 2005-03-03 15:07:49.362273896 -0800 +++ testsuite/lib/compiler.cc 2005-03-03 15:10:37.973203216 -0800 @@ -52,3 +52,9 @@ #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