re PR c/69669 (ICE with enum __attribute__((mode(QI))))
authorJakub Jelinek <jakub@redhat.com>
Thu, 4 Feb 2016 22:17:05 +0000 (23:17 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 4 Feb 2016 22:17:05 +0000 (23:17 +0100)
commit1066e9b53391005e86df98253d404fc60d61d841
tree0c6d6e6c7c4474708b293d53101ea2650fe22948
parent25f738f21021b3af025800f4481d402570d603ef
re PR c/69669 (ICE with enum __attribute__((mode(QI))))

PR c/69669
* c-decl.c (finish_enum): When honoring mode attribute,
make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE.

* c-c++-common/pr69669.c: New test.

From-SVN: r233154
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr69669.c [new file with mode: 0644]