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
2ae342f7
Commit
2ae342f7
authored
Nov 09, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_expr, case ARRAY_REF): Properly convert types of index, size,
and multiplication. From-SVN: r10573
parent
8aaa4350
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
gcc/expr.c
+14
-7
No files found.
gcc/expr.c
View file @
2ae342f7
...
...
@@ -4655,13 +4655,20 @@ expand_expr (exp, target, tmode, modifier)
matter, since expand_expr should not care.) */
TREE_SIDE_EFFECTS
(
array_adr
)
=
0
;
elt
=
build1
(
INDIRECT_REF
,
type
,
fold
(
build
(
PLUS_EXPR
,
TYPE_POINTER_TO
(
variant_type
),
array_adr
,
fold
(
build
(
MULT_EXPR
,
TYPE_POINTER_TO
(
variant_type
),
index
,
size
)))));
elt
=
build1
(
INDIRECT_REF
,
type
,
fold
(
build
(
PLUS_EXPR
,
TYPE_POINTER_TO
(
variant_type
),
array_adr
,
fold
(
build1
(
NOP_EXPR
,
TYPE_POINTER_TO
(
variant_type
),
fold
(
build
(
MULT_EXPR
,
TREE_TYPE
(
index
),
index
,
convert
(
TREE_TYPE
(
index
),
size
))))))));;
/* Volatility, etc., of new expression is same as old
expression. */
...
...
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