Re: inline of inline

2004-10-17 Thread Jan Hubicka
> > In this example > > static inline int f (int x) { return x + 1; } > > static inline int g (int x, inline int f (int x)) > { return 1 + f (x); } > > int h (int x) > { return g (x, f); } > > is h supposed to optimize to return x + 2 or supposed to actually call > f. Here

inline of inline

2004-10-17 Thread Eliot Dresselhaus
In this example static inline int f (int x) { return x + 1; } static inline int g (int x, inline int f (int x)) { return 1 + f (x); } int h (int x) { return g (x, f); } is h supposed to optimize to return x + 2 or supposed to actually call f. Here's what I get with current