[BusyBox] [PATCH] busybox-1.00-pre3 "fix" procps/top.c when -O2 used on cris arch

Glenn McGrath bug1 at tpg.com.au
Mon Dec 8 20:34:23 UTC 2003


On Sun, 07 Dec 2003 21:41:02 +0100
Friedrich Lobenstock <fl at fl.priv.at> wrote:

> When compiling busybox-1.00-pre3/ for the Axis developer board with
> it's cris arch I can not compile busybox. As I found out this is
> because the axis developer system adds "-O2" to the default extra
> cflags. Here's the output of the compile:

> To fix this I had to make the changes below to the source of busybox
> top. The problem is that the compile can not check the printf when
> there are #ifdef's distributed across a call to printf. If this
> essentially a bug of the supplied compiler or not is out of my
> knowledge.

Maybe it is a compiler issue, not sure... ive applied your patch anyway,
its not going to do any harm, and it looks a bit nicer.


Glenn



More information about the busybox mailing list