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
ad42ff1e
Commit
ad42ff1e
authored
Sep 10, 2009
by
Jason Merrill
Committed by
Jason Merrill
Sep 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tree.c (chain_index): New fn.
* tree.c (chain_index): New fn. * tree.h: Declare it. From-SVN: r151618
parent
43dfd40c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
gcc/ChangeLog
+5
-0
gcc/tree.c
+11
-0
gcc/tree.h
+1
-0
No files found.
gcc/ChangeLog
View file @
ad42ff1e
2009-09-10 Jason Merrill <jason@redhat.com>
* tree.c (chain_index): New fn.
* tree.h: Declare it.
2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/sol2-c.c (cmn_err_length_specs): Initialize
...
...
gcc/tree.c
View file @
ad42ff1e
...
...
@@ -1905,6 +1905,17 @@ purpose_member (const_tree elem, tree list)
return
NULL_TREE
;
}
/* Returns element number IDX (zero-origin) of chain CHAIN, or
NULL_TREE. */
tree
chain_index
(
int
idx
,
tree
chain
)
{
for
(;
chain
&&
idx
>
0
;
--
idx
)
chain
=
TREE_CHAIN
(
chain
);
return
chain
;
}
/* Return nonzero if ELEM is part of the chain CHAIN. */
int
...
...
gcc/tree.h
View file @
ad42ff1e
...
...
@@ -3914,6 +3914,7 @@ extern bool range_in_array_bounds_p (tree);
extern
tree
value_member
(
tree
,
tree
);
extern
tree
purpose_member
(
const_tree
,
tree
);
extern
tree
chain_index
(
int
,
tree
);
extern
int
attribute_list_equal
(
const_tree
,
const_tree
);
extern
int
attribute_list_contained
(
const_tree
,
const_tree
);
...
...
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