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
fbe23ee7
Commit
fbe23ee7
authored
Apr 09, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(finish_enum): Store layout results into variant types.
From-SVN: r4045
parent
6d9efc7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
+14
-1
gcc/c-decl.c
+14
-1
No files found.
gcc/c-decl.c
View file @
fbe23ee7
...
...
@@ -5384,7 +5384,7 @@ tree
finish_enum
(
enumtype
,
values
)
register
tree
enumtype
,
values
;
{
register
tree
pair
;
register
tree
pair
,
tem
;
tree
minnode
=
0
,
maxnode
=
0
;
register
HOST_WIDE_INT
maxvalue
=
0
;
register
HOST_WIDE_INT
minvalue
=
0
;
...
...
@@ -5474,6 +5474,19 @@ finish_enum (enumtype, values)
TYPE_VALUES
(
enumtype
)
=
values
;
/* Fix up all variant types of this enum type. */
for
(
tem
=
TYPE_MAIN_VARIANT
(
enumtype
);
tem
;
tem
=
TYPE_NEXT_VARIANT
(
tem
))
{
TYPE_VALUES
(
tem
)
=
TYPE_VALUES
(
enumtype
);
TYPE_MIN_VALUE
(
tem
)
=
TYPE_MIN_VALUE
(
enumtype
);
TYPE_MAX_VALUE
(
tem
)
=
TYPE_MAX_VALUE
(
enumtype
);
TYPE_SIZE
(
tem
)
=
TYPE_SIZE
(
enumtype
);
TYPE_MODE
(
tem
)
=
TYPE_MODE
(
enumtype
);
TYPE_PRECISION
(
tem
)
=
TYPE_PRECISION
(
enumtype
);
TYPE_ALIGN
(
tem
)
=
TYPE_ALIGN
(
enumtype
);
TREE_UNSIGNED
(
tem
)
=
TREE_UNSIGNED
(
enumtype
);
}
/* Finish debugging output for this type. */
rest_of_type_compilation
(
enumtype
,
toplevel
);
...
...
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