Add -gdwarf-2 flag to PM

This commit is contained in:
Ethan Roseman
2022-10-17 19:27:39 +09:00
parent fe621311a3
commit 4eb5d2ed48
3 changed files with 3 additions and 2 deletions

View File

@@ -821,7 +821,7 @@ _all_presets = [
diff_flags=["-Mreg-names=32"],
),
Preset("Ocarina of Time", IDO71, "-O2 -mips2"),
Preset("Paper Mario", GCC281, "-O2 -fforce-addr"),
Preset("Paper Mario", GCC281, "-O2 -fforce-addr -gdwarf-2"),
Preset("Quest64", IDO53, "-O2 -g3 -mips2"),
Preset("Rocket Robot on Wheels", GCC272SN, "-O2"),
Preset("Super Mario 64", IDO53, "-O1 -g -mips2"),

View File

@@ -69,7 +69,7 @@ COMMON_CLANG_FLAGS: Flags = [
COMMON_GCC_FLAGS: Flags = [
FlagSet(id="gcc_opt_level", flags=["-O0", "-O1", "-O2", "-O3"]),
FlagSet(id="gcc_debug_level", flags=["-g0", "-g1", "-g2", "-g3"]),
FlagSet(id="gcc_debug_level", flags=["-gdwarf-2", "-g0", "-g1", "-g2", "-g3"]),
FlagSet(id="gcc_char_type", flags=["-fsigned-char", "-funsigned-char"]),
Checkbox("gcc_force_addr", "-fforce-addr"),
]

View File

@@ -137,6 +137,7 @@
"gcc_debug_level.-g1": "Minimal trace info",
"gcc_debug_level.-g2": "Local variable tracking",
"gcc_debug_level.-g3": "Macro expansions",
"gcc_debug_level.-gdwarf-2": "DWARF 2 debug info (should not affect codegen)",
"gcc_force_addr": "Force memory address constants to be copied into registers before doing arithmetic on them",
"ido_opt_level": "Optimization level",