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
08f9d725
Commit
08f9d725
authored
Mar 12, 2010
by
Michael Meissner
Committed by
Michael Meissner
Mar 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove band-aid no longer needed by the fix in PR 43431
From-SVN: r157408
parent
b2ef02df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
26 deletions
+6
-26
gcc/ChangeLog
+6
-0
gcc/config/rs6000/rs6000.c
+0
-26
No files found.
gcc/ChangeLog
View file @
08f9d725
2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
PR middle-end/42431
* gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
code added to work around reload clobbering CONST insns.
2010-03-12 Jakub Jelinek <jakub@redhat.com>
2010-03-12 Jakub Jelinek <jakub@redhat.com>
* cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
* cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
...
...
gcc/config/rs6000/rs6000.c
View file @
08f9d725
...
@@ -6346,32 +6346,6 @@ rs6000_emit_move (rtx dest, rtx source, enum machine_mode mode)
...
@@ -6346,32 +6346,6 @@ rs6000_emit_move (rtx dest, rtx source, enum machine_mode mode)
return
;
return
;
}
}
/* Fix up invalid (const (plus (symbol_ref) (reg))) that seems to be created
in the secondary_reload phase, which evidently overwrites the CONST_INT
with a register. */
if
(
GET_CODE
(
source
)
==
CONST
&&
GET_CODE
(
XEXP
(
source
,
0
))
==
PLUS
&&
mode
==
Pmode
)
{
rtx
add_op0
=
XEXP
(
XEXP
(
source
,
0
),
0
);
rtx
add_op1
=
XEXP
(
XEXP
(
source
,
0
),
1
);
if
(
GET_CODE
(
add_op0
)
==
SYMBOL_REF
&&
GET_CODE
(
add_op1
)
==
REG
)
{
rtx
tmp
=
(
can_create_pseudo_p
())
?
gen_reg_rtx
(
Pmode
)
:
dest
;
if
(
TARGET_DEBUG_ADDR
)
{
fprintf
(
stderr
,
"
\n
rs6000_emit_move: bad source
\n
"
);
debug_rtx
(
source
);
}
rs6000_emit_move
(
tmp
,
add_op0
,
Pmode
);
emit_insn
(
gen_rtx_SET
(
VOIDmode
,
dest
,
gen_rtx_PLUS
(
Pmode
,
tmp
,
add_op1
)));
return
;
}
}
if
(
can_create_pseudo_p
()
&&
GET_CODE
(
operands
[
0
])
==
MEM
if
(
can_create_pseudo_p
()
&&
GET_CODE
(
operands
[
0
])
==
MEM
&&
!
gpc_reg_operand
(
operands
[
1
],
mode
))
&&
!
gpc_reg_operand
(
operands
[
1
],
mode
))
operands
[
1
]
=
force_reg
(
mode
,
operands
[
1
]);
operands
[
1
]
=
force_reg
(
mode
,
operands
[
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