From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,af719034a687a57d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-05-16 07:42:37 PST Newsgroups: comp.sys.dec Path: gmd.de!nntp.gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!newsxfer.itd.umich.edu!nntp.cs.ubc.ca!torn!uunet.ca!uunet.ca!algorithmics.com!jody From: jody@algorithmics.com (Jody Goldberg) Subject: Re: GNU C++ available for alpha/osf1? Message-ID: Organization: Algorithmics Inc References: <1994May10.181934.32340@husc14.harvard.edu> <1994May11.184037.32360@husc14.harvard.edu> Date: Sat, 14 May 1994 04:23:23 GMT 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.