[gnu.gcc.bug] installing gcc

pmorris@BBN.COM (phil morris) (10/17/89)

Please help:  I am attempting to install gcc on an SGI IRIS 4D/80 machine
(which utilizes the MIPS R2000/3000 RISC chip---not sure which).  The version
of the operating system is:
	IRIX System V Release 4D1-3.14711181642  (quite a number, huh?)

I assigned:
	tm.h -> config/tm-mips.h
	md   -> mips.md

During compilation of gcc (via just typing "make") I found:

1)  In aux-output.c:
	<timeb.h> is included, but my system does not have this file.
	Additionally, my other two systems (a MVII and an Apollo 3000) both
	define it to only be a struct (struct timeb {...}), which never
	is utilized in any of the code.

2)  The macro HARD_REGNO_MODE_OK defined in tm.h does not function properly
	in the file caller-save.c (but it does work in global-alloc.c and
	local-alloc.c).  The difference is that in the code that works, you
	pass a variable, whereas in caller-save.c you pass a constant.  I
	modified it (just to get it to compile) so that there is a declaration:
		enum machine_mode mymode;
	and then I changed the if statements to be of the form:
		... && HARD_REGNO_MODE_OK(regno, (mymode = DImode)))
	etc, for the various possibilities of mode.

3)  In aux-output.c:
	there are 2 declarations of:
		extern FILE *outfile;
	but no other file (.c or .h) declares it to be generally global
	(but print-tree.c and rtl.c declare it static)--so my compiler rejected
	it (/usr/bin/ld: said it was an undefined variable).

4)  In aux-output.c:
	The routine print_rtx() is used twice but never declared (it is in
	rtl.c as a static void routine), and again, my /usr/bin/ld routine
	did not like it.

5)  Finally, after I attempted to resolve these problems on my own and actually
	got gcc to compile I attempted:
		make gnulib2
	and promptly received:
		gcc:  Program cc1 got fatal signal 6.

If you could send me any suggestions as to how others have installed this
utility on an IRIS 4D workstation, please let me know.

Indebtedly yours,

Phil Morris
(pmorris@dgi0.bbn.com
 (206) 746-6800
 14100 SE 36th St.
 Bellevue, WA  98006
)

--------
Phil Morris (pmorris@dgi0.bbn.com)

Disclaimer: ME? I'm only a non-smoking cat; can't believe a word I meow.