Re: [PATCH] Make gcc3.3 Eliminate Unused Static Functions

From: Adrian Bunk (
Date: Thu Jun 19 2003 - 07:17:33 EST

On Fri, Jun 13, 2003 at 11:03:43AM +1000, Rusty Russell wrote:
> Argh, bogus line pasted into Makefile turned up in patch.
> This should be better...
> +# Needs gcc 3.3 or above to understand max-inline-insns-auto.
> +INLINE_OPTS := $(shell $(CC) -o /non/existent/file -c --param max-inline-insns-auto=0 -xc /dev/null 2>&1 | grep /non/existent/file >/dev/null && echo -finline-functions --param max-inline-insns-auto=0)

You have to add a -Wno-unused-function or you'll get a warning for every
eliminated function.



"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 More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jun 23 2003 - 22:00:29 EST