From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32127 invoked by alias); 4 Dec 2004 14:38:27 -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 31982 invoked from network); 4 Dec 2004 14:38:10 -0000 Received: from unknown (HELO cmailm4.svr.pol.co.uk) (195.92.193.211) by sourceware.org with SMTP; 4 Dec 2004 14:38:10 -0000 Received: from modem-166.bursa-trigger.dialup.pol.co.uk ([62.136.244.166] helo=merlin.buzzard.freeserve.co.uk) by cmailm4.svr.pol.co.uk with esmtp (Exim 4.41) id 1Cab32-0004CT-Lb for gdb-patches@sources.redhat.com; Sat, 04 Dec 2004 14:38:09 +0000 Received: from merlin (localhost [127.0.0.1]) by merlin.buzzard.freeserve.co.uk (8.12.11/8.12.11) with ESMTP id iB4Ec0cq017568; Sat, 4 Dec 2004 14:38:00 GMT Message-Id: <200412041438.iB4Ec0cq017568@merlin.buzzard.freeserve.co.uk> To: gdb-patches@sources.redhat.com cc: Richard.Earnshaw@buzzard.freeserve.co.uk From: Richard Earnshaw Subject: RFA fix conversion of little-byte big-word floats to doublest Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_6029262920" Date: Sat, 04 Dec 2004 15:27:00 -0000 X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on merlin.buzzard.freeserve.co.uk X-SW-Source: 2004-12/txt/msg00110.txt.bz2 This is a multipart MIME message. --==_Exmh_6029262920 Content-Type: text/plain; charset=us-ascii Content-length: 347 This patch fixes a bug in get_field which meant that we incorrectly converted mixed-endian floats (ARM FPA style) into the internal doublest format. This short change fixes over 300 testsuite failures in a combined arm/thumb testsuite run on arm-elf. * doublest.c (get_field): Correctly extract floatformat_littebyte_bigword fields. OK? --==_Exmh_6029262920 Content-Type: text/x-patch ; name="doublest.patch"; charset=us-ascii Content-Description: doublest.patch Content-Disposition: attachment; filename="doublest.patch" Content-length: 859 Index: doublest.c =================================================================== RCS file: /cvs/src/src/gdb/doublest.c,v retrieving revision 1.22 diff -p -p -r1.22 doublest.c *** doublest.c 24 Aug 2004 22:49:27 -0000 1.22 --- doublest.c 4 Dec 2004 14:33:34 -0000 *************** get_field (unsigned char *data, enum flo *** 94,106 **** switch (order) { case floatformat_little: ++cur_byte; break; case floatformat_big: --cur_byte; break; - case floatformat_littlebyte_bigword: - break; } } if (len < sizeof(result) * FLOATFORMAT_CHAR_BIT) --- 94,105 ---- switch (order) { case floatformat_little: + case floatformat_littlebyte_bigword: ++cur_byte; break; case floatformat_big: --cur_byte; break; } } if (len < sizeof(result) * FLOATFORMAT_CHAR_BIT) --==_Exmh_6029262920--