This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/69803] New: [SH] Refactor call handling


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]