Compiler: improved detection of macros with output