gas/
2005-05-10 Jan Beulich <jbeulich@novell.com> * read.c (s_macro): Move local variable 'local' to smaller scope. Call sb_kill on it when done.
This commit is contained in:
parent
4ca02259f7
commit
360e86f1eb
2 changed files with 14 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-05-10 Jan Beulich <jbeulich@novell.com>
|
||||||
|
|
||||||
|
* read.c (s_macro): Move local variable 'local' to smaller scope.
|
||||||
|
Call sb_kill on it when done.
|
||||||
|
|
||||||
2005-05-09 Jan Beulich <jbeulich@novell.com>
|
2005-05-09 Jan Beulich <jbeulich@novell.com>
|
||||||
|
|
||||||
* config/tc-i386.c (optimize_disp): Discard displacement entirely when zero and
|
* config/tc-i386.c (optimize_disp): Discard displacement entirely when zero and
|
||||||
|
|
11
gas/read.c
11
gas/read.c
|
@ -2348,7 +2348,6 @@ s_macro (int ignore ATTRIBUTE_UNUSED)
|
||||||
char *file;
|
char *file;
|
||||||
unsigned int line;
|
unsigned int line;
|
||||||
sb s;
|
sb s;
|
||||||
sb label;
|
|
||||||
const char *err;
|
const char *err;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
|
@ -2358,11 +2357,17 @@ s_macro (int ignore ATTRIBUTE_UNUSED)
|
||||||
while (!is_end_of_line[(unsigned char) *input_line_pointer])
|
while (!is_end_of_line[(unsigned char) *input_line_pointer])
|
||||||
sb_add_char (&s, *input_line_pointer++);
|
sb_add_char (&s, *input_line_pointer++);
|
||||||
|
|
||||||
sb_new (&label);
|
|
||||||
if (line_label != NULL)
|
if (line_label != NULL)
|
||||||
sb_add_string (&label, S_GET_NAME (line_label));
|
{
|
||||||
|
sb label;
|
||||||
|
|
||||||
|
sb_new (&label);
|
||||||
|
sb_add_string (&label, S_GET_NAME (line_label));
|
||||||
err = define_macro (0, &s, &label, get_line_sb, file, line, &name);
|
err = define_macro (0, &s, &label, get_line_sb, file, line, &name);
|
||||||
|
sb_kill (&label);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
err = define_macro (0, &s, NULL, get_line_sb, file, line, &name);
|
||||||
if (err != NULL)
|
if (err != NULL)
|
||||||
as_bad_where (file, line, err, name);
|
as_bad_where (file, line, err, name);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue