This is the mail archive of the gcc@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]

Re: How to use a scratch register in "jump" pattern ?


On Wed, Mar 11, 2009 at 03:33:28PM +0100, Ulrich Weigand wrote:

> > It doesn't work. It causes a loop somewhere in gcc. I can get a gdb
> > trace if needed.
> 
> Yes, this does not work.  Jumps are special; the CFG logic makes
> a lot of assumptions how jump patterns look.
[...]
> The s390 back-end globally reserves a register for the purpose of
> holding the target of long branches (well, the register is also 
> used as "link register" for calls).

Ok, so I'll reserve a register for indirect jumps too then. I was hoping
to be able to avoid this.

Thanks !

Stelian.
-- 
Stelian Pop <stelian@popies.net>


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