This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: porting new arch
- From: Shinpei Kato <shinny at j02 dot itscom dot net>
- To: Steven Bosscher <stevenb at suse dot de>, gcc at gcc dot gnu dot org
- Date: Tue, 18 May 2004 21:23:14 +0900 (JST)
- Subject: Re: porting new arch
- References: <200405181406.47635.stevenb@suse.de>
Thank you for your replying.
> Do you mean your arch adds files to gcc/config/mips, or did you base
> your port on code from the MIPS backend?
I port a brand-new arch to gcc. It means I added gcc/config/$ARCH and
wrote $ARCH.md, $ARCH.h, $ARCH.c and so on.
> > libbackend.a(gtype-desc.o)(.text+0x568): In function`gt_gcc_mx_function':
> > /.../build-gcc/gcc/gtype-desc.c:259: undefined reference to
> > `gt_ggc_mx_machine_function' collect2: ld returned 1 exit status
> > make[1]: *** [cc1] Error 1
>
> Looks like you are missing an include. Does your $ARCH.c define
> machine_structure (with the proper GTY markers), and does it include
> a gt-$ARCH-h file?
Yes I found I had been missing an include, but I can't see how I can
include...
It seems gtype-desc.o needs gt-$ARCH.h, yet, gt-$ARCH.h is generated
automatically, isn't it? how could I let gtype-desc.o include gt-$ARCH.h?
And I can't find machine_structure in my $ARCH.c and also in mips.c
which I based on. how could I define machine_structure?
Regards,
Shinpei Kato