Debugging a custom GCC Back End

2008-08-03 Thread Balthasar Biedermann
Hi, I'm creating a GCC Back-End for a virtual CPU. I have already created a Machine Description (cpu.md) File and the Target Description Makro Files (cpu.h cpu.c). I have only implemented all the makros, which are needed for compiling the GCC. But not all which are needed for the CPU. The co

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&

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