Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix optimizer interfering with some native subs
When a native sub has only native arguments and is declared as "is native" without args (i.e. already loaded library like libc) and has a very simple function body like {} or { * } but not { ... } or other stub markers, the optimizer could statically inline the original function body, circumventing the call to the native function. Mark all native subs as soft, to prevent static inlining. Fixes GH #3244
- Loading branch information
Showing
2 changed files
with
13 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