Re: inline (and variants) function modifier

From: Jan Engelhardt
Date: Sat Nov 20 2004 - 05:03:47 EST


>May I ask how one is supposed to write a non-static function and let the
>compiler decide whether it is worth inlining? Since all of 'inline',
>'__inline', and '__inline__' get __attribute__((always_inline))
>attached, I can't see how I would currently do this. Wouldn't it make
>sense to leave at least one of the three with its original meaning?

The only way I see ATM is to:
#undef inline

Then inline and __attribute__((always_inline)) are "independent" again.



Jan Engelhardt
--
Gesellschaft fÃr Wissenschaftliche Datenverarbeitung
Am Fassberg, 37077 GÃttingen, www.gwdg.de
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/