* Help: C++ virtual tables not created
@ 1997-12-20 11:46 Klaus Kaempf
1997-12-22 7:42 ` Martin von Loewis
0 siblings, 1 reply; 2+ messages in thread
From: Klaus Kaempf @ 1997-12-20 11:46 UTC (permalink / raw)
To: egcs
This one really bugs me. EGCS (and gcc 2.8.0) on openVMS/Alpha fail
to generate virtual tables in the assembler output. When checking iostream.obj
from libio with 'nm --demangle', I get:
U istream::ios virtual table
U ostream::ios virtual table
U iostream::ios virtual table
However, if I compile a sunos-pre(!)compiled version of iostream.cc on
openVMS, I get:
0000000000009638 D istream::ios virtual table
0000000000009648 D ostream::ios virtual table
0000000000009628 D iostream::ios virtual table
So to me, this looks like a bug in cpp and not in cc1plus ?!
Question is, what makes the c++-compiler generate virtual tables. I can't
get a clue from 'diff'ing the preprocessor outputs.
Klaus
--
proGIS Software E-Mail: kkaempf@progis.de
Dipl.-Inform. Klaus K"ampf Fax: 0241-47067-29
Jakobstr. 117 Voice: 0241-47067-11
D-52064 Aachen WWW: http://www.progis.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Help: C++ virtual tables not created
1997-12-20 11:46 Help: C++ virtual tables not created Klaus Kaempf
@ 1997-12-22 7:42 ` Martin von Loewis
0 siblings, 0 replies; 2+ messages in thread
From: Martin von Loewis @ 1997-12-22 7:42 UTC (permalink / raw)
To: kkaempf; +Cc: egcs
> So to me, this looks like a bug in cpp and not in cc1plus ?!
Quite unlikely. More likely, you are getting the wrong header files
on openVMS.
> Question is, what makes the c++-compiler generate virtual tables. I can't
> get a clue from 'diff'ing the preprocessor outputs.
AFAIK, g++ looks for some attributes of the class, and implements the
VT in the file which also has the attribute. A possible list is:
- first virtual function is implemented here
- first static member data is implemented here
- first non-inline constructor is implemented here
or the like. These are not the actual criteria used by g++, but you
get the idea.
Regards,
Martin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-12-22 7:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-20 11:46 Help: C++ virtual tables not created Klaus Kaempf
1997-12-22 7:42 ` Martin von Loewis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).