aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2001-02-24 09:57:24 +0000
committerStephane Carrez <stcarrez@nerim.fr>2001-02-24 09:57:24 +0000
commitd95767bf85efeb27aa791b01d4a8534bcff15a8e (patch)
tree8de8bacc823b74a8b062665136600a1dc7e93305 /gas/symbols.c
parent3737d05150f2c6632da15a91e0e61c218cac159f (diff)
downloadgdb-d95767bf85efeb27aa791b01d4a8534bcff15a8e.zip
gdb-d95767bf85efeb27aa791b01d4a8534bcff15a8e.tar.gz
gdb-d95767bf85efeb27aa791b01d4a8534bcff15a8e.tar.bz2
* symbols.c (decode_local_label_name): Initialize message_format
only when an error is reported (perf pb due to I18N).
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index fba40cf..fc2e7a5 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -1,5 +1,5 @@
/* symbols.c -symbol table-
- Copyright (C) 1987, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
+ Copyright (C) 1987, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -1530,7 +1530,7 @@ decode_local_label_name (s)
int label_number;
int instance_number;
char *type;
- const char *message_format = _("\"%d\" (instance number %d of a %s label)");
+ const char *message_format;
int index = 0;
#ifdef LOCAL_LABEL_PREFIX
@@ -1554,6 +1554,7 @@ decode_local_label_name (s)
for (instance_number = 0, p++; isdigit ((unsigned char) *p); ++p)
instance_number = (10 * instance_number) + *p - '0';
+ message_format = _("\"%d\" (instance number %d of a %s label)");
symbol_decode = obstack_alloc (&notes, strlen (message_format) + 30);
sprintf (symbol_decode, message_format, label_number, instance_number, type);