Re: [2.6 patch] add a config option for -Os compilation

From: Adrian Bunk
Date: Wed Oct 15 2003 - 18:26:09 EST


On Wed, Oct 15, 2003 at 04:12:51PM -0700, Andrew Morton wrote:
>...
> They are small concerns really, but it does make one wonder why we should
> not make this change unconditional: just switch the kernel to -Os?
>
> Does anyone have any (non-micro-)benchmark results which say this is a bad
> idea?

No benchmarks, only arguments:

- it's less tested (there might be miscompilations in some part of the
kernel with some supported compilers)
- there might be fast path code somewhere in the kernel that becomes
significantely slower with -Os
- I've already seen a report for an ICE in gcc 2.95 of a user compiling
kernel 2.4 with -Os [1]

cu
Adrian

[1] http://bugs.debian.org/213497

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

-
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/