------- Comment #3 from burnus at gcc dot gnu dot org 2009-03-30 20:34 ------- I wonder whether a global variable (in trans-decl.c, exported in trans.h) is not the easiest. There can only be one procedure at a time. For the existing trans-decl.c one should put a if(!attr.function) as for functions the code is unreachable (the return happens earlier).
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39577