From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5413 invoked by alias); 4 Mar 2005 17:41:19 -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 5396 invoked from network); 4 Mar 2005 17:41:16 -0000 Received: from unknown (HELO e31.co.us.ibm.com) (32.97.110.129) by sourceware.org with SMTP; 4 Mar 2005 17:41:16 -0000 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by e31.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j24HfFua423548 for ; Fri, 4 Mar 2005 12:41:15 -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 j24HfFEf203676 for ; Fri, 4 Mar 2005 10:41:15 -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 j24HfFE7005059 for ; Fri, 4 Mar 2005 10:41:15 -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 j24HfECC005040 for ; Fri, 4 Mar 2005 10:41:14 -0700 From: Paul Gilliam Reply-To: pgilliam@us.ibm.com To: gdb-patches@sources.redhat.com Subject: [COMMIT] allow [test_compile_info xlc-*] return true Date: Fri, 04 Mar 2005 17:41:00 -0000 User-Agent: KMail/1.6.2 References: <200503031523.11563.pgilliam@us.ibm.com> <20050304001756.GA6185@nevyn.them.org> In-Reply-To: <20050304001756.GA6185@nevyn.them.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200503040937.31683.pgilliam@us.ibm.com> X-SW-Source: 2005-03/txt/msg00050.txt.bz2 2004-03-03 Paul Gilliam * lib/compiler.c: 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