From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27413 invoked by alias); 15 Apr 2005 19:35:14 -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 27299 invoked from network); 15 Apr 2005 19:35:01 -0000 Received: from unknown (HELO e31.co.us.ibm.com) (32.97.110.129) by sourceware.org with SMTP; 15 Apr 2005 19:35:01 -0000 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e31.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j3FJYYua456124 for ; Fri, 15 Apr 2005 15:34:38 -0400 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j3FJYXYh351544 for ; Fri, 15 Apr 2005 13:34:33 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j3FJYWw4004913 for ; Fri, 15 Apr 2005 13:34:33 -0600 Received: from dyn9047022123-009047022128.beaverton.ibm.com (dyn9047022123-009047022128.beaverton.ibm.com [9.47.22.128]) by d03av04.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j3FJYWHu004900; Fri, 15 Apr 2005 13:34:32 -0600 From: Paul Gilliam Reply-To: pgilliam@us.ibm.com To: gdb-patches@sources.redhat.com Subject: Re: [patch] seperate HP aCC compiler_info into Major, Minor, and Extension Date: Fri, 15 Apr 2005 19:35:00 -0000 User-Agent: KMail/1.6.2 Cc: Daniel Jacobowitz References: <200504081521.07587.pgilliam@us.ibm.com> <20050414191631.GF26377@nevyn.them.org> In-Reply-To: <20050414191631.GF26377@nevyn.them.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200504151234.14115.pgilliam@us.ibm.com> X-SW-Source: 2005-04/txt/msg00162.txt.bz2 On Thursday 14 April 2005 12:16, Daniel Jacobowitz wrote: > On Fri, Apr 08, 2005 at 02:21:07PM -0800, Paul Gilliam wrote: > > This patch seperates the compiler info string for the HP aCC compiler i= nto it's components. > > The old value for version A.01.21 was hpacc-010121; the new value woul= d be hpacc-01-01-21. > > This is consistant with the why GCC is handled. > >=20 > > -=3D# Paul #=3D- > >=20 > > --- > > 2005-04-08 Paul Gilliam > >=20 > > * lib/compiler.c: Divide HP aCC 'compiler_info' into components. > > * lib/compiler.cc: Likewise. >=20 > Not OK I'm afraid. I tried an aCC installation I had handy: >=20 > bash-2.05b$ aCC --version > aCC: HP ANSI C++ B3910B A.03.45 >=20 > set compiler_info [join {hpacc 34500 } -] >=20 > That's not going to match your regexp. >=20 =46rom the doc I read on the net somewhere, that version info should be translated into 'hpacc 010345'. And we all know, the net nevers is wrong. 8-( should it be changed to: set need_a_set [eval {regexp {1(..)(..)(..)} [expr __HP_aCC + 1000000] dont= care nn xx mm;set compiler_info "hpacc-$mm-$nn-$xx"}] or to: set need_a_set [eval {regexp {1(..)(..)(..)..} [expr __HP_aCC + 100000000] = dontcare mm nn xx;set compiler_info "hpacc-$mm-$nn-$xx"}] or just forget the whole thing? Maybe this is more futzing around than it'= s worth. (But I do like it when things are consistant.) -=3D# Paul #=3D-