diff options
author | Richard Stallman <rms@gnu.org> | 1993-11-04 19:39:42 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-11-04 19:39:42 +0000 |
commit | cbee980e82b75f773bd9af16ba5e6ad6b34d18c7 (patch) | |
tree | 49c25e9f7c13615210be2b987cd9f271619d5e32 | |
parent | 5c28da2454101fb1e45eb9b89985b0f15a0e58b5 (diff) | |
download | gcc-cbee980e82b75f773bd9af16ba5e6ad6b34d18c7.zip gcc-cbee980e82b75f773bd9af16ba5e6ad6b34d18c7.tar.gz gcc-cbee980e82b75f773bd9af16ba5e6ad6b34d18c7.tar.bz2 |
(finish_enum): Undo previous change.
From-SVN: r5997
-rw-r--r-- | gcc/c-decl.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 26a0bfb..bb2ad12 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -5566,12 +5566,8 @@ finish_enum (enumtype, values) TYPE_SIZE (enumtype) = 0; layout_type (enumtype); - /* If an enum has no negative values, and it goes beyond the range - of the signed integral type, make it unsigned. */ - TREE_UNSIGNED (enumtype) - = (! tree_int_cst_lt (minnode, integer_zero_node) - && ! tree_int_cst_lt (maxnode, - TYPE_MAX_VALUE (type_for_size (precision, 0)))); + /* An enum can have some negative values; then it is signed. */ + TREE_UNSIGNED (enumtype) = ! tree_int_cst_lt (minnode, integer_zero_node); /* Change the type of the enumerators to be the enum type. Formerly this was done only for enums that fit in an int, |