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-Tag: basepoints/gcc-7~5139 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=191a6b94e688171a6e62f0ee3443011f0d1d1855;p=thirdparty%2Fgcc.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 d9c80a5a7aad..275d7879fd6f 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 0d7aa3feb482..b83c584c7019 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; } }