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
9fdd8bdb
Commit
9fdd8bdb
authored
Mar 01, 1994
by
Stan Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legitimize_address, print_operand): Make -fPIC work
From-SVN: r6681
parent
8cf85c4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
gcc/config/m88k/m88k.c
+15
-4
No files found.
gcc/config/m88k/m88k.c
View file @
9fdd8bdb
...
...
@@ -313,10 +313,16 @@ legitimize_address (pic, orig, reg, scratch)
temp
=
((
reload_in_progress
||
reload_completed
)
?
reg
:
gen_reg_rtx
(
Pmode
));
emit_insn
(
gen_rtx
(
SET
,
VOIDmode
,
temp
,
gen_rtx
(
HIGH
,
SImode
,
addr
)));
emit_insn
(
gen_rtx
(
SET
,
VOIDmode
,
temp
,
gen_rtx
(
LO_SUM
,
SImode
,
temp
,
addr
)));
emit_insn
(
gen_rtx
(
SET
,
VOIDmode
,
temp
,
gen_rtx
(
HIGH
,
SImode
,
gen_rtx
(
UNSPEC
,
SImode
,
gen_rtvec
(
1
,
addr
),
0
))));
emit_insn
(
gen_rtx
(
SET
,
VOIDmode
,
temp
,
gen_rtx
(
LO_SUM
,
SImode
,
temp
,
gen_rtx
(
UNSPEC
,
SImode
,
gen_rtvec
(
1
,
addr
),
0
))));
addr
=
temp
;
}
new
=
gen_rtx
(
MEM
,
Pmode
,
...
...
@@ -2938,6 +2944,11 @@ print_operand (file, x, code)
output_address
(
x
);
else
if
(
xc
==
MEM
)
output_address
(
XEXP
(
x
,
0
));
else
if
(
flag_pic
&&
xc
==
UNSPEC
)
{
output_addr_const
(
file
,
XVECEXP
(
x
,
0
,
0
));
fputs
(
"#got_rel"
,
file
);
}
else
if
(
xc
==
CONST_DOUBLE
)
output_operand_lossage
(
"operand is const_double"
);
else
...
...
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