removed some obsolete switches
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 29 Mar 2001 13:05:33 +0000 (13:05 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 29 Mar 2001 13:05:33 +0000 (13:05 +0000)
fixed the push of the first parameter with --int-long-reent etc

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@718 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCglobl.h
src/SDCCmain.c
src/SDCCsymt.c

index 86f6bc586a80f328b2ecd86b7dc01b15f1d7f764..c21af2bc46ac461ec011477ea1fd815dd4c98325 100644 (file)
@@ -93,7 +93,6 @@ typedef int bool;
 #define PRAGMA_NOOVERLAY   "NOOVERLAY"
 #define PRAGMA_CALLEESAVES "CALLEE-SAVES"
 #define PRAGMA_EXCLUDE     "EXCLUDE"
-#define PRAGMA_NOREGPARMS  "NOREGPARMS"
 #define  SMALL_MODEL 0
 #define  LARGE_MODEL 1
 #define  TRUE 1
@@ -212,7 +211,6 @@ struct options
     int debug:1;               /* generate extra debug info */
     int nodebug:1;             /* Generate no debug info. */
     int stackOnData:1;         /* stack after data segment  */
-    int noregparms:1;          /* do not pass parameters in registers */
     int c1mode:1;              /* Act like c1 - no pre-proc, asm or link */
     char *peep_file;           /* additional rules for peep hole */
     char *out_name;            /* Asm output name for c1 mode */
index af5b02db6ac6a41aa0aa020ec2cabd1598e93f76..8c88fabc2e91feaa05eb703255fe6126fef9e66f 100644 (file)
@@ -127,7 +127,6 @@ char DefaultExePath[128];
 #define OPTION_C1_MODE   "-c1mode"
 #define OPTION_HELP         "-help"
 #define OPTION_CALLEE_SAVES "-callee-saves"
-#define OPTION_NOREGPARMS   "-noregparms"
 #define OPTION_NOSTDLIB     "-nostdlib"
 #define OPTION_NOSTDINC     "-nostdinc"
 #define OPTION_VERBOSE      "-verbose"
@@ -754,12 +753,6 @@ parseCmdLine (int argc, char **argv)
              continue;
            }
 
-         if (strcmp (&argv[i][1], OPTION_NOREGPARMS) == 0)
-           {
-             options.noregparms = 1;
-             continue;
-           }
-
          if (strcmp (&argv[i][1], OPTION_PEEP_FILE) == 0)
            {
              if (argv[i][1 + strlen (OPTION_PEEP_FILE)])
@@ -958,65 +951,6 @@ parseCmdLine (int argc, char **argv)
            }
        }
 
-      /* these are undocumented options */
-      /* if preceded by '/' then turn off certain optmizations, used
-         for debugging only these are also the legacy options from
-         version 1.xx will be removed gradually.
-         It may be an absolute filename.
-       */
-      if (*argv[i] == '/' && strlen (argv[i]) < 3)
-       {
-         switch (argv[i][1])
-           {
-
-           case 'p':
-             optimize.ptrArithmetic = 0;
-             break;
-
-           case 'L':
-             switch (argv[i][2])
-               {
-               case '\0':
-                 optimize.label1 =
-                   optimize.label2 =
-                   optimize.label3 =
-                   optimize.label4 = 0;
-                 break;
-               case '1':
-                 optimize.label1 = 0;
-                 break;
-               case '2':
-                 optimize.label2 = 0;
-                 break;
-               case '3':
-                 optimize.label3 = 0;
-                 break;
-               case '4':
-                 optimize.label4 = 0;
-                 break;
-               }
-             break;
-
-           case 'l':
-             switch (argv[i][2])
-               {
-               case 'i':
-                 optimize.loopInvariant = 0;
-                 break;
-               case 'n':
-                 optimize.loopInduction = 0;
-                 break;
-
-
-               }
-             break;
-           case 'g':
-             optimize.global_cse = 0;
-             break;
-
-           }
-         continue;
-       }
 
       /* if preceded by  '-' then option */
       if (*argv[i] == '-')
index 3cf7259dde6ba0f13841414ce3a193f46bccf812..ae8532460892b8ddb0efa3e22d1fe4d8a95b091c 100644 (file)
@@ -1623,7 +1623,6 @@ processFuncArgs (symbol * func, int ignoreName)
          and as port dictates
          not inhibited by command line option or #pragma */
       if (!func->hasVargs &&
-         !options.noregparms &&
          !IS_RENT (func->etype) &&
          (*port->reg_parm) (val->type))
        {