Commit Graph

2 Commits

Author SHA1 Message Date
Michael Tautschnig 2e3c859d07
File-local name mangling: fix Windows tests
The command-line options to goto-cl weren't passed correctly. Also do
not use blank lines as patterns as it confuses test.pl on Windows.
2019-04-29 12:20:10 +01:00
Kareem Khazem 4438e777be
Add --export-function-local-symbols to goto-cc
This switch makes goto-cc do three things:

- retain the implementations of all static functions.
- mangle the names of all static functions.
- unset the file_local flag on all static function symbols.

This feature is intended to help users writing CBMC checks for
file-local functions (i.e., those declared as `static` in the C
language). The intended workflow is: compile the code under test with
the -fkeep-static-functions flag. Then link the code under test with
the 'harness' file, again using the flag. This allows the harness to
call into static functions in the codebase under test.
2019-04-02 08:50:53 -07:00