diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2015-08-22 12:44:51 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2015-08-22 12:44:51 +0000 |
commit | 584a7c462b32f779ea389198aaedf882199bf794 (patch) | |
tree | 7104e87e5951946b0658465d43cc82de97a9436a /gcc/c-family/c-lex.c | |
parent | ed9fa8d2a37d72d00e76f63968fad2f2819a3219 (diff) | |
download | gcc-584a7c462b32f779ea389198aaedf882199bf794.zip gcc-584a7c462b32f779ea389198aaedf882199bf794.tar.gz gcc-584a7c462b32f779ea389198aaedf882199bf794.tar.bz2 |
Fix column location in c_lex_with_flags errors
gcc/testsuite/ChangeLog:
2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
* gcc.dg/cpp/multiline-2.c: Add column numbers.
* gcc.dg/dollar.c: Likewise.
* gcc.dg/pragma-message.c: Likewise.
* g++.dg/cpp1y/digit-sep-neg.C: Likewise.
* c-c++-common/raw-string-14.c: Likewise.
gcc/c-family/ChangeLog:
2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
* c-lex.c (c_lex_with_flags): Use explicit locations.
From-SVN: r227096
Diffstat (limited to 'gcc/c-family/c-lex.c')
-rw-r--r-- | gcc/c-family/c-lex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-family/c-lex.c b/gcc/c-family/c-lex.c index e993716..55ceb20 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; |