int nostdlib; /* Don't use standard lib files */
int nostdinc; /* Don't use standard include files */
int verbose; /* Show what the compiler is doing */
- int shortisint; /* treat short like int or char */
+ int shortis8bits; /* treat short like int or char */
char *calleeSaves[128]; /* list of functions using callee save */
char *excludeRegs[32]; /* registers excluded from saving */
#define OPTION_NO_LOOP_IND "--noinduction"
#define OPTION_LESS_PEDANTIC "--lesspedantic"
#define OPTION_NO_GCSE "--nogcse"
-#define OPTION_SHORT_IS_CHAR "--short-is-char"
+#define OPTION_SHORT_IS_8BITS "--short-is-8bits"
/** Table of all options supported by all ports.
This table provides:
{ 0, "--nostdinc", &options.nostdinc, NULL },
{ 0, "--verbose", &options.verbose, "Trace calls to the preprocessor, assembler, and linker" },
{ 0, OPTION_LESS_PEDANTIC, NULL, "Disable some of the more pedantic warnings" },
- { 0, "--short-is-int", &options.shortisint, "Make short the same size as int" },
- { 0, OPTION_SHORT_IS_CHAR, NULL, "Make short the same size as char (default)" }
+ { 0, OPTION_SHORT_IS_8BITS, NULL, "Make short 8bits (for old times sake)" }
};
/** Table of all unsupported options and help text to display when one
options.nostdlib = 0;
options.nostdinc = 0;
options.verbose = 0;
- options.shortisint = 0;
+ options.shortis8bits = 1;
options.stack10bit=0;
continue;
}
- if (strcmp (&argv[i][1], OPTION_SHORT_IS_CHAR) == 0) {
- options.shortisint=0;
+ if (strcmp (&argv[i][1], OPTION_SHORT_IS_8BITS) == 0) {
+ options.shortis8bits=1;
continue;
}
// special case for "short"
if (etype->select.s._short) {
- SPEC_NOUN(etype) = options.shortisint ? V_INT : V_CHAR;
+ SPEC_NOUN(etype) = options.shortis8bits ? V_CHAR : V_INT;
etype->select.s._short = 0;
}
_defaultRules},
{
/* Sizes: char, short, int, long, ptr, fptr, gptr, bit, float, max */
- 1, 1, 2, 4, 2, 2, 3, 1, 4, 4},
+ 1, 2, 2, 4, 2, 2, 3, 1, 4, 4},
{
"XSEG",
"STACK",
},
{
/* Sizes: char, short, int, long, ptr, fptr, gptr, bit, float, max */
- 1, 1, 2, 4, 1, 2, 3, 1, 4, 4
+ 1, 2, 2, 4, 1, 2, 3, 1, 4, 4
},
{
"XSEG (XDATA)",
},
{
/* Sizes: char, short, int, long, ptr, fptr, gptr, bit, float, max */
- 1, 1, 2, 4, 1, 2, 3, 1, 4, 4
+ 1, 2, 2, 4, 1, 2, 3, 1, 4, 4
},
{
"XSEG (XDATA)",
},
{
/* Sizes: char, short, int, long, ptr, fptr, gptr, bit, float, max */
- 1, 1, 2, 4, 1, 2, 1, 1, 4, 4
+ 1, 2, 2, 4, 1, 2, 1, 1, 4, 4
/* TSD - I changed the size of gptr from 3 to 1. However, it should be
2 so that we can accomodate the PIC's with 4 register banks (like the
16f877)
},
{
/* Sizes: char, short, int, long, ptr, fptr, gptr, bit, float, max */
- 1, 1, 2, 4, 2, 2, 2, 1, 4, 4
+ 1, 2, 2, 4, 2, 2, 2, 1, 4, 4
},
{
"XSEG",