Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: jody@algorithmics.com (Jody Goldberg)
Subject: Re: GNU C++ available for alpha/osf1?
Date: Sat, 14 May 1994 04:23:23 GMT	[thread overview]
Message-ID: <Cpryv2.K2s@algorithmics.com> (raw)
In-Reply-To: 1994May11.184037.32360@husc14.harvard.edu

chandoni@husc.harvard.edu writes:

>I wrote:
>>Is there a working version of GNU C++ for the alpha?  According to the
>>readme in 2.5.8, gcc only works on C, for now (until 2.6).

>Actually, 2.5.8 seems to work fine as a C++ compiler; it's libg++ that
>isn't yet supported.  My own classes work fine, as long as they
>use stdio instead of iostream (and other library functions).

>If anybody has gotten libg++ to work, let me know!

Both g++ and libg++ are functional on alphas.  There is a major
bug in each that can be patched fairly easily.

gcc-2.5.8 - In one of the cp- files there is a comment about 'this
	breaking vtables on the alpha'.  Grep for it and change the
	use of integer_type -> ptr_diff_type or something of the appropriate
	size.

libg++-2.5.3 - floatconv.c will core when handling floats.  Search for
	the definitions of the macros word0, word1.  Change the use of
	long -> int.  This seems to ameliorate things.

The remaining alpha specific bugs are avoidable and are beyond my power
to rectify.

	- Don't bother trying to optimize.  Missing symbols will result

	- Always link staticly or you get complaints at run time
	that abort has relocation information unexpectedly.

	- Bad code for
	  String * tmp = new bob[size];
	  for(size_t i = 4 ; ....

	  i and tmp co-exist

	- internal compiler error for dynamic arrays of objects with ctors

	- allocation of zero sized arrays causes corage

Good Luck
-- 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jody@algorithmics.com    |   GO BACK AND CHANGE IT!  Expecting to get
Fax: (416)-777-0767      |   a design right initially is foolhardy.


      parent reply	other threads:[~1994-05-14  4:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-05-10 22:19 GNU C++ available for alpha/osf1? chandoni
1994-05-11 22:40 ` chandoni
1994-05-13 21:46   ` Tony Coates
1994-05-14  4:23   ` Jody Goldberg [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox