From: Marek Polacek Date: Wed, 12 Aug 2015 11:26:39 +0000 (+0000) Subject: c-decl.c (grokdeclarator): Call error_at instead of error and pass LOC to it. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=191a6b94e688171a6e62f0ee3443011f0d1d1855;p=gcc.git 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 --- diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index d9c80a5a7aa..275d7879fd6 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,8 @@ +2015-08-12 Marek Polacek + + * c-decl.c (grokdeclarator): Call error_at instead of error and pass + LOC to it. + 2015-08-03 Marek Polacek PR c/67088 diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index 0d7aa3feb48..b83c584c701 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; } }