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
19b2fd27
Commit
19b2fd27
authored
Aug 01, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(do_tablejump): Use PIC_CASE_VECTOR_ADDRESS if defined.
From-SVN: r5050
parent
89ef1046
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
gcc/expr.c
+10
-6
No files found.
gcc/expr.c
View file @
19b2fd27
...
...
@@ -8145,12 +8145,16 @@ do_tablejump (index, mode, range, table_label, default_label)
GET_MODE_SIZE, because this indicates how large insns are. The other
uses should all be Pmode, because they are addresses. This code
could fail if addresses and insns are not the same size. */
index
=
memory_address_noforce
(
CASE_VECTOR_MODE
,
gen_rtx
(
PLUS
,
Pmode
,
gen_rtx
(
MULT
,
Pmode
,
index
,
GEN_INT
(
GET_MODE_SIZE
(
CASE_VECTOR_MODE
))),
gen_rtx
(
LABEL_REF
,
Pmode
,
table_label
)));
index
=
gen_rtx
(
PLUS
,
Pmode
,
gen_rtx
(
MULT
,
Pmode
,
index
,
GEN_INT
(
GET_MODE_SIZE
(
CASE_VECTOR_MODE
))),
gen_rtx
(
LABEL_REF
,
Pmode
,
table_label
));
#ifdef PIC_CASE_VECTOR_ADDRESS
if
(
flag_pic
)
index
=
PIC_CASE_VECTOR_ADDRESS
(
index
);
else
#endif
index
=
memory_address_noforce
(
CASE_VECTOR_MODE
,
index
);
temp
=
gen_reg_rtx
(
CASE_VECTOR_MODE
);
vector
=
gen_rtx
(
MEM
,
CASE_VECTOR_MODE
,
index
);
RTX_UNCHANGING_P
(
vector
)
=
1
;
...
...
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