From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1f6d57e41a1871a8 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-11-23 20:32:15 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!uunet.ca!algorithmics.com!jody From: jody@algorithmics.com (Jody Goldberg) Subject: Re: gcc, g++, libg++ on Alpha Message-ID: Organization: Algorithmics Inc References: Date: Tue, 23 Nov 1993 14:47:39 GMT bruhn@wu-wien.ac.at (Peter Bruhn) writes: >I was successful to compile gcc-2.5.2 on my DEC 3000/400. I did not >try later versions. But I did NOT succeed in compiling libg++. Any >experience on this? Has somebody successfully compiled libg++? Does it >work on a DEC-Alpha? There are a couple of known problems with g++ on the alpha. the most notable of which is that calling virtual functions in multiply inherited classes is broken. As a result the compiling of libg++ has been disabled. Editing the config.in file should allow you to re-enable compiling on the alpha. Editing, cp-call.c around line 420 /* FIXME: This is what breaks vtables on the alpha. */ *ptr_to_instptr = build (PLUS_EXPR, TREE_TYPE (*ptr_to_instptr), *ptr_to_instptr, convert (integer_type_node, build_component_ref ....... ^^^^^^^^^^^^^^^^^ so that the integer_type_node becomes ptr_type_node should solve the above problem with g++. It would recomend using 2.5.4 as it includes another Alpha specific patch. There are still a couple of know problems, but as long as you don't try to optimize and don't use alot of sign extension things should be serviceable. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | It takes a lot of hard work to made something jody@algorithmics.com | easy. Then when you're done, people look at it and