gcc/
authorpzhao <pzhao@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Jun 2010 03:56:40 +0000 (03:56 +0000)
committerpzhao <pzhao@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Jun 2010 03:56:40 +0000 (03:56 +0000)
commit1183a806ac1b1d7042ce5056113e7ac3dfee39dc
treeb977e0467d5267b3458fe2a20c3d142eb7180965
parentbe77e727fd52369aa3cf4be4070d45b0de26aa1e
gcc/
2010-06-08  Andrew Pinski <pinskia@gmail.com>
            Shujing Zhao  <pearly.zhao@oracle.com>

        PR c/37724
        * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
        implicit bad conversions is initialization.
        (error_init): Use gmsgid instead of msgid for argument name and change
        the call for error.
        (pedwarn_init): Use gmsgid instead of msgid for argument name and
        change the call for pedwarn.
        (warning_init): Use gmsgid instead of msgid for argument name and
        change the call for warning.

gcc/testsuite/
2010-06-08  Andrew Pinski <pinskia@gmail.com>
            Shujing Zhao  <pearly.zhao@oracle.com>

        PR c/37724
        * gcc.dg/c90-const-expr-10.c: Adjust.
        * gcc.dg/c99-const-expr-10.c: Adjust.
        * gcc.dg/init-bad-7.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160418 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c90-const-expr-10.c
gcc/testsuite/gcc.dg/c99-const-expr-10.c
gcc/testsuite/gcc.dg/init-bad-7.c [new file with mode: 0644]