This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/69803] New: [SH] Refactor call handling
- From: "olegendo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 13 Feb 2016 09:06:24 +0000
- Subject: [Bug target/69803] New: [SH] Refactor call handling
- Auto-submitted: auto-generated
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.