[Bug c/59846] Imprecise column number for -Wtype-limits
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 23 21:01:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59846
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Jan 23 21:01:08 2014
New Revision: 207008
URL: http://gcc.gnu.org/viewcvs?rev=207008&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/pr59846.c
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/c-family/c-common.h
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list