Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to remove static from globals #148

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

jryans
Copy link
Contributor

@jryans jryans commented Jan 13, 2023

For various experiments, it's useful to investigate how compilers treat each function separately, but Csmith defaults to marking all functions static which inhibits this.

As it happens, there is a long-lived setting within Csmith to decide whether globals should be forced as static, but it's currently always enabled with no CLI option to disable it.

This adds an advanced option to disable forced globals and documents the option in the help text.

@eeide eeide assigned eeide and jxyang and unassigned eeide Jan 13, 2023
@eeide
Copy link
Member

eeide commented Jan 13, 2023

Looks good to me! (I'll wait a bit for @jxyang to comment too.)

@eeide eeide merged commit 92069e4 into csmith-project:master Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants