Skip to content

Conversation

@peace-maker
Copy link
Member

The compiler rewrites the definition address of all variables in the write phase. That second phase uses previous usage knowledge to exclude unused functions, making the binary smaller.

Struct variables are handled in a seperate declstructvar function which missed that write pass fixup.

Set the definition address of struct variables in the write pass es well.

Fixes #308

The compiler rewrites the definition address of all variables in the write phase. That second phase uses previous usage knowledge to exclude unused functions, making the binary smaller.

Struct variables are handled in a seperate `declstructvar` function which missed that write pass fixup.

Set the definition address of struct variables in the write pass es well.

Fixes alliedmodders#308
@dvander dvander merged commit a1d48f2 into alliedmodders:master Jan 30, 2019
@peace-maker peace-maker deleted the struct_codestart branch January 30, 2019 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bad debug symbol codestart for struct variables

2 participants