Interpreting stack frame

2009-03-20 Thread Peter Leist
Hello, I just started hacking around with the gcc internals, so apologize if this is a noob question: How can I interpret the stack frame of the current_function? That means, how can I tell what is stored at the location FP+xxx. If that is not (easily) possible, it would help if I can somehow det

Re: Interpreting stack frame

2009-03-23 Thread Peter Leist
On Fri, Mar 20, 2009 at 4:54 PM, Ian Lance Taylor wrote: > Peter Leist writes: > >> How can I interpret the stack frame of the current_function? That >> means, how can >> I tell what is stored at the location FP+xxx. If that is not (easily) >> possible, it

Re: Interpreting stack frame

2009-03-23 Thread Peter Leist
On Mon, Mar 23, 2009 at 5:52 PM, Andrew Haley wrote: > Peter Leist wrote: >> >> I understand that, but at a given point in the program flow the assignment >> of stack slot to a variable should be fixed. > > Should it?  We do some very drastic transformations in

Emit jump insn in function prologue

2009-04-24 Thread Peter Leist
Hi all, can I use emit_cmp_and_jump_insns while creating the function prologue/epilogue? If I try, I always get an error at runtime func.c:33: internal compiler error: in make_edges, at cfgbuild.c:354 I think this is because the jump doesn't get an JUMP_LABEL associated to it. Is there an other