This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: porting new arch


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]