[C PATCH] Improve locinfo a bit (PR c/59846)

Joseph S. Myers joseph@codesourcery.com
Thu Jan 23 20:53:00 GMT 2014


On Thu, 23 Jan 2014, Marek Polacek wrote:

> 2014-01-23  Marek Polacek  <polacek@redhat.com>
> 
> 	PR c/59846
> c-family/
> 	* c-common.c (shorten_compare): Add location_t parameter.
> 	* c-common.h (shorten_binary_op): Adjust declaration.
> cp/
> 	* typeck.c (cp_build_binary_op): Pass location to shorten_compare.
> c/
> 	* c-typeck.c (parser_build_binary_op): Use location instead of
> 	input_location.
> 	(build_binary_op): Pass location to shorten_compare.
> testsuite/
> 	* gcc.dg/pr59846.c: New test.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list