mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-26 04:15:28 +00:00
PR gas/16109
* app.c (do_scrub_chars): Only insert a newline character if end-of-file has been reached.
This commit is contained in:
parent
077e2c8848
commit
cf3f45fad7
@ -1,3 +1,9 @@
|
||||
2013-11-19 Alexey Makhalov <makhaloff@gmail.com>
|
||||
|
||||
PR gas/16109
|
||||
* app.c (do_scrub_chars): Only insert a newline character if
|
||||
end-of-file has been reached.
|
||||
|
||||
2013-11-18 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* config/tc-i386.c (lex_got): Add a dummy "int bnd_prefix"
|
||||
|
11
gas/app.c
11
gas/app.c
@ -1217,9 +1217,16 @@ do_scrub_chars (size_t (*get) (char *, size_t), char *tostart, size_t tolen)
|
||||
while (ch != EOF && !IS_NEWLINE (ch))
|
||||
ch = GET ();
|
||||
if (ch == EOF)
|
||||
as_warn (_("end of file in comment; newline inserted"));
|
||||
{
|
||||
as_warn (_("end of file in comment; newline inserted"));
|
||||
PUT ('\n');
|
||||
}
|
||||
else /* IS_NEWLINE (ch) */
|
||||
{
|
||||
/* To process non-zero add_newlines. */
|
||||
UNGET (ch);
|
||||
}
|
||||
state = 0;
|
||||
PUT ('\n');
|
||||
break;
|
||||
}
|
||||
/* Looks like `# 123 "filename"' from cpp. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user