This is the mail archive of the gcc-bugs@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]

Current cvs miscompiles tinfo2.cc?


With current CVS, trying to compile any nontrivial C++ program gets a
flood of link errors -

tinfo2.cc(.text+0xda): undefined reference to `__tf19__pointer_type_info'
tinfo2.cc(.text+0x11e): undefined reference to `__tf19__pointer_type_info'
tinfo2.cc(.text+0x168): undefined reference to `__tf16__attr_type_info'
tinfo2.cc(.text+0x1ac): undefined reference to `__tf16__attr_type_info'
tinfo2.cc(.text+0x249): undefined reference to `__tf16__func_type_info'
tinfo2.cc(.text+0x2d1): undefined reference to `__tf19__pointer_type_info'
tinfo2.cc(.text+0x31a): undefined reference to `__tf19__pointer_type_info'
tinfo2.cc(.text+0x38d): undefined reference to `__tf16__attr_type_info'
tinfo2.cc(.text+0x3d5): undefined reference to `__tf16__attr_type_info'
tinfo2.cc(.text+0x470): undefined reference to `__tf19__pointer_type_info'
tinfo2.cc(.text+0x4ac): undefined reference to `__tf19__pointer_type_info'
tinfo2.cc(.text+0x57f): undefined reference to `__tf19__pointer_type_info'
tinfo2.cc(.text+0x5d9): undefined reference to `__vt_19__pointer_type_info'
tinfo2.cc(.text+0x619): undefined reference to `__vt_16__attr_type_info'
tinfo2.cc(.text+0x659): undefined reference to `__vt_16__func_type_info'
tinfo2.cc(.text+0x699): undefined reference to `__vt_16__ptmf_type_info'
tinfo2.cc(.text+0x6d9): undefined reference to `__vt_16__ptmd_type_info'
tinfo2.cc(.text+0x719): undefined reference to `__vt_17__array_type_info'
tinfo2.cc(.text+0x80e): undefined reference to `__vt_19__builtin_type_info'
tinfo2.cc(.text+0x84e): undefined reference to `__vt_19__builtin_type_info'
tinfo2.cc(.text+0x88e): undefined reference to `__vt_19__builtin_type_info'
tinfo2.cc(.text+0x8ce): undefined reference to `__vt_19__builtin_type_info'
tinfo2.cc(.text+0x90e): undefined reference to `__vt_19__builtin_type_info'
tinfo2.cc: more undefined references to `__vt_19__builtin_type_info' follow

Looking at tinfo2.cc, I believe that all these symbols are supposed to
be defined and exported by this module, not external references from
it.  For example:

struct __builtin_type_info : public type_info {
  __builtin_type_info (const char *n): type_info (n) {}
};

is the definition of the __builtin_type_info class, and - if I
understand this stuff correctly - should cause emission of its virtual
table and typeinfo function.

zw

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