This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/69669] [5/6 Regression] ICE with enum __attribute__((mode(QI)))
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 04 Feb 2016 22:17:37 +0000
- Subject: [Bug c/69669] [5/6 Regression] ICE with enum __attribute__((mode(QI)))
- Auto-submitted: auto-generated
- References: <bug-69669-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69669
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Feb 4 22:17:05 2016
New Revision: 233154
URL: https://gcc.gnu.org/viewcvs?rev=233154&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/c-c++-common/pr69669.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-decl.c
trunk/gcc/testsuite/ChangeLog