This is the mail archive of the gcc-bugs@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]

[Bug c/56724] sub-optimal location in error


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56724

--- Comment #11 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue May 27 20:14:22 2014
New Revision: 210980

URL: http://gcc.gnu.org/viewcvs?rev=210980&root=gcc&view=rev
Log:
    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.

Added:
    trunk/gcc/testsuite/gcc.dg/pr56724-1.c
    trunk/gcc/testsuite/gcc.dg/pr56724-2.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/dfp/wtr-conversion-1.c
    trunk/gcc/testsuite/gcc.dg/wtr-conversion-1.c


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