Re: delete LIBCALL note after split

2007-08-03 Thread Sa Liu
Ian Lance Taylor <[EMAIL PROTECTED]> wrote on 03.08.2007 17:24:45: > Thanks. The general idea looks right, but the implementation is > incorrect. > Thank you! I have made the correction: Index: gcc/emit-rtl.c === --- gcc.orig/emit

Re: delete LIBCALL note after split

2007-08-03 Thread Ian Lance Taylor
Sa Liu <[EMAIL PROTECTED]> writes: > I have added a piece of code in try_split to handle the links. Not sure > whether this is O.K. for the other platforms. Thanks. The general idea looks right, but the implementation is incorrect. > + case REG_LIBCALL: > + /* Relink the insns with

Re: delete LIBCALL note after split

2007-08-03 Thread Sa Liu
Ian Lance Taylor <[EMAIL PROTECTED]> wrote on 30.07.2007 18:59:28: > If the compiler splits an insn with a REG_LIBCALL note, it needs to > remove the corresponding REG_RETVAL note, or it needs to relink the > insns. This looks like a compiler bug, in that try_split doesn't > handle REG_LIBCALL no

Re: delete LIBCALL note after split

2007-07-30 Thread Ian Lance Taylor
Sa Liu <[EMAIL PROTECTED]> writes: > I'm working on GCC 4.1.1 on spu target and get following problem: > > After splitting an insn with a note REG_LIBCALL, the insn is replaced by > some other insns, which don't attach REG_LIBCALL note any more, and the > original one is then deleted. While the

delete LIBCALL note after split

2007-07-30 Thread Sa Liu
Hi, I'm working on GCC 4.1.1 on spu target and get following problem: After splitting an insn with a note REG_LIBCALL, the insn is replaced by some other insns, which don't attach REG_LIBCALL note any more, and the original one is then deleted. While the insn REG_RETVAL still points to the LIB