aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ns32k.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-10-17 16:45:56 +0000
committerNick Clifton <nickc@redhat.com>2007-10-17 16:45:56 +0000
commit499ac353610f24006acf82c32503d8d15d0f278c (patch)
treea85388693f1bb562345a7f7a28875fd962bd16f0 /gas/config/tc-ns32k.c
parent25b07cd9c40077c076d68f9e7d5a113828fbebbf (diff)
downloadgdb-499ac353610f24006acf82c32503d8d15d0f278c.zip
gdb-499ac353610f24006acf82c32503d8d15d0f278c.tar.gz
gdb-499ac353610f24006acf82c32503d8d15d0f278c.tar.bz2
Remove duplicate definitions of the md_atof() function
Diffstat (limited to 'gas/config/tc-ns32k.c')
-rw-r--r--gas/config/tc-ns32k.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/gas/config/tc-ns32k.c b/gas/config/tc-ns32k.c
index a1e6955..66aeae8 100644
--- a/gas/config/tc-ns32k.c
+++ b/gas/config/tc-ns32k.c
@@ -1913,9 +1913,6 @@ md_begin (void)
freeptr_static = (char *) malloc (PRIVATE_SIZE);
}
-/* Must be equal to MAX_PRECISON in atof-ieee.c. */
-#define MAX_LITTLENUMS 6
-
/* Turn the string pointed to by litP into a floating point constant
of type TYPE, and emit the appropriate bytes. The number of
LITTLENUMS emitted is stored in *SIZEP. An error message is
@@ -1924,38 +1921,7 @@ md_begin (void)
char *
md_atof (int type, char *litP, int *sizeP)
{
- int prec;
- LITTLENUM_TYPE words[MAX_LITTLENUMS];
- LITTLENUM_TYPE *wordP;
- char *t;
-
- switch (type)
- {
- case 'f':
- prec = 2;
- break;
-
- case 'd':
- prec = 4;
- break;
- default:
- *sizeP = 0;
- return _("Bad call to MD_ATOF()");
- }
-
- t = atof_ieee (input_line_pointer, type, words);
- if (t)
- input_line_pointer = t;
-
- *sizeP = prec * sizeof (LITTLENUM_TYPE);
-
- for (wordP = words + prec; prec--;)
- {
- md_number_to_chars (litP, (long) (*--wordP), sizeof (LITTLENUM_TYPE));
- litP += sizeof (LITTLENUM_TYPE);
- }
-
- return 0;
+ return ieee_md_atof (type, litP, sizeP, FALSE);
}
int