diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-06-09 15:16:19 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:21:09 +0900 |
| commit | 449317a251380c527b4cb296af95e51f4883d74c (patch) | |
| tree | d7496e6b3f2551a9343c450a6fa36bc64b2e44c9 /src/dump.c | |
| parent | d428fa0c4acfe4f70ab534d420052c193bd83281 (diff) | |
| download | mruby-449317a251380c527b4cb296af95e51f4883d74c.tar.gz mruby-449317a251380c527b4cb296af95e51f4883d74c.zip | |
Removed alignment pragma from `-B` output from `mrbc`.
We no longer need 4 bytes alignment after we moved to the byte oriented
instructions.
Diffstat (limited to 'src/dump.c')
| -rw-r--r-- | src/dump.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/dump.c b/src/dump.c index a1c539e50..3aade76a3 100644 --- a/src/dump.c +++ b/src/dump.c @@ -903,15 +903,8 @@ mrb_dump_irep_cfunc(mrb_state *mrb, const mrb_irep *irep, uint8_t flags, FILE *f "#ifdef __cplusplus\n" "extern const uint8_t %s[];\n" "#endif\n" - "const uint8_t\n" - "#if defined __GNUC__\n" - "__attribute__((aligned(%u)))\n" - "#elif defined _MSC_VER\n" - "__declspec(align(%u))\n" - "#endif\n" - "%s[] = {", - initname, - (uint16_t)MRB_DUMP_ALIGNMENT, (uint16_t)MRB_DUMP_ALIGNMENT, initname) < 0) { + "const uint8_t %s[] = {", + initname, initname) < 0) { mrb_free(mrb, bin); return MRB_DUMP_WRITE_FAULT; } |
