From a231f5dbb93c60da240a027f2afd8a4797069541 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sun, 15 Jan 2023 21:50:41 +0000 Subject: more cleanup --- compiler_and_linker/unsorted/CodeGen.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'compiler_and_linker') 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); } -- cgit v1.2.3