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
e8b87aac
Commit
e8b87aac
authored
Jul 14, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(lookup_field): Change name comparison to match what field_decl_cmp
does. From-SVN: r10138
parent
c3fac866
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
gcc/c-typeck.c
+2
-5
No files found.
gcc/c-typeck.c
View file @
e8b87aac
...
@@ -1138,8 +1138,6 @@ lookup_field (type, component, indirect)
...
@@ -1138,8 +1138,6 @@ lookup_field (type, component, indirect)
top
=
TYPE_LANG_SPECIFIC
(
type
)
->
len
;
top
=
TYPE_LANG_SPECIFIC
(
type
)
->
len
;
while
(
top
-
bot
>
1
)
while
(
top
-
bot
>
1
)
{
{
HOST_WIDE_INT
cmp
;
half
=
(
top
-
bot
+
1
)
>>
1
;
half
=
(
top
-
bot
+
1
)
>>
1
;
field
=
field_array
[
bot
+
half
];
field
=
field_array
[
bot
+
half
];
...
@@ -1167,10 +1165,9 @@ lookup_field (type, component, indirect)
...
@@ -1167,10 +1165,9 @@ lookup_field (type, component, indirect)
continue
;
continue
;
}
}
cmp
=
(
HOST_WIDE_INT
)
DECL_NAME
(
field
)
-
(
HOST_WIDE_INT
)
component
;
if
(
DECL_NAME
(
field
)
==
component
)
if
(
cmp
==
0
)
break
;
break
;
if
(
cmp
<
0
)
if
(
DECL_NAME
(
field
)
<
component
)
bot
+=
half
;
bot
+=
half
;
else
else
top
=
bot
+
half
;
top
=
bot
+
half
;
...
...
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