mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-14 06:23:58 +08:00
cpplib.c (handle_directive): Print non-NUL-terminated string with %.*s.
* cpplib.c (handle_directive): Print non-NUL-terminated string with %.*s. From-SVN: r34514
This commit is contained in:
parent
ff164a61f3
commit
54925c2087
@ -1,3 +1,8 @@
|
||||
2000-06-13 Zack Weinberg <zack@wolery.cumb.org>
|
||||
|
||||
* cpplib.c (handle_directive): Print non-NUL-terminated string
|
||||
with %.*s.
|
||||
|
||||
2000-06-12 Michael Meissner <meissner@redhat.com>
|
||||
|
||||
* ifcvt.c (dead_or_predicable): Don't do conditional execution
|
||||
|
@ -244,7 +244,8 @@ _cpp_handle_directive (pfile)
|
||||
assembler pseudo-ops. Don't complain about invalid directives
|
||||
in skipped conditional groups (6.10 p4). */
|
||||
if (!pfile->skipping && !CPP_OPTION (pfile, lang_asm))
|
||||
cpp_error (pfile, "invalid preprocessing directive #%s", ident);
|
||||
cpp_error (pfile, "invalid preprocessing directive #%.*s",
|
||||
(int) len, ident);
|
||||
return 0;
|
||||
}
|
||||
/* And anything else means the # wasn't a directive marker. */
|
||||
|
Loading…
Reference in New Issue
Block a user