> anywhere in that translation unit. After all, any non-static function > in that translation unit might be called from some other translation > unit that -did- use locking or whatever. > > I will let you know how it goes. ;-) It breaks DEC10 ;-) If there is kickback over things like optimisation perhaps the gcc maintainers could at least consider something like int __attribute((threadsafe)) fred; ?? Alan -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html