Skip to content

Commit dfbd7f0

Browse files
author
Daniel Kroening
authored
Merge pull request #119 from tautschnig/asm-labels-follow-up
GCC asm labels need to be considered when listing undefined functions
2 parents 9c1c04c + cec58f6 commit dfbd7f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/goto-instrument/goto_instrument_parse_options.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,11 @@ int goto_instrument_parse_optionst::doit()
476476

477477
if(cmdline.isset("list-undefined-functions"))
478478
{
479+
const namespacet ns(symbol_table);
480+
479481
Forall_goto_functions(it, goto_functions)
480-
if(!it->second.body_available())
482+
if(!ns.lookup(it->first).is_macro &&
483+
!it->second.body_available())
481484
std::cout << it->first << std::endl;
482485
return 0;
483486
}

0 commit comments

Comments
 (0)