[Bug target/69803] New: [SH] Refactor call handling
olegendo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Feb 13 09:06:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69803
Bug ID: 69803
Summary: [SH] Refactor call handling
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: olegendo at gcc dot gnu.org
Target Milestone: ---
Target: sh*-*-*
As has been mentioned in PR 67260, SH's pcrel calls could use see some
refactoring.
For example, the patterns sibcall_valuei_pcrel_fdpic and sibcall_valuei_pcrel
are actually identical and the FDPIC check/decision could be done in the
splitter.
The other thing is the fixed R1 scratch/clobber in the sibcall_value_pcrel and
sibcall_value_pcrel_fdpic patterns. The address calculation machinery should
be changed so that register allocation works in the same way as for non-pic
calls.
More information about the Gcc-bugs
mailing list