Re: inserting instructions into prologue/epilogue

2005-08-04 Thread Ian Lance Taylor
Gunther Nikl <[EMAIL PROTECTED]> writes: > Is EPILOGUE_USES only for the save and restore? I would have to add > some big chunk of code to it and that would propagate to several > places. It seems emitting a USE has lower impact. EPILOGUE_USES doesn't emit code. It simply takes a register

Re: inserting instructions into prologue/epilogue

2005-08-04 Thread Gunther Nikl
On Wed, Aug 03, 2005 at 10:49:49AM -0700, Ian Lance Taylor wrote: > Gunther Nikl <[EMAIL PROTECTED]> writes: > > > "Attempt to delete prologue/epilogue insn" > > > > unless the stackslot was marked with MEM_VOLATILE_P. I don't think thats > > the proper fix. > > As Nathan said, you can add a U

Re: inserting instructions into prologue/epilogue

2005-08-03 Thread Richard Henderson
On Wed, Aug 03, 2005 at 05:28:43PM +0200, Gunther Nikl wrote: > Thank you. With "emit_insn (gen_rtx_USE (VOIDmode, reg))" the abort > disappears. The same approach seems to fix the loads in the prologue. > I hope that this is the correct solution. No, it isn't. Your problem is that you havn

Re: inserting instructions into prologue/epilogue

2005-08-03 Thread Ian Lance Taylor
Gunther Nikl <[EMAIL PROTECTED]> writes: > I am trying to add instructions into function prologue/epilogue. These > instructions shall save and load "fixed" registers to avoid assembly. > > Register saving in the prologue appears to work. The restore code in the > epilogue aborts in flow.c/propag

Re: inserting instructions into prologue/epilogue

2005-08-03 Thread Gunther Nikl
On Wed, Aug 03, 2005 at 03:50:09PM +0100, Nathan Sidwell wrote: > Gunther Nikl wrote: > >I am trying to add instructions into function prologue/epilogue. These > >instructions shall save and load "fixed" registers to avoid assembly. > > > >Register saving in the prologue appears to work. The restor

Re: inserting instructions into prologue/epilogue

2005-08-03 Thread Nathan Sidwell
Nathan Sidwell wrote: you can add a (USE reg) after the restore in the prologue. Then flow in the EPILOGUE, of course considers the register, and the preceding load, to be live at that point. nathan -- Nathan Sidwell:: http://www.codesourcery.com :: CodeSourcery LLC [EMAIL PROT

Re: inserting instructions into prologue/epilogue

2005-08-03 Thread Nathan Sidwell
Gunther Nikl wrote: Hello! I am trying to add instructions into function prologue/epilogue. These instructions shall save and load "fixed" registers to avoid assembly. Register saving in the prologue appears to work. The restore code in the epilogue aborts in flow.c/propagate_one_insn with "

inserting instructions into prologue/epilogue

2005-08-03 Thread Gunther Nikl
Hello! I am trying to add instructions into function prologue/epilogue. These instructions shall save and load "fixed" registers to avoid assembly. Register saving in the prologue appears to work. The restore code in the epilogue aborts in flow.c/propagate_one_insn with "Attempt to delete prol