From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1267 invoked by alias); 7 Jan 2004 21:38:15 -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 1257 invoked from network); 7 Jan 2004 21:38:14 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 7 Jan 2004 21:38:14 -0000 Received: by localhost.redhat.com (Postfix, from userid 469) id 960861A440D; Wed, 7 Jan 2004 16:37:11 -0500 (EST) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16380.31751.536695.156205@localhost.redhat.com> Date: Wed, 07 Jan 2004 21:38:00 -0000 To: mec.gnu@mindspring.com (Michael Elizabeth Chastain) Cc: ezannoni@redhat.com, gdb-patches@sources.redhat.com Subject: Re: [rfa/testsuite/stabs] weird.exp: skip hp In-Reply-To: <20040107213133.4B8C34B35A@berman.michael-chastain.com> References: <20040107213133.4B8C34B35A@berman.michael-chastain.com> X-SW-Source: 2004-01/txt/msg00173.txt.bz2 Michael Elizabeth Chastain writes: > This patch fixes weird.exp so that it skips properly on hp-ux. > > The old code looked at the CC environment variable. The new code looks > at hp_cc_compiler and hp_aCC_compiler. > > This isn't perfect, because we really want to test for the HP assembler, > not the HP compiler. If someone is using an HP compiler then of course > they are using the HP assembler. But if someone is using gcc with the > HP assembler (which is not recommended on hp-ux), then the test script > is going to execute. > > If I detect hp_cc_compiler or hp_aCC_compiler, I issue one UNSUPPORTED > message and skip the test script. > > I also fixed the copyright years by adding years where patches were > committed to this file on cvs HEAD. I could do this as a separate > patch if you want. > > Tested on: > > native i686-pc-linux-gnu, gcc 2.95.3 3.3.2 HEAD, dwarf-2 and stabs+ > native hppa2.0w-hp-hpux11.11, hp ansi c > > Okay to commit? > > Michael C > > 2004-01-07 Michael Chastain > > * gdb.stabs/weird.exp: Use hp_cc_compiler and hp_aCC_compiler > to test for hp-ux assembler. Fix copyright years. Ok. elena