Tying into this and using compiler-specific things in C code, what about __attribute__?
http://bugs.python.org/issue19298 proposes an idea that Daniel Stutzbach originally came up with where we could use __atribute__ (behind a nicer macro) to help detect refleaks on PyObject* stack variables. Would __attribute__ usage be okay in that situation?