This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: kerne-2.4.0-test13pre3 with gcc-2.97
- To: Kaoru Fukui <k_fukui at highway dot ne dot jp>
- Subject: Re: kerne-2.4.0-test13pre3 with gcc-2.97
- From: Thomas Sailer <sailer at ife dot ee dot ethz dot ch>
- Date: Sun, 24 Dec 2000 16:16:09 +0100
- CC: linuxppc-dev at lists dot linuxppc dot org, gcc at gcc dot gnu dot org
- Organization: IfE
- References: <20001223145258.Postino-022361@smtp01.highway.ne.jp>
- Reply-To: sailer at ife dot ee dot ethz dot ch
Kaoru Fukui wrote:
> The gcc-2.97 makes singleCPU work kernel well,
> But the smp kernel didn't work.
> diff -urN base/linux/drivers/usb/audio.c fixed/linux/drivers/usb/audio.c
> --- base/linux/drivers/usb/audio.c Fri Dec 22 13:47:44 2000
> +++ fixed/linux/drivers/usb/audio.c Sat Dec 23 12:18:21 2000
> @@ -788,7 +788,7 @@
> {
> union {
> __s16 s[64];
> - unsigned char b[0];
> + unsigned char *b;
> } tmp;
> unsigned int scnt, maxs, ufmtsh, dfmtsh;
>
> @@ -1139,7 +1139,7 @@
> {
> union {
> __s16 s[64];
> - unsigned char b[0];
> + unsigned char *b;
> } tmp;
> unsigned int scnt, maxs, ufmtsh, dfmtsh;
>
This patch is completely bogus. I do not believe you tested these
code paths, it just cannot work that way.
Tom