(output_line_command): Use alloca for line_cmd_buf.

From-SVN: r2837
This commit is contained in:
Richard Kenner 1992-12-04 19:19:27 -05:00
parent fa7d8b922c
commit 4f88a538e3

View File

@ -6784,7 +6784,7 @@ output_line_command (ip, op, conditional, file_change)
enum file_change_code file_change;
{
int len;
char line_cmd_buf[500];
char *line_cmd_buf;
if (no_line_commands
|| ip->fname == NULL
@ -6816,6 +6816,7 @@ output_line_command (ip, op, conditional, file_change)
ip->bufp++;
}
line_cmd_buf = (char *) alloca (strlen (ip->nominal_fname) + 100);
#ifdef OUTPUT_LINE_COMMANDS
sprintf (line_cmd_buf, "#line %d \"%s\"", ip->lineno, ip->nominal_fname);
#else