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
7ad00e13
Commit
7ad00e13
authored
Sep 14, 2005
by
Eric Botcazou
Committed by
Eric Botcazou
Sep 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
From-SVN: r104271
parent
b2d16a23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletions
+19
-1
gcc/ChangeLog
+4
-0
gcc/tree.c
+15
-1
No files found.
gcc/ChangeLog
View file @
7ad00e13
2005
-
09
-
14
Eric
Botcazou
<
ebotcazou
@adacore
.
com
>
*
tree
.
c
(
substitute_in_expr
,
case
4
):
New
case
,
for
ARRAY_REF
.
2005
-
09
-
14
Uros
Bizjak
<
uros
@kss
-
loka
.
si
>
PR
middle
-
end
/
22480
...
...
gcc/tree.c
View file @
7ad00e13
...
...
@@ -2180,7 +2180,7 @@ tree
substitute_in_expr
(
tree
exp
,
tree
f
,
tree
r
)
{
enum
tree_code
code
=
TREE_CODE
(
exp
);
tree
op0
,
op1
,
op2
;
tree
op0
,
op1
,
op2
,
op3
;
tree
new
;
tree
inner
;
...
...
@@ -2265,6 +2265,20 @@ substitute_in_expr (tree exp, tree f, tree r)
new
=
fold_build3
(
code
,
TREE_TYPE
(
exp
),
op0
,
op1
,
op2
);
break
;
case
4
:
op0
=
SUBSTITUTE_IN_EXPR
(
TREE_OPERAND
(
exp
,
0
),
f
,
r
);
op1
=
SUBSTITUTE_IN_EXPR
(
TREE_OPERAND
(
exp
,
1
),
f
,
r
);
op2
=
SUBSTITUTE_IN_EXPR
(
TREE_OPERAND
(
exp
,
2
),
f
,
r
);
op3
=
SUBSTITUTE_IN_EXPR
(
TREE_OPERAND
(
exp
,
3
),
f
,
r
);
if
(
op0
==
TREE_OPERAND
(
exp
,
0
)
&&
op1
==
TREE_OPERAND
(
exp
,
1
)
&&
op2
==
TREE_OPERAND
(
exp
,
2
)
&&
op3
==
TREE_OPERAND
(
exp
,
3
))
return
exp
;
new
=
fold
(
build4
(
code
,
TREE_TYPE
(
exp
),
op0
,
op1
,
op2
,
op3
));
break
;
default
:
gcc_unreachable
();
}
...
...
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