mirror of
https://git.wuffs.org/MWCC
synced 2025-12-18 17:35:38 +00:00
add a bunch of code and a ton of stub files for later
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#include "compiler.h"
|
||||
#include "compiler/objects.h"
|
||||
#include "compiler/Registers.h"
|
||||
#include "compiler/RegisterInfo.h"
|
||||
#include "compiler/CParser.h"
|
||||
#include "compiler/PCode.h"
|
||||
#include "compiler/CompilerTools.h"
|
||||
#include "compiler/objects.h"
|
||||
|
||||
// haven't checked this object file for .data stuff yet
|
||||
|
||||
@@ -30,7 +33,7 @@ typedef struct ModifiedRegisters {
|
||||
} ModifiedRegisters;
|
||||
static ModifiedRegisters *mod_regs_table[128];
|
||||
|
||||
void init_registers() {
|
||||
void init_registers(void) {
|
||||
char rclass;
|
||||
int j;
|
||||
|
||||
@@ -117,7 +120,7 @@ short obtain_nonvolatile_register(char rclass) {
|
||||
return best;
|
||||
}
|
||||
|
||||
void open_temp_registers() {
|
||||
void open_temp_registers(void) {
|
||||
int rclass;
|
||||
|
||||
for (rclass = 0; (char)rclass < RegClassMax; rclass++) {
|
||||
@@ -135,7 +138,7 @@ void open_temp_registers() {
|
||||
}*/
|
||||
}
|
||||
|
||||
void check_temp_registers() {
|
||||
void check_temp_registers(void) {
|
||||
char rclass;
|
||||
|
||||
if (!optimizing) {
|
||||
@@ -148,7 +151,7 @@ void check_temp_registers() {
|
||||
}
|
||||
}
|
||||
|
||||
void close_temp_registers() {
|
||||
void close_temp_registers(void) {
|
||||
char rclass;
|
||||
|
||||
for (rclass = 0; rclass < RegClassMax; rclass++) {
|
||||
@@ -159,7 +162,7 @@ void close_temp_registers() {
|
||||
}
|
||||
}
|
||||
|
||||
int count_scratch_registers() {
|
||||
int count_scratch_registers(void) {
|
||||
int rclass;
|
||||
int count;
|
||||
|
||||
@@ -169,7 +172,7 @@ int count_scratch_registers() {
|
||||
return count;
|
||||
}
|
||||
|
||||
void init_modified_registers() {
|
||||
void init_modified_registers(void) {
|
||||
int i = 0;
|
||||
|
||||
for (i = 0; i < 128; i++)
|
||||
|
||||
Reference in New Issue
Block a user