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
fa74fa39
Commit
fa74fa39
authored
May 19, 2008
by
Eric Botcazou
Committed by
Eric Botcazou
May 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tree.c (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
From-SVN: r135591
parent
9479cae3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
gcc/ChangeLog
+1
-0
gcc/tree.c
+6
-5
No files found.
gcc/ChangeLog
View file @
fa74fa39
2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
* tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
(substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
...
...
gcc/tree.c
View file @
fa74fa39
...
...
@@ -2778,18 +2778,19 @@ substitute_placeholder_in_expr (tree exp, tree obj)
{
tree
copy
=
NULL_TREE
;
int
i
;
int
n
=
TREE_OPERAND_LENGTH
(
exp
);
for
(
i
=
1
;
i
<
n
;
i
++
)
for
(
i
=
1
;
i
<
TREE_OPERAND_LENGTH
(
exp
)
;
i
++
)
{
tree
op
=
TREE_OPERAND
(
exp
,
i
);
tree
newop
=
SUBSTITUTE_PLACEHOLDER_IN_EXPR
(
op
,
obj
);
if
(
newop
!=
op
)
tree
new
_
op
=
SUBSTITUTE_PLACEHOLDER_IN_EXPR
(
op
,
obj
);
if
(
new
_
op
!=
op
)
{
if
(
!
copy
)
copy
=
copy_node
(
exp
);
TREE_OPERAND
(
copy
,
i
)
=
newop
;
TREE_OPERAND
(
copy
,
i
)
=
new
_
op
;
}
}
if
(
copy
)
return
fold
(
copy
);
else
...
...
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