2a92f9bf4d
In util/ncgg, add two more errors for tables using reglap: - "Two sizes of reg_float can't be same size" - "Missing reg_float of size %d to contain %s" In mach/proto/ncg, rename macro isregvar_size() to PICK_REGVAR(), so the macro doesn't look like a function. This macro sometimes doesn't evaluate its second argument. In mach/powerpc/ncg/mach.c, change type of lfs_set to uint32_t, and change the left shifts from 1U<<regno to (uint32_t)1<<regno, because 1U would be too small for machines with 16-bit int.
40 lines
802 B
C
40 lines
802 B
C
/*
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
*/
|
|
/* $Id$ */
|
|
|
|
struct regvar {
|
|
struct regvar *rv_next;
|
|
long rv_off;
|
|
int rv_size;
|
|
int rv_type;
|
|
int rv_score;
|
|
int rv_reg;
|
|
};
|
|
|
|
struct regassigned {
|
|
struct regvar *ra_rv;
|
|
int ra_score;
|
|
};
|
|
|
|
extern struct regvar *rvlist;
|
|
extern int nregvar[];
|
|
extern struct regassigned *regassigned[];
|
|
|
|
struct regvar *linkreg(long, int, int, int);
|
|
void tryreg(struct regvar *, int);
|
|
void fixregvars(int);
|
|
int isregvar(long);
|
|
#ifdef REGLAP
|
|
int isregvar_size(long, int);
|
|
#endif
|
|
int isregtyp(long);
|
|
void unlinkregs(void);
|
|
|
|
#ifdef REGLAP
|
|
#define PICK_REGVAR(off, size) isregvar_size(off, size)
|
|
#else
|
|
#define PICK_REGVAR(off, size) isregvar(off)
|
|
#endif
|