Commit 61d84605 by Mark Mitchell Committed by Mark Mitchell

stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt isn't set.

	* stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
	isn't set.

From-SVN: r32041
parent 277576ee
2000-02-17 Mark Mitchell <mark@codesourcery.com>
* stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
isn't set.
* invoke.texi (-fmessage-length=n): Document.
2000-02-17 Jason Merrill <jason@casey.cygnus.com>
......
......@@ -641,8 +641,14 @@ set_file_and_line_for_stmt (file, line)
char *file;
int line;
{
/* If we're outputting an inline function, and we add a line note,
there may be no CFUN->STMT information. So, there's no need to
update it. */
if (cfun->stmt)
{
emit_filename = file;
emit_lineno = line;
}
}
/* Emit a no-op instruction. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment