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
b99791d1
Commit
b99791d1
authored
Sep 12, 2005
by
Bernd Schmidt
Committed by
Bernd Schmidt
Sep 12, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
From-SVN: r104168
parent
2bcec729
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
gcc/ChangeLog
+4
-0
gcc/config/bfin/bfin.c
+3
-3
No files found.
gcc/ChangeLog
View file @
b99791d1
2005
-
09
-
12
Bernd
Schmidt
<
bernd
.
schmidt
@analog
.
com
>
*
config
/
bfin
/
bfin
.
c
(
legimitize_pic_address
)
:
Use
gen_const_mem
.
2005
-
09
-
12
Alan
Modra
<
amodra
@bigpond
.
net
.
au
>
2005
-
09
-
12
Alan
Modra
<
amodra
@bigpond
.
net
.
au
>
*
config
/
rs6000
/
rs6000
.
c
(
get_next_active_insn
)
:
Rewrite
using
*
config
/
rs6000
/
rs6000
.
c
(
get_next_active_insn
)
:
Rewrite
using
...
...
gcc/config/bfin/bfin.c
View file @
b99791d1
...
@@ -150,14 +150,14 @@ legitimize_pic_address (rtx orig, rtx reg, rtx picreg)
...
@@ -150,14 +150,14 @@ legitimize_pic_address (rtx orig, rtx reg, rtx picreg)
emit_insn
(
gen_movsi_high_pic
(
reg
,
addr
));
emit_insn
(
gen_movsi_high_pic
(
reg
,
addr
));
emit_insn
(
gen_movsi_low_pic
(
reg
,
reg
,
addr
));
emit_insn
(
gen_movsi_low_pic
(
reg
,
reg
,
addr
));
emit_insn
(
gen_addsi3
(
reg
,
reg
,
picreg
));
emit_insn
(
gen_addsi3
(
reg
,
reg
,
picreg
));
new
=
gen_
rtx_MEM
(
Pmode
,
reg
);
new
=
gen_
const_mem
(
Pmode
,
reg
);
}
}
else
else
{
{
rtx
tmp
=
gen_rtx_UNSPEC
(
Pmode
,
gen_rtvec
(
1
,
addr
),
rtx
tmp
=
gen_rtx_UNSPEC
(
Pmode
,
gen_rtvec
(
1
,
addr
),
UNSPEC_MOVE_PIC
);
UNSPEC_MOVE_PIC
);
new
=
gen_
rtx_MEM
(
Pmode
,
new
=
gen_
const_mem
(
Pmode
,
gen_rtx_PLUS
(
Pmode
,
picreg
,
tmp
));
gen_rtx_PLUS
(
Pmode
,
picreg
,
tmp
));
}
}
emit_move_insn
(
reg
,
new
);
emit_move_insn
(
reg
,
new
);
}
}
...
...
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