* symbols.c (decode_local_label_name): Initialize message_format
only when an error is reported (perf pb due to I18N).
This commit is contained in:
parent
3737d05150
commit
d95767bf85
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2001-02-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
|
||||||
|
|
||||||
|
* symbols.c (decode_local_label_name): Initialize message_format
|
||||||
|
only when an error is reported (perf pb due to I18N).
|
||||||
|
|
||||||
2001-02-23 H.J. Lu <hjl@gnu.org>
|
2001-02-23 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* dwarf2dbg.c (dwarf2_directive_file): Call s_app_file (0) if
|
* dwarf2dbg.c (dwarf2_directive_file): Call s_app_file (0) if
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* symbols.c -symbol table-
|
/* 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.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GAS, the GNU Assembler.
|
This file is part of GAS, the GNU Assembler.
|
||||||
|
@ -1530,7 +1530,7 @@ decode_local_label_name (s)
|
||||||
int label_number;
|
int label_number;
|
||||||
int instance_number;
|
int instance_number;
|
||||||
char *type;
|
char *type;
|
||||||
const char *message_format = _("\"%d\" (instance number %d of a %s label)");
|
const char *message_format;
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|
||||||
#ifdef LOCAL_LABEL_PREFIX
|
#ifdef LOCAL_LABEL_PREFIX
|
||||||
|
@ -1554,6 +1554,7 @@ decode_local_label_name (s)
|
||||||
for (instance_number = 0, p++; isdigit ((unsigned char) *p); ++p)
|
for (instance_number = 0, p++; isdigit ((unsigned char) *p); ++p)
|
||||||
instance_number = (10 * instance_number) + *p - '0';
|
instance_number = (10 * instance_number) + *p - '0';
|
||||||
|
|
||||||
|
message_format = _("\"%d\" (instance number %d of a %s label)");
|
||||||
symbol_decode = obstack_alloc (¬es, strlen (message_format) + 30);
|
symbol_decode = obstack_alloc (¬es, strlen (message_format) + 30);
|
||||||
sprintf (symbol_decode, message_format, label_number, instance_number, type);
|
sprintf (symbol_decode, message_format, label_number, instance_number, type);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue