This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] localize string returned from visium's md_atof ()
- From: tbsaunde+binutils at tbsaunde dot org
- To: binutils at sourceware dot org
- Cc: Trevor Saunders <tbsaunde+binutils at tbsaunde dot org>
- Date: Tue, 22 Mar 2016 21:33:50 -0400
- Subject: [PATCH] localize string returned from visium's md_atof ()
- Authentication-results: sourceware.org; auth=none
From: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
Hi,
I'm not sure the string it returns is particularly useful, or better than the
string returned by other atof implementations on failure, but given the others
return a localized string it seems like this one should too.
If someone has a better idea for the string here that would be good, and I'm
not really sure if I need to do more to get the string localized. However at
least this patch calls attention to the issue :)
I tested a cross to visium-elf still builds, ok?
Trev
gas/ChangeLog:
2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-visium.c (md_atof): Localize the string returned on
failure.
---
gas/config/tc-visium.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gas/config/tc-visium.c b/gas/config/tc-visium.c
index 3758a35..f4e7c14 100644
--- a/gas/config/tc-visium.c
+++ b/gas/config/tc-visium.c
@@ -861,7 +861,7 @@ md_atof (int type, char *litP, int *sizeP)
default:
*sizeP = 0;
- return "Bad call to MD_ATOF()";
+ return _("Bad call to MD_ATOF()");
}
t = atof_ieee (input_line_pointer, type, words);
--
2.1.4