Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* gcc, g++, libg++ on Alpha
@ 1993-11-22 10:48 Peter Bruhn
  1993-11-22 16:57 ` Burkhard Neidecker-Lutz
  1993-11-23 14:47 ` Jody Goldberg
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Bruhn @ 1993-11-22 10:48 UTC (permalink / raw)


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?

Thanks for any comments,
Peter (bruhn@wu-wien.ac.at)
--
Peter Bruhn             | Department of Applied Computer Science
                        | University of Economics and Business Administration
                        | Augasse 2-6, A-1090 Vienna, Austria
bruhn@wu-wien.ac.at     | Phone: +43 1 3303636 x25 fax: x10
------------------------> Code fast, execute young, and leave a pretty core!


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc, g++, libg++ on Alpha
  1993-11-22 10:48 gcc, g++, libg++ on Alpha Peter Bruhn
@ 1993-11-22 16:57 ` Burkhard Neidecker-Lutz
  1993-11-23 14:47 ` Jody Goldberg
  1 sibling, 0 replies; 3+ messages in thread
From: Burkhard Neidecker-Lutz @ 1993-11-22 16:57 UTC (permalink / raw)


In article <BRUHN.93Nov22114820@aie.wu-wien.ac.at> bruhn@wu-wien.ac.at (Peter Bruhn) writes:
>try later versions. But I did NOT succeed in compiling libg++. Any
>experience on this? Has somebody successfully compiled libg++? 


I don't know whether it works, but in order to make it compile:

1.  Apply the following patch

diff -r -c old/libg++-2.5.1/libio/floatconv.c libg++-2.5.1/libio/floatconv.c
*** old/libg++-2.5.1/libio/floatconv.c	Thu Nov  4 19:45:53 1993
--- libg++-2.5.1/libio/floatconv.c	Mon Nov 22 17:30:36 1993
***************
*** 141,147 ****
  #define Sign_Extend(a,b) /*no-op*/
  #endif
  
! #if defined(__i386__) || defined(clipper) || defined(MIPSEL)
  #define IEEE_8087
  #endif
  
--- 141,147 ----
  #define Sign_Extend(a,b) /*no-op*/
  #endif
  
! #if defined(__i386__) || defined(clipper) || defined(MIPSEL) || defined(__alpha)
  #define IEEE_8087
  #endif
  
2. configure dec-alpha-osf

3. make

This was for gcc 2.5.4 and libg++-2.5.1 on DEC OSF/1 V1.3.

		Burkhard Neidecker-Lutz

Distributed Multimedia Group, CEC Karlsruhe  
BERKOM II Project
Digital Equipment Corporation
neideck@nestvx.enet.dec.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc, g++, libg++ on Alpha
  1993-11-22 10:48 gcc, g++, libg++ on Alpha Peter Bruhn
  1993-11-22 16:57 ` Burkhard Neidecker-Lutz
@ 1993-11-23 14:47 ` Jody Goldberg
  1 sibling, 0 replies; 3+ messages in thread
From: Jody Goldberg @ 1993-11-23 14:47 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1993-11-23 14:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-11-22 10:48 gcc, g++, libg++ on Alpha Peter Bruhn
1993-11-22 16:57 ` Burkhard Neidecker-Lutz
1993-11-23 14:47 ` Jody Goldberg

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