------- Comment #4 from rguenth at gcc dot gnu dot org 2010-02-04 15:38 ------- The easiest way would be to expose the middle-end ref-all pointer annotation so you could do typedef struct T *my_ptr __attribute__((ref_all)).
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34156