Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vcc: Track the built-in subs which static calls originate from
We use another "method" bitmask to record the built-in subs from which static calls originate. This allows us to indentify those subs which are called from housekeeping only, allowing us to selectively disable compiler optimizations. VGC diff for the example from #3545 (comment) ```diff @@ -2242,7 +2278,7 @@ #define END_ if (*ctx->handling) return -void v_matchproto_(vcl_func_f) +void v_dont_optimize v_matchproto_(vcl_func_f) VGC_function_a(VRT_CTX, enum vcl_func_call_e call, enum vcl_func_fail_e *failp) { ``` Fixes #3545
- Loading branch information
Showing
3 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters