diff options
| author | Koakuma <koachan@protonmail.com> | 2021-02-04 20:51:53 +0700 |
|---|---|---|
| committer | Koakuma <koachan@protonmail.com> | 2021-02-04 21:07:54 +0700 |
| commit | e3e4af727103d90cb191f130159928d237263e1f (patch) | |
| tree | 97bdfe02060616dd36221a9678e5891a0157e9d0 /lib | |
| parent | 1eb2e4801448aca29471bf6f7582135ddafb15fe (diff) | |
| download | zig-e3e4af727103d90cb191f130159928d237263e1f.tar.gz zig-e3e4af727103d90cb191f130159928d237263e1f.zip | |
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.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
