diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2017-11-06 16:02:33 +0100 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2017-11-06 16:02:33 +0100 |
commit | b07e9c466ed24af614090ac42d6730a291608f69 (patch) | |
tree | cd800a1298a4333f68ab971b516017362029fa0b /gdb/doublest.h | |
parent | 3b2ca8248cae742c00cb4e94138edf1403d43d47 (diff) | |
download | gdb-b07e9c466ed24af614090ac42d6730a291608f69.zip gdb-b07e9c466ed24af614090ac42d6730a291608f69.tar.gz gdb-b07e9c466ed24af614090ac42d6730a291608f69.tar.bz2 |
Target FP: Remove unused floating-point routines
This patch removes the following routines, which now have no remaining
users in GDB:
- extract_typed_floating
- store_typed_floating
- convert_typed_floating
- decimal_from_doublest
- decimal_to_doublest
- value_as_double
- unpack_double
- value_from_double
- value_from_decfloat
This completes removal of DOUBLEST from all files except doublest.{c,h}
and target-float.c.
gdb/ChangeLog:
2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
* doublest.c: Do not include "gdbtypes.h".
(extract_typed_floating): Remove.
(store_typed_floating): Remove.
(convert_typed_floating): Remove.
* doublest.h (struct type): Remove.
(DOUBLEST_PRINT_FORMAT): Remove.
(DOUBLEST_SCAN_FORMAT): Remove.
(extract_typed_floating): Remove.
(store_typed_floating): Remove.
(convert_typed_floating): Remove.
* dfp.c (decimal_from_doublest): Remove.
(decimal_to_doublest): Remove.
* dfp.h: Do not include "doublest.h".
(decimal_from_doublest): Remove.
(decimal_to_doublest): Remove.
* value.c: Do not include "doublest.h" and "dfp.h".
(value_as_double): Remove.
(unpack_double): Remove.
(value_from_double): Remove.
(value_from_decfloat): Remove.
* value.h: Do not include "doublest.h".
(value_as_double): Remove.
(unpack_double): Remove.
(value_from_double): Remove.
(value_from_decfloat): Remove.
Diffstat (limited to 'gdb/doublest.h')
-rw-r--r-- | gdb/doublest.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/gdb/doublest.h b/gdb/doublest.h index 4b9d6bc..fe3f897 100644 --- a/gdb/doublest.h +++ b/gdb/doublest.h @@ -20,7 +20,6 @@ #ifndef DOUBLEST_H #define DOUBLEST_H -struct type; struct floatformat; /* Use `long double' if the host compiler supports it. (Note that this is not @@ -35,12 +34,8 @@ struct floatformat; #if (defined HAVE_LONG_DOUBLE && defined PRINTF_HAS_LONG_DOUBLE \ && defined SCANF_HAS_LONG_DOUBLE) typedef long double DOUBLEST; -# define DOUBLEST_PRINT_FORMAT "Lg" -# define DOUBLEST_SCAN_FORMAT "Lg" #else typedef double DOUBLEST; -# define DOUBLEST_PRINT_FORMAT "g" -# define DOUBLEST_SCAN_FORMAT "lg" /* If we can't scan or print long double, we don't want to use it anywhere. */ # undef HAVE_LONG_DOUBLE @@ -81,12 +76,4 @@ extern bool floatformat_from_string (const struct floatformat *fmt, extern size_t floatformat_totalsize_bytes (const struct floatformat *fmt); -extern DOUBLEST extract_typed_floating (const void *addr, - const struct type *type); -extern void store_typed_floating (void *addr, const struct type *type, - DOUBLEST val); -extern void convert_typed_floating (const void *from, - const struct type *from_type, - void *to, const struct type *to_type); - #endif |