summaryrefslogtreecommitdiff
path: root/gcc/c-family/c-lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-family/c-lex.c')
-rw-r--r--gcc/c-family/c-lex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-family/c-lex.c b/gcc/c-family/c-lex.c
index e9937163609..55ceb20a01f 100644
--- a/gcc/c-family/c-lex.c
+++ b/gcc/c-family/c-lex.c
@@ -523,11 +523,11 @@ c_lex_with_flags (tree *value, location_t *loc, unsigned char *cpp_flags,
cppchar_t c = tok->val.str.text[0];
if (c == '"' || c == '\'')
- error ("missing terminating %c character", (int) c);
+ error_at (*loc, "missing terminating %c character", (int) c);
else if (ISGRAPH (c))
- error ("stray %qc in program", (int) c);
+ error_at (*loc, "stray %qc in program", (int) c);
else
- error ("stray %<\\%o%> in program", (int) c);
+ error_at (*loc, "stray %<\\%o%> in program", (int) c);
}
goto retry;