[gnu.g++.lib.bug] pmax problems with test0

ham@Neon.Stanford.EDU (Peter R. Ham) (12/12/89)

This little test program is giving me some problems.
Maybe it's not worth spending time on these little
problems, but it seems like a good way to ferret out
bugs and machine dependencies.

In test.hello.cc, there are some macro definitions
for USG and hpux, that imply that this file works 
using COFF. These definitions don't work for the
pmax version of COFF. Has anyone actually run this
test on USG, hpux, or any other COFF machine. 
The defines don't look correct to me.
Instead of:

#define a_text text_start
#define a_data data_start

I think that they should be:

#define a_text tsize
#define a_data dsize

(at least on the mips).

Furthermore, all of the files that include Incremental.h and
use the macro DECLARE_INIT_FUNCTION, all reference an external
variable called "_initfn". I can't find this variable defined anywhere.
Could it be that this code depends on the behavior of the BSD linker
and expects the linker to define it. The pmax linker requires that
all symbols be defined exactly once, so this tactic won't work.
_initfn will have to be defined somewhere else and linked in.

Peter
--
Peter Ham			PO Box 3430	(h)(415) 322-4390
MS Computer Science Student	Stanford, CA	ham@cs.stanford.edu
Stanford University 		94309		(o)(415) 723-2067