mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
3e38c4aa48
qfcc now does local common subexpression elimination. It seems to work, but is optional (default off): use -O to enable. Also, uninitialized variable detection is finally back :) The progs engine now has very basic valgrind-like functionality for checking pointer accesses. Enable with pr_boundscheck 2
33 lines
933 B
C
33 lines
933 B
C
#ifdef HAVE_CONFIG_H
|
|
# include "config.h"
|
|
#endif
|
|
|
|
#include "class.h"
|
|
#include "codespace.h"
|
|
#include "diagnostic.h"
|
|
#include "debug.h"
|
|
#include "def.h"
|
|
#include "defspace.h"
|
|
#include "emit.h"
|
|
#include "expr.h"
|
|
#include "function.h"
|
|
#include "obj_file.h"
|
|
#include "options.h"
|
|
#include "qfcc.h"
|
|
#include "strpool.h"
|
|
#include "type.h"
|
|
#include "value.h"
|
|
|
|
struct dstring_s;
|
|
options_t options;
|
|
int num_linenos;
|
|
pr_lineno_t *linenos;
|
|
pr_info_t pr;
|
|
string_t ReuseString (const char *str) {return 0;}
|
|
void encode_type (struct dstring_s *str, const type_t *type) {}
|
|
codespace_t *codespace_new (void) {return 0;}
|
|
void codespace_addcode (codespace_t *codespace, struct dstatement_s *code, int size) {}
|
|
int function_parms (function_t *f, byte *parm_size) {return 0;}
|
|
void def_to_ddef (def_t *def, ddef_t *ddef, int aux) {}
|
|
expr_t *warning (expr_t *e, const char *fmt, ...) {return 0;}
|
|
expr_t *error (expr_t *e, const char *fmt, ...) {return 0;}
|