summaryrefslogtreecommitdiffstats
path: root/libiberty
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2022-03-19 13:33:40 -0400
committerJeff Law <jeffreyalaw@gmail.com>2022-03-19 13:33:40 -0400
commitb2dff6b2d9d6179e810724e91b539c79c7a7ac33 (patch)
tree64a5ac33baa85af41e5c6682a5dca73293acacbe /libiberty
parenti386: Don't emit pushf;pop for __builtin_ia32_readeflags_u* with unused lhs [... (diff)
downloadgcc-b2dff6b2d9d6179e810724e91b539c79c7a7ac33.tar.gz
gcc-b2dff6b2d9d6179e810724e91b539c79c7a7ac33.tar.bz2
gcc-b2dff6b2d9d6179e810724e91b539c79c7a7ac33.tar.xz
rename floatformat_ia64_quad_{big, little} to floatformat_ieee_quad_{big, little}
I submitted a GDB patch [1] to rename floatformats_ia64_quad to floatformats_ieee_quad to reflect the reality, and then we can clean up the related code. As GDB Global Maintainer Tom Tromey said [2]: These files are maintained in gcc and then imported into the binutils-gdb repository, so any changes to them will have to be proposed there first. this GCC patch is preparation for the GDB patch, no functionality change. [1] https://sourceware.org/pipermail/gdb-patches/2022-March/186452.html [2] https://sourceware.org/pipermail/gdb-patches/2022-March/186569.html Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> include/ * floatformat.h (floatformat_ieee_quad_big): Renamed from floatformat_ia64_quad_big. (floatformat_ieee_quad_little): Similarly. libiberty/ * floatformat.c (floatformat_ieee_quad_big): Renamed from floatformat_ia64_quad_big. (floatformat_ieee_quad_little): Similarly.
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/floatformat.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c
index ce36bae7b63..f93568b375e 100644
--- a/libiberty/floatformat.c
+++ b/libiberty/floatformat.c
@@ -78,7 +78,7 @@ floatformat_always_valid (const struct floatformat *fmt ATTRIBUTE_UNUSED,
78 a system header, what we do if not, etc. */ 78 a system header, what we do if not, etc. */
79#define FLOATFORMAT_CHAR_BIT 8 79#define FLOATFORMAT_CHAR_BIT 8
80 80
81/* floatformats for IEEE half, single and double, big and little endian. */ 81/* floatformats for IEEE half, single, double and quad, big and little endian. */
82const struct floatformat floatformat_ieee_half_big = 82const struct floatformat floatformat_ieee_half_big =
83{ 83{
84 floatformat_big, 16, 0, 1, 5, 15, 31, 6, 10, 84 floatformat_big, 16, 0, 1, 5, 15, 31, 6, 10,
@@ -127,6 +127,22 @@ const struct floatformat floatformat_ieee_double_little =
127 floatformat_always_valid, 127 floatformat_always_valid,
128 NULL 128 NULL
129}; 129};
130const struct floatformat floatformat_ieee_quad_big =
131{
132 floatformat_big, 128, 0, 1, 15, 16383, 0x7fff, 16, 112,
133 floatformat_intbit_no,
134 "floatformat_ieee_quad_big",
135 floatformat_always_valid,
136 NULL
137};
138const struct floatformat floatformat_ieee_quad_little =
139{
140 floatformat_little, 128, 0, 1, 15, 16383, 0x7fff, 16, 112,
141 floatformat_intbit_no,
142 "floatformat_ieee_quad_little",
143 floatformat_always_valid,
144 NULL
145};
130 146
131/* floatformat for IEEE double, little endian byte order, with big endian word 147/* floatformat for IEEE double, little endian byte order, with big endian word
132 ordering, as on the ARM. */ 148 ordering, as on the ARM. */
@@ -269,22 +285,6 @@ const struct floatformat floatformat_ia64_spill_little =
269 floatformat_always_valid, 285 floatformat_always_valid,
270 NULL 286 NULL
271}; 287};
272const struct floatformat floatformat_ia64_quad_big =
273{
274 floatformat_big, 128, 0, 1, 15, 16383, 0x7fff, 16, 112,
275 floatformat_intbit_no,
276 "floatformat_ia64_quad_big",
277 floatformat_always_valid,
278 NULL
279};
280const struct floatformat floatformat_ia64_quad_little =
281{
282 floatformat_little, 128, 0, 1, 15, 16383, 0x7fff, 16, 112,
283 floatformat_intbit_no,
284 "floatformat_ia64_quad_little",
285 floatformat_always_valid,
286 NULL
287};
288 288
289static int 289static int
290floatformat_ibm_long_double_is_valid (const struct floatformat *fmt, 290floatformat_ibm_long_double_is_valid (const struct floatformat *fmt,