This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C PATCH] Add location to error_init (PR c/61096)


On Fri, 9 May 2014, Marek Polacek wrote:

> Another piece of puzzle.  error_init didn't have a location parameter,
> so initialization errors had wrong column info.  This patch adds
> location parameter to error_init and to a few of other functions.
> The testcases show what has better column info now.
> Note what I wrote in
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61096#c3 -- three
> error_init calls seem to be unreachable, bonus points for anyone who
> can construct a testcase that triggers them ;).  And neither testsuite nor
> bootstrap exercises them I think.
> Many pedwarn_init calls still use input_location; I'm going to address
> that later when I find some time.
> 
> Regtested/bootstrapped on x86_64-linux, ok for trunk?

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]