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
c4fcf531
Commit
c4fcf531
authored
Mar 30, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r632
parent
77395be6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
gcc/stmt.c
+7
-3
No files found.
gcc/stmt.c
View file @
c4fcf531
...
...
@@ -3650,15 +3650,19 @@ expand_end_case (orig_index)
#ifdef HAVE_casesi
if
(
HAVE_casesi
)
{
enum
machine_mode
index_mode
=
SImode
;
tree
index_type
=
GET_MODE_BITSIZE
(
index_mode
);
/* Convert the index to SImode. */
if
(
TYPE_MODE
(
TREE_TYPE
(
index_expr
))
==
DImode
)
if
(
GET_MODE_BITSIZE
(
TYPE_MODE
(
TREE_TYPE
(
index_expr
)))
>
GET_MODE_BITSIZE
(
index_mode
))
{
index_expr
=
build
(
MINUS_EXPR
,
TREE_TYPE
(
index_expr
),
index_expr
,
minval
);
minval
=
integer_zero_node
;
}
if
(
TYPE_MODE
(
TREE_TYPE
(
index_expr
))
!=
SI
mode
)
index_expr
=
convert
(
type_for_size
(
GET_MODE_BITSIZE
(
SImode
)
,
0
),
if
(
TYPE_MODE
(
TREE_TYPE
(
index_expr
))
!=
index_
mode
)
index_expr
=
convert
(
type_for_size
(
index_type
,
0
),
index_expr
);
index
=
expand_expr
(
index_expr
,
0
,
VOIDmode
,
0
);
emit_queue
();
...
...
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