From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21609 invoked by alias); 6 Feb 2004 18:33: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 21601 invoked from network); 6 Feb 2004 18:33:19 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 6 Feb 2004 18:33:19 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 2416E2B92; Fri, 6 Feb 2004 13:33:20 -0500 (EST) Message-ID: <4023DDF0.4030403@gnu.org> Date: Fri, 06 Feb 2004 18:33:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 MIME-Version: 1.0 To: Michael Elizabeth Chastain Cc: brobecker@gnat.com, gdb-patches@sources.redhat.com Subject: Re: more robust get_compiler_info References: <20040205231351.9529A4B364@berman.michael-chastain.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-02/txt/msg00121.txt.bz2 > ac> ... can instead just compiler_info be set. > > Sounds good to me. I will give it a whirl. > > Here is the new patch, not tested yet, not even a ChangeLog entry. > > Michael C > > === > > Index: lib/compiler.c > =================================================================== > RCS file: /cvs/src/src/gdb/testsuite/lib/compiler.c,v > retrieving revision 1.3 > diff -c -3 -p -r1.3 compiler.c > *** lib/compiler.c 24 Jan 2004 21:59:03 -0000 1.3 > --- lib/compiler.c 5 Feb 2004 23:11:00 -0000 > *************** > *** 34,60 **** > > TODO: purge signed_keyword_not_used. */ > > ! set compiler_info "" > > #if defined (__GNUC__) > set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ } -] > - set gcc_compiled __GNUC__ > - #else > - set gcc_compiled 0 > #endif > > #if defined (__HP_cc) > set compiler_info [join {hpcc __HP_cc} -] > - set hp_cc_compiler __HP_cc > - #else > - set hp_cc_compiler 0 > #endif > > #if defined (__HP_aCC) > set compiler_info [join {hpacc __HP_aCC} -] > - set hp_aCC_compiler __HP_aCC > - #else > - set hp_aCC_compiler 0 > #endif Already like it :-) Andrew