diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-01-15 21:50:41 +0000 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-01-15 21:50:41 +0000 |
commit | a231f5dbb93c60da240a027f2afd8a4797069541 (patch) | |
tree | a6bc68fdc2f1a1fa0000e5cd63a5189f170c226b /compiler_and_linker | |
parent | 35d488e972a9dd75ce3867c000405f128b79c615 (diff) | |
download | MWCC-a231f5dbb93c60da240a027f2afd8a4797069541.tar.gz MWCC-a231f5dbb93c60da240a027f2afd8a4797069541.zip |
more cleanup
Diffstat (limited to '')
-rw-r--r-- | compiler_and_linker/unsorted/CodeGen.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/compiler_and_linker/unsorted/CodeGen.c b/compiler_and_linker/unsorted/CodeGen.c index 4fb0b30..f14aa60 100644 --- a/compiler_and_linker/unsorted/CodeGen.c +++ b/compiler_and_linker/unsorted/CodeGen.c @@ -1294,9 +1294,9 @@ static void CodeGen_EOLCheck(void) { } static void schedule_for(int what) { - CPrep_PushOption(OPT_OFFSET(schedule_cpu), what); + CPrep_PushOption(OPT_OFFSET(scheduling), what); if (copts.schedule_factor == 0) - CPrep_PushOption(OPT_OFFSET(schedule_mode), 2); + CPrep_PushOption(OPT_OFFSET(schedule_factor), 2); } static void pragma_scheduling(void) { @@ -1313,20 +1313,20 @@ static void pragma_scheduling(void) { schedule_for(7); return; } else if (!strcmp(tkidentifier->name, "reset")) { - CPrep_PopOption(OPT_OFFSET(schedule_cpu)); - CPrep_PopOption(OPT_OFFSET(schedule_mode)); + CPrep_PopOption(OPT_OFFSET(scheduling)); + CPrep_PopOption(OPT_OFFSET(schedule_factor)); return; } else if (!strcmp(tkidentifier->name, "off")) { - CPrep_PushOption(OPT_OFFSET(schedule_mode), 0); + CPrep_PushOption(OPT_OFFSET(schedule_factor), 0); return; } else if (!strcmp(tkidentifier->name, "once")) { - CPrep_PushOption(OPT_OFFSET(schedule_mode), 1); + CPrep_PushOption(OPT_OFFSET(schedule_factor), 1); return; } else if (!strcmp(tkidentifier->name, "twice")) { - CPrep_PushOption(OPT_OFFSET(schedule_mode), 2); + CPrep_PushOption(OPT_OFFSET(schedule_factor), 2); return; } else if (!strcmp(tkidentifier->name, "on")) { - CPrep_PushOption(OPT_OFFSET(schedule_mode), 2); + CPrep_PushOption(OPT_OFFSET(schedule_factor), 2); return; } else if (!*flag) { if (!strcmp(tkidentifier->name, "603e")) { @@ -1612,7 +1612,7 @@ void CodeGen_ParsePragma(HashNameNode *name) { case 32: case 64: case 128: - CPrep_PushOption(OPT_OFFSET(code_alignment), value); + CPrep_PushOption(OPT_OFFSET(function_align), value); break; default: PPCError_Warning(161); @@ -1620,7 +1620,7 @@ void CodeGen_ParsePragma(HashNameNode *name) { return; } } else if (t == TK_IDENTIFIER && !strcmp(tkidentifier->name, "reset")) { - CPrep_PopOption(OPT_OFFSET(code_alignment)); + CPrep_PopOption(OPT_OFFSET(function_align)); } else { PPCError_Warning(161); } @@ -1739,7 +1739,7 @@ void CodeGen_ParsePragma(HashNameNode *name) { case 32: case 64: case 128: - CPrep_PushOption(OPT_OFFSET(some_alignment), value); + CPrep_PushOption(OPT_OFFSET(min_struct_alignment), value); break; default: PPCError_Warning(191); @@ -1748,11 +1748,11 @@ void CodeGen_ParsePragma(HashNameNode *name) { } } else if (t == TK_IDENTIFIER) { if (!strcmp(tkidentifier->name, "reset")) - CPrep_PopOption(OPT_OFFSET(some_alignment)); + CPrep_PopOption(OPT_OFFSET(min_struct_alignment)); else if (!strcmp(tkidentifier->name, "on")) - CPrep_PushOption(OPT_OFFSET(some_alignment), 4); + CPrep_PushOption(OPT_OFFSET(min_struct_alignment), 4); else if (!strcmp(tkidentifier->name, "off")) - CPrep_PushOption(OPT_OFFSET(some_alignment), 1); + CPrep_PushOption(OPT_OFFSET(min_struct_alignment), 1); } else { PPCError_Warning(161); } |