projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ARM][gas] Fix warnings about uninitialised uses and unused const variables
[deliverable/binutils-gdb.git]
/
gas
/
config
/
atof-ieee.c
diff --git
a/gas/config/atof-ieee.c
b/gas/config/atof-ieee.c
index d901f318ee4dd35bd3414d8d11f79df4e1ca7810..443d28c2c4f8b0fbce4e0858b715593c1cbf3975 100644
(file)
--- a/
gas/config/atof-ieee.c
+++ b/
gas/config/atof-ieee.c
@@
-1,6
+1,5
@@
/* atof_ieee.c - turn a Flonum into an IEEE floating point number
/* atof_ieee.c - turn a Flonum into an IEEE floating point number
- Copyright 1987, 1992, 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2005,
- 2007 Free Software Foundation, Inc.
+ Copyright (C) 1987-2016 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
This file is part of GAS, the GNU Assembler.
@@
-24,7
+23,6
@@
/* Flonums returned here. */
extern FLONUM_TYPE generic_floating_point_number;
/* Flonums returned here. */
extern FLONUM_TYPE generic_floating_point_number;
-extern const char EXP_CHARS[];
/* Precision in LittleNums. */
/* Don't count the gap in the m68k extended precision format. */
#define MAX_PRECISION 5
/* Precision in LittleNums. */
/* Don't count the gap in the m68k extended precision format. */
#define MAX_PRECISION 5
@@
-285,7
+283,7
@@
gen_to_words (LITTLENUM_TYPE *words, int precision, long exponent_bits)
if (generic_floating_point_number.sign == 0)
{
if (TC_LARGEST_EXPONENT_IS_NORMAL (precision))
if (generic_floating_point_number.sign == 0)
{
if (TC_LARGEST_EXPONENT_IS_NORMAL (precision))
- as_warn (
"NaNs are not supported by this target\n"
);
+ as_warn (
_("NaNs are not supported by this target\n")
);
if (precision == F_PRECISION)
{
words[0] = 0x7fff;
if (precision == F_PRECISION)
{
words[0] = 0x7fff;
@@
-324,7
+322,7
@@
gen_to_words (LITTLENUM_TYPE *words, int precision, long exponent_bits)
else if (generic_floating_point_number.sign == 'P')
{
if (TC_LARGEST_EXPONENT_IS_NORMAL (precision))
else if (generic_floating_point_number.sign == 'P')
{
if (TC_LARGEST_EXPONENT_IS_NORMAL (precision))
- as_warn (
"Infinities are not supported by this target\n"
);
+ as_warn (
_("Infinities are not supported by this target\n")
);
/* +INF: Do the right thing. */
if (precision == F_PRECISION)
/* +INF: Do the right thing. */
if (precision == F_PRECISION)
@@
-365,7
+363,7
@@
gen_to_words (LITTLENUM_TYPE *words, int precision, long exponent_bits)
else if (generic_floating_point_number.sign == 'N')
{
if (TC_LARGEST_EXPONENT_IS_NORMAL (precision))
else if (generic_floating_point_number.sign == 'N')
{
if (TC_LARGEST_EXPONENT_IS_NORMAL (precision))
- as_warn (
"Infinities are not supported by this target\n"
);
+ as_warn (
_("Infinities are not supported by this target\n")
);
/* Negative INF. */
if (precision == F_PRECISION)
/* Negative INF. */
if (precision == F_PRECISION)
@@
-419,7
+417,7
@@
gen_to_words (LITTLENUM_TYPE *words, int precision, long exponent_bits)
- generic_floating_point_number.low);
/* Seek (and forget) 1st significant bit. */
- generic_floating_point_number.low);
/* Seek (and forget) 1st significant bit. */
- for (exponent_skippage = 0; !next_bits (1); ++exponent_skippage);
;
+ for (exponent_skippage = 0; !next_bits (1); ++exponent_skippage);
exponent_1 = (generic_floating_point_number.exponent
+ generic_floating_point_number.leader
+ 1
exponent_1 = (generic_floating_point_number.exponent
+ generic_floating_point_number.leader
+ 1
@@
-697,12
+695,11
@@
print_gen (gen)
}
#endif
}
#endif
-extern const char FLT_CHARS[];
#define MAX_LITTLENUMS 6
/* This is a utility function called from various tc-*.c files. It
is here in order to reduce code duplication.
#define MAX_LITTLENUMS 6
/* This is a utility function called from various tc-*.c files. It
is here in order to reduce code duplication.
-
+
Turn a string at input_line_pointer into a floating point constant
of type TYPE (a character found in the FLT_CHARS macro), and store
it as LITTLENUMS in the bytes buffer LITP. The number of chars
Turn a string at input_line_pointer into a floating point constant
of type TYPE (a character found in the FLT_CHARS macro), and store
it as LITTLENUMS in the bytes buffer LITP. The number of chars
@@
-711,7
+708,7
@@
extern const char FLT_CHARS[];
An error message is returned, or a NULL pointer if everything went OK. */
An error message is returned, or a NULL pointer if everything went OK. */
-char *
+c
onst c
har *
ieee_md_atof (int type,
char *litP,
int *sizeP,
ieee_md_atof (int type,
char *litP,
int *sizeP,
@@
-784,7
+781,7
@@
ieee_md_atof (int type,
return _("Unrecognized or unsupported floating point constant");
}
return _("Unrecognized or unsupported floating point constant");
}
- assert (prec <= MAX_LITTLENUMS);
+
gas_
assert (prec <= MAX_LITTLENUMS);
t = atof_ieee (input_line_pointer, type, words);
if (t)
t = atof_ieee (input_line_pointer, type, words);
if (t)
This page took
0.026126 seconds
and
4
git commands to generate.