From 73967d94994c82df85e44f90af4461f90b532640 Mon Sep 17 00:00:00 2001 From: johanknol Date: Thu, 29 Mar 2001 13:05:33 +0000 Subject: [PATCH] removed some obsolete switches 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 | 2 -- src/SDCCmain.c | 66 ------------------------------------------------- src/SDCCsymt.c | 1 - 3 files changed, 69 deletions(-) diff --git a/src/SDCCglobl.h b/src/SDCCglobl.h index 86f6bc58..c21af2bc 100644 --- a/src/SDCCglobl.h +++ b/src/SDCCglobl.h @@ -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 */ diff --git a/src/SDCCmain.c b/src/SDCCmain.c index af5b02db..8c88fabc 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -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] == '-') diff --git a/src/SDCCsymt.c b/src/SDCCsymt.c index 3cf7259d..ae853246 100644 --- a/src/SDCCsymt.c +++ b/src/SDCCsymt.c @@ -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)) { -- 2.39.5