re PR c/77323 (Bad "defaults to 'int'" warning for unsupported types)
authorMarek Polacek <polacek@redhat.com>
Thu, 25 Aug 2016 08:22:56 +0000 (08:22 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 25 Aug 2016 08:22:56 +0000 (08:22 +0000)
commitfe377a48b4c41b32bb00b5ac087d781a6b2b596f
tree486a8bdcc3246d93af945a8d4d31cfe1000b0fc9
parente627efefd86786d104fea7c9cc9b10a0c26b5398
re PR c/77323 (Bad "defaults to 'int'" warning for unsupported types)

PR c/77323
* c-decl.c (declspecs_add_type): Set typespec_word even when __intN
or _FloatN or _FloatNx is not supported.
(finish_declspecs): Set type to integer_type_node when _FloatN or
_FloatNx is not supported.

* gcc.dg/pr77323.c: New test.

From-SVN: r239752
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr77323.c [new file with mode: 0644]