Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* RFA fix conversion of little-byte big-word floats to doublest
@ 2004-12-04 15:27 Richard Earnshaw
  2004-12-04 15:47 ` Daniel Jacobowitz
  2004-12-04 16:01 ` Richard Earnshaw
  0 siblings, 2 replies; 9+ messages in thread
From: Richard Earnshaw @ 2004-12-04 15:27 UTC (permalink / raw)
  To: gdb-patches; +Cc: Richard.Earnshaw

[-- Attachment #1: Type: text/plain, Size: 347 bytes --]


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?


[-- Attachment #2: doublest.patch --]
[-- Type: text/x-patch , Size: 859 bytes --]

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)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-12-05  1:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-04 15:27 RFA fix conversion of little-byte big-word floats to doublest Richard Earnshaw
2004-12-04 15:47 ` Daniel Jacobowitz
2004-12-04 16:01 ` Richard Earnshaw
2004-12-04 16:57   ` Daniel Jacobowitz
2004-12-04 17:23   ` Richard Earnshaw
2004-12-04 17:33   ` Richard Earnshaw
2004-12-04 19:39     ` Daniel Jacobowitz
2004-12-05  1:51     ` Richard Earnshaw
2004-12-05 15:54       ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox