# stage1: set gen_frame_size alignment to work around requirement mismatch · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/e3e4af727103d90cb191f130159928d237263e1f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: e3e4af727103d90cb191f130159928d237263e1f

Requested commit: e3e4af727103d90cb191f130159928d237263e1f

Commit: e3e4af727103d90cb191f130159928d237263e1f

Tree: 97bdfe02060616dd36221a9678e5891a0157e9d0

Author: Koakuma

Committer: Koakuma

## Message

```
stage1:	set gen_frame_size alignment to work around requirement mismatch

Explicitly set the alignment requirements to 1 (i.e, mark the load as unaligned)
since there are some architectures (e.g SPARCv9) which has different alignment
requirements between a function pointer and usize pointer. On those
architectures, not explicitly setting it will lead into @frameSize generating
usize-aligned load instruction that could crash if the function pointer happens
to be not usize-aligned.

```

## Parents

- [1eb2e4801448aca29471bf6f7582135ddafb15fe](https://git.cafe/gitcafe/zig/commit/1eb2e4801448aca29471bf6f7582135ddafb15fe?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/e3e4af727103d90cb191f130159928d237263e1f?format=markdown)
