git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@109
4a8a32a2-be11-0410-ad9d-
d568d2c75423
static char *one = "#0x01";
static char *spname ;
static char *one = "#0x01";
static char *spname ;
-static char *fReturn8051[] = {"dpl","dph","b","a" };
-static char *fReturn390[] = {"dpl","dph","dpx", "b","a" };
+char *fReturn8051[] = {"dpl","dph","b","a" };
+char *fReturn390[] = {"dpl","dph","dpx", "b","a" };
unsigned fReturnSize = 4; /* shared with ralloc.c */
unsigned fReturnSize = 4; /* shared with ralloc.c */
-static char **fReturn = fReturn8051;
+char **fReturn = fReturn8051;
static char *accUse[] = {"a","b"};
static short rbank = -1;
static char *accUse[] = {"a","b"};
static short rbank = -1;
- /* Hack-o-matic: change fReturn based on model. */
- if (options.model == MODEL_FLAT24)
- {
- fReturn = fReturn390;
- fReturnSize = 5;
- }
-
lineHead = lineCurr = NULL;
/* if debug information required */
lineHead = lineCurr = NULL;
/* if debug information required */
void gen51Code (iCode *);
void gen51Code (iCode *);
+extern char *fReturn8051[];
+extern char *fReturn390[];
+extern unsigned fReturnSize;
+extern char **fReturn;
#include "common.h"
#include "main.h"
#include "ralloc.h"
#include "common.h"
#include "main.h"
#include "ralloc.h"
static char _defaultRules[] =
{
static char _defaultRules[] =
{
* but is ugly. There must be a
* better way.
*/
* but is ugly. There must be a
* better way.
*/
+ #endif
+ fReturn = fReturn390;
+ fReturnSize = 5;
#include "common.h"
#include "ralloc.h"
#include "common.h"
#include "ralloc.h"
/*-----------------------------------------------------------------*/
/* At this point we start getting processor specific although */
/*-----------------------------------------------------------------*/
/* At this point we start getting processor specific although */
regs *mcs51_regWithIdx (int);
regs *mcs51_regWithIdx (int);
-/* in gen.c */
-extern unsigned fReturnSize;
-