mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
sim: m32c: fix initial #line number in generated code
This emits #line 2 for the first line in the output when it should be 1.
This commit is contained in:
@@ -282,7 +282,7 @@ dump_lines (opcode * op, int level, Indirect * ind)
|
||||
varnames[i], (i < vn - 1) ? "," : "\\n", varnames[i]);
|
||||
printf ("%*s }\n", level, "");
|
||||
}
|
||||
printf ("#line %d \"%s\"\n", op->lineno + 1, orig_filename);
|
||||
printf ("#line %d \"%s\"\n", op->lineno, orig_filename);
|
||||
for (i = 0; i < op->nlines; i++)
|
||||
printf ("%*s%s", level, "", op->lines[i]);
|
||||
if (op->comment)
|
||||
|
||||
Reference in New Issue
Block a user