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
d3b35d75
Commit
d3b35d75
authored
May 28, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_end_case): Have INDEX_TYPE track conversions done to
INDEX_EXPR. From-SVN: r7381
parent
7d558bfe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
gcc/stmt.c
+5
-0
No files found.
gcc/stmt.c
View file @
d3b35d75
...
...
@@ -4462,8 +4462,12 @@ expand_end_case (orig_index)
else
{
if
(
TYPE_MODE
(
index_type
)
!=
index_mode
)
{
index_expr
=
convert
(
type_for_size
(
index_bits
,
0
),
index_expr
);
index_type
=
TREE_TYPE
(
index_expr
);
}
index
=
expand_expr
(
index_expr
,
NULL_RTX
,
VOIDmode
,
0
);
}
emit_queue
();
...
...
@@ -4500,6 +4504,7 @@ expand_end_case (orig_index)
index_expr
=
convert
(
thiscase
->
data
.
case_stmt
.
nominal_type
,
fold
(
build
(
MINUS_EXPR
,
index_type
,
index_expr
,
minval
)));
index_type
=
TREE_TYPE
(
index_expr
);
index
=
expand_expr
(
index_expr
,
NULL_RTX
,
VOIDmode
,
0
);
emit_queue
();
index
=
protect_from_queue
(
index
,
0
);
...
...
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