]> Shamusworld >> Repos - rmac/blobdiff - rmac.c
Addresses issue #185 - all optimisations off by default
[rmac] / rmac.c
diff --git a/rmac.c b/rmac.c
index 4f78759070ef6888b0c7897119e87e34ef396d9e..b808f7560865d03d69194310fc7f6a6a5f762317 100644 (file)
--- a/rmac.c
+++ b/rmac.c
@@ -29,7 +29,6 @@ int list_flag;                                        // "-l" listing flag on command line
 int list_pag = 1;                              // Enable listing pagination by default
 int verb_flag;                                 // Be verbose about what's going on
 int m6502;                                             // 1, assembling 6502 code
-int as68_flag;                                 // as68 kludge mode
 int glob_flag;                                 // Assume undefined symbols are global
 int lsym_flag;                                 // Include local symbols in object file
 int optim_warn_flag;                   // Warn about possible short branches
@@ -301,7 +300,6 @@ int Process(int argc, char ** argv)
        listing = 0;                                    // Initialize listing level
        list_flag = 0;                                  // Initialize listing flag
        verb_flag = perm_verb_flag;             // Initialize verbose flag
-       as68_flag = 0;                                  // Initialize as68 kludge mode
        glob_flag = 0;                                  // Initialize .globl flag
        optim_warn_flag = 0;                    // Initialize short branch flag
        debug = 0;                                              // Initialize debug flag
@@ -777,11 +775,8 @@ int main(int argc, char ** argv)
        perm_verb_flag = 0;                             // Clobber "permanent" verbose flag
        legacy_flag = 1;                                // Default is legacy mode on (:-P)
 
-       // Set legacy optimisation flags to on and everything else to off
+       // Set all optimisation flags to off
        memset(optim_flags, 0, OPT_COUNT * sizeof(int));
-       optim_flags[OPT_ABS_SHORT] =
-               optim_flags[OPT_MOVEL_MOVEQ] =
-               optim_flags[OPT_BSR_BCC_S] = 1;
 
        cmdlnexec = argv[0];                    // Obtain executable name
        endian = GetEndianess();                // Get processor endianess