Re: [jba...@redhat.com: [PATCH 0/3] tracepoints: delay argument evaluation]

2009-05-20 Thread Ian Lance Taylor
Jason Baron writes: > While working on some Linux kernel code, I've found that functions that > are declared as 'static inline' are having their arguments evaluated > well before they are used. For example I have a function: > > static inline void trace(arg1, arg2) > { > if (unlikely(enable

[jba...@redhat.com: [PATCH 0/3] tracepoints: delay argument evaluation]

2009-05-20 Thread Jason Baron
hi, While working on some Linux kernel code, I've found that functions that are declared as 'static inline' are having their arguments evaluated well before they are used. For example I have a function: static inline void trace(arg1, arg2) { if (unlikely(enabled)) {