diff options
author | Marek Polacek <polacek@redhat.com> | 2015-08-12 11:26:39 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-08-12 11:26:39 +0000 |
commit | 191a6b94e688171a6e62f0ee3443011f0d1d1855 (patch) | |
tree | 6e7b99cb5c29a75db6e0cee8754ba665682131c1 | |
parent | 93666a7b00af8863117d20e4ba55c2188bfa663e (diff) | |
download | gcc-191a6b94e688171a6e62f0ee3443011f0d1d1855.zip gcc-191a6b94e688171a6e62f0ee3443011f0d1d1855.tar.gz gcc-191a6b94e688171a6e62f0ee3443011f0d1d1855.tar.bz2 |
c-decl.c (grokdeclarator): Call error_at instead of error and pass LOC to it.
* c-decl.c (grokdeclarator): Call error_at instead of error and pass
LOC to it.
From-SVN: r226807
-rw-r--r-- | gcc/c/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c/c-decl.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index d9c80a5..275d787 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,8 @@ +2015-08-12 Marek Polacek <polacek@redhat.com> + + * c-decl.c (grokdeclarator): Call error_at instead of error and pass + LOC to it. + 2015-08-03 Marek Polacek <polacek@redhat.com> PR c/67088 diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index 0d7aa3f..b83c584 100644 --- a/gcc/c/c-decl.c +++ b/gcc/c/c-decl.c @@ -6233,9 +6233,9 @@ grokdeclarator (const struct c_declarator *declarator, if (type_quals & TYPE_QUAL_ATOMIC) { if (name) - error ("bit-field %qE has atomic type", name); + error_at (loc, "bit-field %qE has atomic type", name); else - error ("bit-field has atomic type"); + error_at (loc, "bit-field has atomic type"); type_quals &= ~TYPE_QUAL_ATOMIC; } } |