This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Indirect jumps
- From: Jeff Law <law at redhat dot com>
- To: Nathan Sidwell <nathan at acm dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 25 Aug 2015 13:10:44 -0600
- Subject: Re: Indirect jumps
- Authentication-results: sourceware.org; auth=none
- References: <55DC77AF dot 8060802 at acm dot org>
On 08/25/2015 08:11 AM, Nathan Sidwell wrote:
Ptx is one of those rare (unique?) machines that doesn't have an
indirect branch. optabs is prepared for such a target and emits a
sorry when an indirect branch is needed. However it then goes on to try
and emit such an instruction and ends up ICEing.
Fixed thusly, ok? (Or is the right solution to define a dummy indirect
branch in the PTX md file?)
I think we're trying to generally get away from dummy patterns.
We could emulate by creating a new stack frame and shoving the target of
the branch into the stack, then executing a return. However, I don't
think that's worth doing ;-)
I think the patch is fine for the trunk.
jeff