[PATCH][RFC] Another approach to fixing "bad" inlining

Ian Lance Taylor iant@google.com
Tue Jul 10 14:56:00 GMT 2007


Richard Guenther <rguenther@suse.de> writes:

> The case we have to handle is for example
> 
> int foo();
> 
> int bar(struct X x) { return foo(x); }
> 
> int foo(int y);

Cool.

I think we should issue a warning when we see this.  Other than that
your patch looks fine to me.

Ian



More information about the Gcc-patches mailing list