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]

AIX vtable issues



David --

  There's still a problem with templates and vtables on AIX.

  I'm confused, though, by what happens.

  We emit definitions for the vtables, but somehow they don't count.

  For example:

	.toc
LC..0:
	.tc _ZTT4MostIiE[TC],_ZTT4MostIiE[RW]

	...

	.csect _test.rw_C[RW],3
	.align 2
_ZTT4MostIiE:
	.long _ZTV4MostIiE[RW]+12
	.long _ZTC4MostIiE0_2D1IiE[RW]+12
	.long _ZTC4MostIiE4_2D2IiE[RW]+12
	.long _ZTV4MostIiE[RW]+24

  This reults in _ZTT4MostIiE being undefined at link time.

  What's going on here?  (I have the feeling you might have explained
this before, but I can't quite piece it together.)

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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