re PR c/29467 (-ansi -pedantic accepts _Bool without diagnostic)
authorMarek Polacek <polacek@redhat.com>
Thu, 1 May 2014 07:21:07 +0000 (07:21 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 1 May 2014 07:21:07 +0000 (07:21 +0000)
commitc9379ce2a9a18a45eae9877c3c4e6977a414365e
treee487579f4c8dfd615782b2e5bf5660167e7006f3
parentd00887e89999f5f24210f6cd6c3895a64eb9f2cd
re PR c/29467 (-ansi -pedantic accepts _Bool without diagnostic)

PR c/29467
* c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
in C89 mode.

* gcc.dg/pr29467.c: New test.
* gcc.dg/declspec-13.c: Renumber some dg-warnings.  Add dg-warnings
about boolean types.
* gfortran.dg/bind_c_usage_24_c.c: Include <stdbool.h>.  Change _Bool
to bool.
* gfortran.dg/c_f_pointer_logical_driver.c: Change _Bool to bool.

From-SVN: r209971
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/declspec-13.c
gcc/testsuite/gcc.dg/pr29467.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/bind_c_usage_24_c.c
gcc/testsuite/gfortran.dg/c_f_pointer_logical_driver.c