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
8fa07a56
Commit
8fa07a56
authored
17 years ago
by
Eric Botcazou
Committed by
Eric Botcazou
17 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decl.c (components_to_record): Improve comment.
* decl.c (components_to_record): Improve comment. From-SVN: r131858
parent
d79ca207
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
gcc/ada/ChangeLog
+4
-0
gcc/ada/decl.c
+3
-2
No files found.
gcc/ada/ChangeLog
View file @
8fa07a56
2008
-
01
-
26
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
decl
.
c
(
components_to_record
):
Improve
comment
.
2008
-
01
-
22
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
decl
.
c
(
components_to_record
):
Do
not
reuse
the
empty
union
type
This diff is collapsed.
Click to expand it.
gcc/ada/decl.c
View file @
8fa07a56
...
...
@@ -6066,8 +6066,9 @@ components_to_record (tree gnu_record_type, Node_Id component_list,
Set_Present_Expr
(
variant
,
annotate_value
(
gnu_qual
));
/* If this is an Unchecked_Union and we have exactly one field,
use that field here. */
if
(
unchecked_union
&&
TYPE_FIELDS
(
gnu_variant_type
)
use this field directly to match the layout of C unions. */
if
(
unchecked_union
&&
TYPE_FIELDS
(
gnu_variant_type
)
&&
!
TREE_CHAIN
(
TYPE_FIELDS
(
gnu_variant_type
)))
gnu_field
=
TYPE_FIELDS
(
gnu_variant_type
);
else
...
...
This diff is collapsed.
Click to expand it.
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