]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/binutils-tumbl.git/commitdiff
include/ChangeLog:
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 6 Jul 2010 12:56:23 +0000 (12:56 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Tue, 6 Jul 2010 12:56:23 +0000 (12:56 +0000)
2010-07-06  Ken Werner  <ken.werner@de.ibm.com>

* floatformat.h (floatformat_ieee_half_big): Add declaration.
(floatformat_ieee_half_little): Likewise.

libiberty/ChangeLog:

2010-07-06  Ken Werner  <ken.werner@de.ibm.com>

* floatformat.c (floatformat_ieee_half_big): New variable.
(floatformat_ieee_half_little): Likewise.

gdb/ChangeLog:

2010-07-06  Ken Werner  <ken.werner@de.ibm.com>

* gdbtypes.h (floatformats_ieee_half): Add declaration.
* gdbtypes.c (floatformats_ieee_half): New variable.
* doublest.c (floatformat_from_length): Set format to
gdbarch_half_format if length matches.
* gdbarch.sh (half_bit): New architecture method.
(half_format): Likewise.
* gdbarch.h: Regenerate.
* gdbarch.c: Likewise.

include/ChangeLog
include/floatformat.h
libiberty/ChangeLog
libiberty/floatformat.c

index 4fb2a44894c7e7443461d5066be3bf1f54aee44b..91b2edbed0f2b742d0b0540f5cb75d10d871c29d 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-06  Ken Werner  <ken.werner@de.ibm.com>
+
+       * floatformat.h (floatformat_ieee_half_big): Add declaration.
+       (floatformat_ieee_half_little): Likewise.
+
 2010-06-29  Alan Modra  <amodra@gmail.com>
 
        * dis-asm.h: Remove references to maxq.
index c5f60a3cd93a285dfb8d3e063a614bd196a7a125..0fc8e75dc8b3316a05022406c8d75e296ad9a7be 100644 (file)
@@ -96,6 +96,8 @@ struct floatformat
 
 /* floatformats for IEEE single and double, big and little endian.  */
 
+extern const struct floatformat floatformat_ieee_half_big;
+extern const struct floatformat floatformat_ieee_half_little;
 extern const struct floatformat floatformat_ieee_single_big;
 extern const struct floatformat floatformat_ieee_single_little;
 extern const struct floatformat floatformat_ieee_double_big;
index a16e393d0277da81b383f31ea13beb2b93542004..1b1610b6929aaddc789c9ef375b794688feabfe2 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-06  Ken Werner  <ken.werner@de.ibm.com>
+
+       * floatformat.c (floatformat_ieee_half_big): New variable.
+       (floatformat_ieee_half_little): Likewise.
+
 2010-06-14  Gerald Pfeifer  <gerald@pfeifer.com>
 
        * libiberty.texi: Remove reference to GCC 3 and 2001 (thrice).
index cbf13ea3406076ec7efd052d408ac135ec2eda09..4819507cbdd2812ee3cda622a07dd66c713c9458 100644 (file)
@@ -77,7 +77,23 @@ floatformat_always_valid (const struct floatformat *fmt ATTRIBUTE_UNUSED,
    a system header, what we do if not, etc.  */
 #define FLOATFORMAT_CHAR_BIT 8
 
-/* floatformats for IEEE single and double, big and little endian.  */
+/* floatformats for IEEE half, single and double, big and little endian.  */
+const struct floatformat floatformat_ieee_half_big =
+{
+  floatformat_big, 16, 0, 1, 5, 15, 31, 6, 10,
+  floatformat_intbit_no,
+  "floatformat_ieee_half_big",
+  floatformat_always_valid,
+  NULL
+};
+const struct floatformat floatformat_ieee_half_little =
+{
+  floatformat_little, 16, 0, 1, 5, 15, 31, 6, 10,
+  floatformat_intbit_no,
+  "floatformat_ieee_half_little",
+  floatformat_always_valid,
+  NULL
+};
 const struct floatformat floatformat_ieee_single_big =
 {
   floatformat_big, 32, 0, 1, 8, 127, 255, 9, 23,