This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/69669] [5/6 Regression] ICE with enum __attribute__((mode(QI)))


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]