]> gcc.gnu.org Git - gcc.git/commit
re PR c/56724 (sub-optimal location in error)
authorMarek Polacek <polacek@redhat.com>
Tue, 27 May 2014 20:14:22 +0000 (20:14 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 27 May 2014 20:14:22 +0000 (20:14 +0000)
commit5c1bc275f4f85f2483fb2433b1592deeba1e3d6f
tree45476b7f5627549943012d37331a2c5e9342711c
parentd378c07ebbb0cf59e9ebd4b2f5912b6ca6f90f1c
re PR c/56724 (sub-optimal location in error)

PR c/56724
* c-typeck.c (convert_arguments): Get location of a parameter.  Change
error and warning calls to error_at and warning_at.  Pass location of
a parameter to it.  Call warning_at with OPT_Wtraditional_conversion.
(convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
WARN_FOR_QUALIFIERS.  Pass expr_loc to those.

* gcc.dg/pr56724-1.c: New test.
* gcc.dg/pr56724-2.c: New test.
* gcc.dg/wtr-conversion-1.c: Use -Wtraditional-conversion instead of
-Wtraditional.
* gcc.dg/dfp/wtr-conversion-1.c: Likewise.

From-SVN: r210980
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/dfp/wtr-conversion-1.c
gcc/testsuite/gcc.dg/pr56724-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr56724-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/wtr-conversion-1.c
This page took 0.061065 seconds and 5 git commands to generate.