mirror of
https://github.com/pret/agbcc.git
synced 2026-03-21 17:44:20 -05:00
Update toplev.c
This commit is contained in:
parent
b11e16421d
commit
5458d3dfa1
|
|
@ -732,16 +732,13 @@ lang_independent_options f_options[] =
|
|||
"Use hex instead of decimal in assembly output"},
|
||||
{"fix-debug-line", &flag_fixed_debug_line_info, 1,
|
||||
"Generate fixed DWARF line info"},
|
||||
#ifndef OLD_COMPILER
|
||||
/* This flag fixes a bug in the newer agbcc version that causes `lr` to be
|
||||
saved onto the stack in functions where it is not necessary. This is
|
||||
needed to produce matching code for certain GBA games.
|
||||
|
||||
This flag is defined under OLD_COMPILER to prevent a situation where a game
|
||||
that uses both agbcc and old_agbcc (e.g., pokepinballrs) needs to maintain two
|
||||
separate lists of flags depending on the compiler used for a specific file.
|
||||
Otherwise, old_agbcc will throw an error. */
|
||||
needed to produce matching code for certain GBA games. */
|
||||
{"prologue-bugfix", &flag_prologue_bugfix, 1,
|
||||
"Prevent unnecessary saving of the lr register to the stack"},
|
||||
#endif
|
||||
};
|
||||
|
||||
#define NUM_ELEM(a) (sizeof (a) / sizeof ((a)[0]))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user