1 Dec 2002 15:41
Re: Using current gcc & binutils and NetBSD -current speeds
Ian Dall <ian <at> beware.dropbear.id.au>
2002-12-01 14:41:30 GMT
2002-12-01 14:41:30 GMT
Simon Burge <simonb <at> wasabisystems.com> writes:
> Hi folks (and inparticular Ian(!)),
>
> I have managed to build a kernel with current gcc and binutils. Most
> files built with -O2, but I needed a build a couple with -O1 to avoid
>
> internal compiler error: in general_operand, at recog.c:1023
>
> type errors.
Try the following gcc fix:
diff -u -r1.6 ns32k.h
--- ns32k.h 1 Dec 2002 06:27:52 -0000 1.6
+++ ns32k.h 1 Dec 2002 13:29:53 -0000
<at> <at> -1058,7 +1058,6 <at> <at>
else if (GET_CODE (xfooy) == PRE_DEC) \
{ \
if (REGNO (XEXP (xfooy, 0)) == STACK_POINTER_REGNUM) goto ADDR; \
- else abort (); \
} \
}
This is in GO_IF_LEGITIMATE_ADDRESS. It should be sufficient to just
not go if it not a legitimate address. The abort is pointless. I've
got a make check running with this change at the moment, and if it
doesn't throw up any surprises, I'll put in a patch to the gcc people.
> Next, I needed to use -n with ld to link an nmagic kernel, I have
(Continue reading)
RSS Feed