Removed alignment pragma from -B output from mrbc.

We no longer need 4 bytes alignment after we moved to the byte oriented
instructions.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-06-09 15:16:19 +09:00
parent d428fa0c4a
commit 449317a251
+2 -9
View File
@@ -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;
}