James wrote:
> > You should be able to suppress the warnings by adding
> >
> > return (void *) O;
> >
> > to the end of the functions in question.
>
> hmm, that may take a while :)
There are only two functions; __constant_memcpy and
__constant_c_and_count_memset, both in asm/string.h.
> > However, an increase in warnings is symptomatic of gcc-2.8.
> > Apparently, the kernel doesn't compile correctly with gcc-2.8, so you
> > may need to use an older version of gcc to compile the kernel.
>
> ok, i'll go and dig out slackware 3.3 and use gcc off that (somehow.. ah
> it'll be a .tgz package, i'll just untar it over the 'new' one)
Note that you can have multiple versions of gcc installed
simultaneously. /usr/bin/gcc is just the front-end. The main programs
are in /usr/lib/gcc-lib/<target>/<version>.
The only significant difference between the gcc executable from
different versions is which version of the compiler it invokes by
default. You can specify a specific version with -V. So if you keep
the /usr/bin/gcc from 2.8.1, it will invoke 2.8.1 by default. For
compiling the kernel, you can create a shell script, e.g.:
#!/bin/sh
/usr/bin/gcc -V 2.7.2.3 "$@"
call it gcc, and ensure that it goes into a directory which comes
before /usr/bin in $PATH.
--
Glynn Clements <[EMAIL PROTECTED]>