Creating own Backend: Segmentation fault in mark_jump_label_1

2008-08-18 Thread Balthasar Biedermann
Hello everybody, I create a gcc-backend. I have already created the *.md, *.h and *.c files and I have compiled the gcc which includes backend. But when I try to compile a simple c-File with my gcc I get a Segmentation fault. I tried to debug it but I don't get the point. The Error occures in ma

Re: Creating own Backend: Segmentation fault in mark_jump_label_1

2008-08-19 Thread Balthasar Biedermann
Balthasar Biedermann schrieb: > I create a gcc-backend. I have already created the *.md, *.h and *.c > files and I have compiled the gcc which includes backend. > > But when I try to compile a simple c-File with my gcc I get a > Segmentation fault. I tried to debug it but I don't get the point. >

Re: Creating own Backend: Segmentation fault in mark_jump_label_1

2008-08-19 Thread Ben Elliston
> > The Error occures in mark_jump_label_1. It is called with a null pointer > > as the rtx x. > > Does nobody have an idea why or where the error occures? I really start > to became desperate. I'm sure plenty of people have an idea of why the error occurs. However, you need to be clearer in expl

Re: Creating own Backend: Segmentation fault in mark_jump_label_1

2008-08-20 Thread Balthasar Biedermann
Ben Elliston schrieb: > Perhaps you could get a stack backtrace and try to understand why you're > getting a NULL_RTX passed in? I already made a stack backtrace and posted it in my first mail: Program received signal SIGSEGV, Segmentation fault. 0x081c5d48 in mark_jump_label_1 (x=0x0, insn=0xb7b

Re: Creating own Backend: Segmentation fault in mark_jump_label_1

2008-08-20 Thread Ian Lance Taylor
Balthasar Biedermann <[EMAIL PROTECTED]> writes: > #0 0x081c5d48 in mark_jump_label_1 (x=0x0, insn=0xb7b77118, in_mem=0 > '\0', is_target=0 '\0') at ../.././gcc/jump.c:987 > #1 0x081c60e0 in mark_jump_label_1 (x=0xb7b70e28, insn=0xb7b77118, > in_mem=0 '\0', is_target=0 '\0') at ../.././gcc/jump.

Re: Creating own Backend: Segmentation fault in mark_jump_label_1

2008-08-20 Thread Joe Buck
On Wed, Aug 20, 2008 at 06:31:11AM -0700, Ian Lance Taylor wrote: > Writing your own gcc backend requires digging into the code and > figuring it out. It's not simple. We can't answer precise and > detailed questions about how it is supposed to work, but we can't help > you debug it. I think you

Re: Creating own Backend: Segmentation fault in mark_jump_label_1

2008-08-20 Thread Ian Lance Taylor
Joe Buck <[EMAIL PROTECTED]> writes: > On Wed, Aug 20, 2008 at 06:31:11AM -0700, Ian Lance Taylor wrote: >> Writing your own gcc backend requires digging into the code and >> figuring it out. It's not simple. We can't answer precise and >> detailed questions about how it is supposed to work, but