From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19167 invoked by alias); 23 May 2002 16:07:43 -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 19154 invoked from network); 23 May 2002 16:07:42 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 23 May 2002 16:07:42 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 9276E3CC5; Thu, 23 May 2002 12:07:55 -0400 (EDT) Message-ID: <3CED13DB.3080304@cygnus.com> Date: Thu, 23 May 2002 09:09:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0rc2) Gecko/20020518 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Snyder Cc: gdb-patches@sources.redhat.com, ezannoni@redhat.com Subject: Re: [PATCH] Tweak tests for target with 4-byte doubles References: <200205231527.g4NFRSS31776@reddwarf.sfbay.redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00871.txt.bz2 > 2002-05-23 Michael Snyder > > * gdb.base/all-bin.exp: Allow for reduced floating point precision. > * gdb.base/call-rt-st.exp: Ditto. > > Index: all-bin.exp > =================================================================== > RCS file: /cvs/src/src/gdb/testsuite/gdb.base/all-bin.exp,v > retrieving revision 1.2 > diff -p -r1.2 all-bin.exp > *** all-bin.exp 6 Mar 2001 08:21:50 -0000 1.2 > --- all-bin.exp 23 May 2002 15:40:03 -0000 > *************** send_gdb "print v_int+v_double\n" > *** 189,198 **** > gdb_expect { > -re ".*206.56565.*$gdb_prompt $" { > pass "print value of v_int+v_double" > ! } > -re ".*$gdb_prompt $" { fail "print value of v_int+v_double" } > ! timeout { fail "(timeout) print value of v_int+" } > ! } > Michael, Last time this was raised it was concluded that GDB shouldn't be testing the FPU here. Rather than adding d10v specific hacks, reduce the precision of the value being checked. (I think it was also suggested that instead of having if (d10v) have if (sizeof_double < 8) or something. Andrew