c-opts.c (c_common_post_options): Set warn_implicit_int.
authorMarek Polacek <polacek@redhat.com>
Fri, 17 Oct 2014 18:37:25 +0000 (18:37 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 17 Oct 2014 18:37:25 +0000 (18:37 +0000)
commit92574c7cdbf3f32fdc48897990d63e1dc65d5bbf
tree576be955533c5d97f1f9b493e159d598e84dc02a
parentf5db965fda4963a26a8e8d6943fb2cab8c590847
c-opts.c (c_common_post_options): Set warn_implicit_int.

c-family/
* c-opts.c (c_common_post_options): Set warn_implicit_int.
* c.opt (Wimplicit-int): Initialize to -1.
c/
* c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
(start_function): Use OPT_Wimplicit_int instead of 0.
(store_parm_decls_oldstyle): Likewise.
testsuite/
* gcc.dg/Wimplicit-int-1.c: New test.
* gcc.dg/Wimplicit-int-2.c: New test.
* gcc.dg/Wimplicit-int-3.c: New test.
* gcc.dg/Wimplicit-int-4.c: New test.

From-SVN: r216412
gcc/c-family/ChangeLog
gcc/c-family/c-opts.c
gcc/c-family/c.opt
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wimplicit-int-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wimplicit-int-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wimplicit-int-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wimplicit-int-4.c [new file with mode: 0644]