public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/56724] sub-optimal location in error Date: Tue, 27 May 2014 20:15:00 -0000 [thread overview] Message-ID: <bug-56724-4-mK2FtQ9N9E@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-56724-4@http.gcc.gnu.org/bugzilla/> 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
next prev parent reply other threads:[~2014-05-27 20:15 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-56724-4@http.gcc.gnu.org/bugzilla/> 2013-03-25 18:45 ` pinskia at gcc dot gnu.org 2013-03-25 18:46 ` tromey at gcc dot gnu.org 2014-03-26 7:25 ` mpolacek at gcc dot gnu.org 2014-05-15 15:50 ` tromey at gcc dot gnu.org 2014-05-15 15:59 ` tromey at gcc dot gnu.org 2014-05-16 18:53 ` manu at gcc dot gnu.org 2014-05-19 18:47 ` mpolacek at gcc dot gnu.org 2014-05-25 15:40 ` mpolacek at gcc dot gnu.org 2014-05-27 20:15 ` mpolacek at gcc dot gnu.org [this message] 2014-06-05 3:09 ` tromey at gcc dot gnu.org 2014-06-05 5:41 ` mpolacek at gcc dot gnu.org 2014-06-05 9:35 ` mpolacek at gcc dot gnu.org 2014-09-11 14:36 ` mpolacek at gcc dot gnu.org 2015-04-22 12:01 ` jakub at gcc dot gnu.org 2015-07-16 9:15 ` rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-56724-4-mK2FtQ9N9E@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).