Messages in this thread | | | Date | Thu, 19 Jun 2003 14:17:33 +0200 | From | Adrian Bunk <> | Subject | Re: [PATCH] Make gcc3.3 Eliminate Unused Static Functions |
| |
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.
cu Adrian
--
"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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |