[net.bugs.usg] System V release may have problem

alan@drivax.UUCP (Alan Fargusson) (08/29/85)

The makefile for the io directory compiles the drivers in the
following manor:

	cc -O -I/usr/include -S gd.c
	ed - gd.s <../spl.ed
	/lib/c2 -y gd.s gd.os
	as -o gd.o gd.os
	rm -f gd.s gd.os
	ar rv ../lib2 gd.o

This causes the device drivers to be optimised twice. This may be
a problem since the first optimisation does not use the -y flag
which may cause the optimiser from using some instructions that
don't work correctly on device registers. I say that it may because
I don't really know what it does.

I think that the -O flag should be removed from the CFLAGS in io.mk.
Doing this and remaking LIB2 seems to have cured some flakey problems
on my system, which range from machine checks, to strange device errors
on tape drives and disks.

-- 

Alan Fargusson.

{ ihnp4, amdahl, mot }!drivax!alan