https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40207
Andrew Pinski changed:
What|Removed |Added
Resolution|--- |FIXED
Status|UNCONFIRMED
--- Comment #2 from fche at redhat dot com 2009-05-20 16:56 ---
(In reply to comment #1)
> The define and the static inline functions are not equivalent at all.
Right, in general, but if the expressions are side-effect-free,
gcc could move their evaluation farther down.
--
fche at r
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-05-20 15:21 ---
The define and the static inline functions are not equivalent at all.
#define evaluate(val) \
do { \
typeof(val) tmpval = val; \
if (unlikely(enabled)) { \
printf("value is: %d\n", tmpva