Re: [patch] make inflate work with gcc3.5 and 4k stacks

From: Andrew Morton
Date: Sat Mar 20 2004 - 16:02:14 EST


Matt Mackall <mpm@xxxxxxxxxxx> wrote:
>
> Quick fix to work around gcc3.5's automatic inline and broken stack
> requirements calculation. Without this, I see stack overflows at boot
> with 4k stacks.
>
> gcc3.5 - fix inflate inlining
>
> -STATIC int inflate_fixed(void)
> +STATIC int noinline inflate_fixed(void)

Thanks. I added appropriate comments to this, as one should always do when
adding otherwise-utterly-mystifying code.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/