Internal Compiler error while trying to compile template code

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Wed Mar 22 15:10:00 GMT 2000


> I would like to know if g++ has any limitations for compiling template
> code on mips.

I don't know. It is not so much the processor that would matter, but
the capabilities of the object file format.

> Are there any macros that need to be specified for this purpose in
> the configuration file that contains the target definitions ?

No, there are no macros specifically added to the back-end to support
templates.

> Have these macros MAKE_DECL_ONE_ONLY and UNIQUE_SECTION_P ( used by
> iris6gld.h and elf.h) got to do something with templates ??

Yes, they do. If available, g++ tries to arrange template
instantiations so that the linker will remove duplicates.

Regards,
Martin



More information about the Gcc mailing list