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
a68b98cf
Commit
a68b98cf
authored
Apr 13, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(lookup_field): Don't recurse unless FIELD is a RECORD_TYPE or
UNION_TYPE. From-SVN: r13870
parent
06140bdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
gcc/c-typeck.c
+12
-4
No files found.
gcc/c-typeck.c
View file @
a68b98cf
/* Build expressions with type checking for C compiler.
Copyright (C) 1987, 88, 91
, 92
-6, 1997 Free Software Foundation, Inc.
Copyright (C) 1987, 88, 91-6, 1997 Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -1151,10 +1151,13 @@ lookup_field (type, component, indirect)
/* Step through all anon unions in linear fashion. */
while
(
DECL_NAME
(
field_array
[
bot
])
==
NULL_TREE
)
{
tree
anon
,
junk
;
tree
anon
=
0
,
junk
;
field
=
field_array
[
bot
++
];
anon
=
lookup_field
(
TREE_TYPE
(
field
),
component
,
&
junk
);
if
(
TREE_CODE
(
TREE_TYPE
(
field
))
==
RECORD_TYPE
||
TREE_CODE
(
TREE_TYPE
(
field
))
==
UNION_TYPE
)
anon
=
lookup_field
(
TREE_TYPE
(
field
),
component
,
&
junk
);
if
(
anon
!=
NULL_TREE
)
{
*
indirect
=
field
;
...
...
@@ -1190,7 +1193,12 @@ lookup_field (type, component, indirect)
if
(
DECL_NAME
(
field
)
==
NULL_TREE
)
{
tree
junk
;
tree
anon
=
lookup_field
(
TREE_TYPE
(
field
),
component
,
&
junk
);
tree
anon
=
0
;
if
(
TREE_CODE
(
TREE_TYPE
(
field
))
==
RECORD_TYPE
||
TREE_CODE
(
TREE_TYPE
(
field
))
==
UNION_TYPE
)
anon
=
lookup_field
(
TREE_TYPE
(
field
),
component
,
&
junk
);
if
(
anon
!=
NULL_TREE
)
{
*
indirect
=
field
;
...
...
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