Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
cbee980e
Commit
cbee980e
authored
Nov 04, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(finish_enum): Undo previous change.
From-SVN: r5997
parent
5c28da24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
gcc/c-decl.c
+2
-6
No files found.
gcc/c-decl.c
View file @
cbee980e
...
...
@@ -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,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment