diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2017-11-06 16:04:03 +0100 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2017-11-06 16:04:03 +0100 |
commit | 1cfb73dbb7503d1cfb088c14d1125a5030a1f386 (patch) | |
tree | a3446d08987ce758763ba739f3b8cb09d0f260db /gdb/Makefile.in | |
parent | b07e9c466ed24af614090ac42d6730a291608f69 (diff) | |
download | gdb-1cfb73dbb7503d1cfb088c14d1125a5030a1f386.zip gdb-1cfb73dbb7503d1cfb088c14d1125a5030a1f386.tar.gz gdb-1cfb73dbb7503d1cfb088c14d1125a5030a1f386.tar.bz2 |
Target FP: Merge doublest.c and dfp.c into target-float.c
Now that all target FP operations are performed via target-float.c,
this file remains the sole caller of functions in doublest.c and dfp.c.
Therefore, this patch merges the latter files into the former and
makes all their function static there.
gdb/ChangeLog:
2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
* Makefile.in (SFILES): Remove doublest.c and dfp.c.
(HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
(COMMON_OBS): Remove doublest.o and dfp.o.
Do not build target-float.c (instead of doublest.c)
with -Wformat-nonliteral.
* doublest.c: Remove file.
* doublest.h: Remove file.
* dfp.c: Remove file.
* dfp.h: Remove file.
* target-float.c: Do not include "doublest.h" and "dfp.h".
(DOUBLEST): Move here from doublest.h.
(enum float_kind): Likewise.
(FLOATFORMAT_CHAR_BIT): Likewise.
(FLOATFORMAT_LARGEST_BYTES): Likewise.
(floatformat_totalsize_bytes): Move here from doublest.c. Make static.
(floatformat_precision): Likewise.
(floatformat_normalize_byteorder, get_field, put_field): Likewise.
(floatformat_is_negative, floatformat_classify, floatformat_mantissa):
Likewise.
(host_float_format, host_double_format, host_long_double_format):
Likewise.
(floatformat_to_string, floatformat_from_string): Likewise.
(floatformat_to_doublest): Likewise. Also, inline the original
convert_floatformat_to_doublest.
(floatformat_from_doublest): Likewise. Also, inline the original
convert_floatformat_from_doublest.
Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
(MAX_DECIMAL_STRING): Move here from dfp.c.
(match_endianness): Likewise.
(set_decnumber_context, decimal_check_errors): Likewise.
(decimal_from_number, decimal_to_number): Likewise.
(decimal_to_string, decimal_from_string): Likewise. Make static.
(decimal_from_longest, decimal_from_ulongest): Likewise.
(decimal_to_longest): Likewise.
(decimal_binop, decimal_is_zero, decimal_compare): Likewise.
(decimal_convert): Likewise.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 9e8cdf7..84d3493 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1086,11 +1086,9 @@ SFILES = \ d-valprint.c \ dbxread.c \ demangle.c \ - dfp.c \ dictionary.c \ disasm.c \ disasm-selftests.c \ - doublest.c \ dtrace-probe.c \ dummy-frame.c \ dwarf2-frame.c \ @@ -1320,11 +1318,9 @@ HFILES_NO_SRCDIR = \ darwin-nat.h \ dcache.h \ defs.h \ - dfp.h \ dicos-tdep.h \ dictionary.h \ disasm.h \ - doublest.h \ dummy-frame.h \ dwarf2-frame.h \ dwarf2-frame-tailcall.h \ @@ -1709,11 +1705,9 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \ dbxread.o \ debug.o \ demangle.o \ - dfp.o \ dictionary.o \ disasm.o \ disasm-selftests.o \ - doublest.o \ dummy-frame.o \ dwarf2-frame.o \ dwarf2-frame-tailcall.o \ @@ -2735,10 +2729,10 @@ printcmd.o: $(srcdir)/printcmd.c $(COMPILE.post) $(srcdir)/printcmd.c $(POSTCOMPILE) -# Same for "doublest.c". -doublest.o: $(srcdir)/doublest.c +# Same for "target-float.c". +target-float.o: $(srcdir)/target-float.c $(COMPILE.pre) $(INTERNAL_CFLAGS) $(GDB_WARN_CFLAGS_NO_FORMAT) \ - $(COMPILE.post) $(srcdir)/doublest.c + $(COMPILE.post) $(srcdir)/target-float.c # ada-exp.c can appear in srcdir, for releases; or in ., for # development builds. |