X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fport.h;h=3363aa680042d8277bfd38452336008ca0fe8e5d;hb=066cd8ebd4f07ca4e8777d238da4313f8915169f;hp=5dfc133509a78caf308b596bdabef290caec16ba;hpb=2fa6944da0e3a79b9218dcabbc0b282e60cd9899;p=fw%2Fsdcc diff --git a/src/port.h b/src/port.h index 5dfc1335..3363aa68 100644 --- a/src/port.h +++ b/src/port.h @@ -9,7 +9,6 @@ #include "SDCCargs.h" #include "SDCCpeeph.h" #include "dbuf.h" -#include "mcs51/peep.h" #define TARGET_ID_MCS51 1 #define TARGET_ID_GBZ80 2 @@ -25,17 +24,18 @@ /* Macro to test the target we are compiling for. Can only be used after SDCCmain has defined the port */ -#define TARGET_IS_MCS51 (port->id==TARGET_ID_MCS51) -#define TARGET_IS_GBZ80 (port->id==TARGET_ID_GBZ80) -#define TARGET_IS_Z80 (port->id==TARGET_ID_Z80) -#define TARGET_Z80_LIKE ((port->id==TARGET_ID_Z80) || (port->id==TARGET_ID_GBZ80)) -#define TARGET_IS_AVR (port->id==TARGET_ID_AVR) -#define TARGET_IS_DS390 (port->id==TARGET_ID_DS390) -#define TARGET_IS_DS400 (port->id==TARGET_ID_DS400) -#define TARGET_IS_PIC (port->id==TARGET_ID_PIC) -#define TARGET_IS_PIC16 (port->id==TARGET_ID_PIC16) -#define TARGET_IS_XA51 (port->id==TARGET_ID_XA51) -#define TARGET_IS_HC08 (port->id==TARGET_ID_HC08) +#define TARGET_IS_MCS51 (port->id==TARGET_ID_MCS51) +#define TARGET_IS_GBZ80 (port->id==TARGET_ID_GBZ80) +#define TARGET_IS_Z80 (port->id==TARGET_ID_Z80) +#define TARGET_Z80_LIKE (TARGET_IS_Z80 || TARGET_IS_GBZ80) +#define TARGET_IS_AVR (port->id==TARGET_ID_AVR) +#define TARGET_IS_DS390 (port->id==TARGET_ID_DS390) +#define TARGET_IS_DS400 (port->id==TARGET_ID_DS400) +#define TARGET_IS_PIC (port->id==TARGET_ID_PIC) +#define TARGET_IS_PIC16 (port->id==TARGET_ID_PIC16) +#define TARGET_IS_XA51 (port->id==TARGET_ID_XA51) +#define TARGET_IS_HC08 (port->id==TARGET_ID_HC08) +#define TARGET_MCS51_LIKE (TARGET_IS_MCS51 || TARGET_IS_DS390 || TARGET_IS_DS400) #define MAX_BUILTIN_ARGS 16 /* definition of builtin functions */ @@ -135,6 +135,7 @@ typedef struct bitVect * (*getRegsRead)(lineNode *line); bitVect * (*getRegsWritten)(lineNode *line); bool (*deadMove) (const char *reg, lineNode *currPl, lineNode *head); + bool (*notUsed) (const char *reg, lineNode *currPl, lineNode *head); } peep;