]>
git.rm.cloudns.org Git - xonotic/gmqcc.git/log
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 13:37:54 +0000 (14:37 +0100)]
revert 1 of the error messages
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 13:37:23 +0000 (14:37 +0100)]
Keep track of the beginning of a block
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 13:30:25 +0000 (14:30 +0100)]
mark vectors as used when their members are used
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 13:22:00 +0000 (14:22 +0100)]
fteqcc's \{number\} string control sequences
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 13:18:45 +0000 (14:18 +0100)]
fteqcc like \[ and \] in strings
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 13:18:15 +0000 (14:18 +0100)]
lexer: hex sequences with \x and fteqcc-specific handling if one-digit sequences and <, -, and > sequences
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 13:05:25 +0000 (14:05 +0100)]
Set the full const/var qualifier; only generate warnings about unimplemented functions if they have no qualifier at all
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 12:47:28 +0000 (13:47 +0100)]
don't just store a 'bool constant' in the ast/ir, store the complete qualifier: 'int cvq', moved CV_ defines into gmqcc.h
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 11:37:46 +0000 (12:37 +0100)]
Remove the 'warnreturn' parameter in some parser functions
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 11:35:33 +0000 (12:35 +0100)]
Actually generate the missing return instruction
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 11:28:51 +0000 (12:28 +0100)]
ast_loop with no condition and no incrementor are 'for(;;)' and need to loop endlessly instead of once...
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 11:23:27 +0000 (12:23 +0100)]
Still need to generate the jump...
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 11:21:10 +0000 (12:21 +0100)]
ast_ifthen will not create dead blocks anymore
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 11:11:36 +0000 (12:11 +0100)]
actually removing -Wmissing-return-values from parser.c and enabling the ast code for it
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 10:59:03 +0000 (11:59 +0100)]
Fix a wrong vec_remove in the tailcall pass
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 10:55:32 +0000 (11:55 +0100)]
don't use vec_size but _vec_end in _vec_remove, since using it on an empty vector is an error anyway; this causes a warning about vec_pop doing an effect-less memmove so vec_pop now doesn't use vec_remove anymore actually
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 10:47:35 +0000 (11:47 +0100)]
print the number of performed optimizations after compiling
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 10:15:57 +0000 (11:15 +0100)]
Also print the numeric -O flag which would enable an optimization when listing optimizations via -Ohelp
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 10:12:53 +0000 (11:12 +0100)]
Importing tail-recursion optimization
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 10:05:58 +0000 (11:05 +0100)]
-O now, additionally to taking a number, can work like -W and -f to take an actual optimization name
Wolfgang (Blub) Bumiller [Wed, 28 Nov 2012 18:18:11 +0000 (19:18 +0100)]
moving opts_warn and opts_werror to con.c
Wolfgang (Blub) Bumiller [Wed, 28 Nov 2012 18:16:35 +0000 (19:16 +0100)]
qcvm didn't compile since moving the compile messages to con.c due to undefined references - fixed now
Wolfgang (Blub) Bumiller [Mon, 26 Nov 2012 15:12:40 +0000 (16:12 +0100)]
generic compile_error/compile_warning functions in con.c, issuing end-of-non-void warning from within the ast now
Wolfgang (Blub) Bumiller [Mon, 26 Nov 2012 13:12:56 +0000 (14:12 +0100)]
Checking in test for nested ternaries; this is more a test of the ast than the parser
Wolfgang (Blub) Bumiller [Mon, 26 Nov 2012 13:05:31 +0000 (14:05 +0100)]
Fix a small typo
Dale Weiler [Mon, 26 Nov 2012 11:12:06 +0000 (11:12 +0000)]
Remove trailing whitespace for Blub.
Dale Weiler [Mon, 26 Nov 2012 02:12:50 +0000 (02:12 +0000)]
opval is asserted .. need (void) to hide warning when NDEBUG
Dale Weiler [Mon, 26 Nov 2012 00:21:16 +0000 (00:21 +0000)]
fast optimized murmur hash with crc seeding, literally zero collision, and roughly only 52 instructions
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 23:15:07 +0000 (00:15 +0100)]
operator &~= must not cause the generated binstore to free the destination twice
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 22:54:15 +0000 (23:54 +0100)]
Same as earlier: remember the outgoing block of a condition in a ternary since it could be different due to shortened logic
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 22:51:39 +0000 (23:51 +0100)]
ast_breakcont_codegen: error when a target is missing instead of segfaulting trying to access it anyway
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 22:50:42 +0000 (23:50 +0100)]
endlessloops don't have any other block which could be a continue-target-block, so use the body itself to not continue to NULL
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 22:48:29 +0000 (23:48 +0100)]
ir_function_create_block now takes a lex_ctx instead of copying from the function; ast_ternary: need to remember the _end_ block of the 2 expressions because that's where the jump is actually supposed to be
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 22:35:49 +0000 (23:35 +0100)]
don't set the request-Lvalue flag for an array index
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 22:35:31 +0000 (23:35 +0100)]
Don't add redeclared globals a second time
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 22:32:00 +0000 (23:32 +0100)]
more verbose errors in the ast when an ir-create fails
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 22:28:47 +0000 (23:28 +0100)]
Another case for -fassign-function-types
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 22:27:48 +0000 (23:27 +0100)]
introducing -fassign-function-types, previously guarded by std==qcc this is now the flag to cause a warning (-Wassign-function-types) instead of an error when assigning functions of wrong types
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 22:24:39 +0000 (23:24 +0100)]
fix a lexer error which parsed !! as one operator
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 21:57:11 +0000 (22:57 +0100)]
__builtin_debug_printtype directive... helped me down tracking a bug: parsing typedeffed types in parameter lists properly now
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 21:40:35 +0000 (22:40 +0100)]
Only check the ast-type of a switch case, not if it's an ACTUAL constant, fteqcc doesn't either... grrr
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 21:38:52 +0000 (22:38 +0100)]
actually handle unary plus...
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 21:35:41 +0000 (22:35 +0100)]
Allow float constants which start with a dot
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 21:26:28 +0000 (22:26 +0100)]
Ah right, 'var' is not an actual keyword, support TOKEN_IDENT-var inside functions
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 21:16:08 +0000 (22:16 +0100)]
Use the correct default cv-qualifier on locals
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 21:15:08 +0000 (22:15 +0100)]
Allow 'var' in functions... even there initialized locals seem to be constant by default... laaaaaaaame
Dale Weiler [Sun, 25 Nov 2012 21:12:04 +0000 (21:12 +0000)]
Fix the testsuite to properly error on failed loads
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 21:11:21 +0000 (22:11 +0100)]
handling TOKEN_CHARCONST - -Wmultibyte-character
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 21:04:27 +0000 (22:04 +0100)]
Actually use TOKEN_CHARCONST in the lexer...
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 20:59:57 +0000 (21:59 +0100)]
Don't error about creating an unreachable statement if the node we're about to generate is an ast_label
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 20:56:38 +0000 (21:56 +0100)]
Filling up remaining gotos at the end of a function for when the label is defined after the goto; erroring for missing labels
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 20:56:21 +0000 (21:56 +0100)]
making goto a keyword
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 20:53:14 +0000 (21:53 +0100)]
parsing goto
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 20:41:30 +0000 (21:41 +0100)]
Add the array tests, seem to have forgotten to add those...
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 20:40:26 +0000 (21:40 +0100)]
Support codegen of ast_label and ast_goto in any order
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 20:27:14 +0000 (21:27 +0100)]
ast_label, and labels later used for goto
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 20:10:43 +0000 (21:10 +0100)]
temporarily disable the 'constant' flag when parsing the initializer to avoid the 'assigning to constant' error in a block-local constant
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 20:08:30 +0000 (21:08 +0100)]
Allow 'const' within function bodies
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 20:07:03 +0000 (21:07 +0100)]
Fix linecounting mistake in try_digraph
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 19:48:06 +0000 (20:48 +0100)]
Set the output to NULL always before parsing stuff
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 19:29:12 +0000 (20:29 +0100)]
fix wrong parameter order in parse_variable calls, dammit I hate how 'bool' and 'int' are implicitly convertible here
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 19:25:39 +0000 (20:25 +0100)]
more on CV_CONST/CV_VAR, initializers to check 'constant' not just 'hasvalue'
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 19:22:47 +0000 (20:22 +0100)]
const/variable qualifier flag for parse_variable
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 19:18:40 +0000 (20:18 +0100)]
Allow dangling semicolons for now
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 18:44:21 +0000 (19:44 +0100)]
a '(void)' parameter list does not mean 1 parameter of type void, but empty... xonotic needs this
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 18:42:16 +0000 (19:42 +0100)]
fixed: -frelaxed-switch check was in the wrong position
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 18:37:31 +0000 (19:37 +0100)]
assignment to constant error
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 18:35:00 +0000 (19:35 +0100)]
constant flag, -finitialized-nonconstants to turn initialized globals into mutable variables
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 18:30:10 +0000 (19:30 +0100)]
ast: isconst->hasvalue, const keyword will set the const flag
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 18:20:00 +0000 (19:20 +0100)]
Parse the 'not' keyword in if as TOKEN_IDENT
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 18:19:36 +0000 (19:19 +0100)]
Some side-effect propagation for better warnings, so that comma-operators with assignments in them don't cause the -Weffectless-statement warning, and fixing ternary precedence for fte operator list
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 17:56:22 +0000 (18:56 +0100)]
Allow regular AND used on non-float types
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 17:38:04 +0000 (18:38 +0100)]
Allow strings to contain a backslash and a newline at the end
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 17:25:01 +0000 (18:25 +0100)]
Guard translatable strings by -ftranslatable-strings, defaults to ON with -std=fteqcc
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 17:23:48 +0000 (18:23 +0100)]
update noops flag while parsing a translatable string
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 17:22:00 +0000 (18:22 +0100)]
Translatable string constants
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 17:17:08 +0000 (18:17 +0100)]
parser_const_string can now create a translatable string
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 17:13:46 +0000 (18:13 +0100)]
linecounting fix for push/pop(line) pragmas
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 17:07:19 +0000 (18:07 +0100)]
Let's not have + and - as sole token, always allow ++ and -- to become operators independent of the noops flag
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 17:02:54 +0000 (18:02 +0100)]
linecounting...
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 16:50:31 +0000 (17:50 +0100)]
linecounting issue in the lexer
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 16:43:24 +0000 (17:43 +0100)]
Fix a bug in the lexer causing double-dots to double the character after the 2nd dot
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 16:43:13 +0000 (17:43 +0100)]
Fix parsing of multi-dot field types
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 16:37:54 +0000 (17:37 +0100)]
multiple dots to start a field type, ie ..float for a fieldpointer field
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 15:20:22 +0000 (16:20 +0100)]
moving cleanvar=false out of a condition
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 15:08:41 +0000 (16:08 +0100)]
linecounting issues in the ftepp
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:58:10 +0000 (15:58 +0100)]
a more verbose error
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:56:13 +0000 (15:56 +0100)]
-Wconst-var
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:39:49 +0000 (15:39 +0100)]
Fixing propogate->propAgate typo in test.c
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:36:20 +0000 (15:36 +0100)]
s/succeed/succeeded/
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:35:04 +0000 (15:35 +0100)]
Simplify some condition in the tester
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:33:03 +0000 (15:33 +0100)]
Typedef testcases
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:31:26 +0000 (15:31 +0100)]
free the _locals vector
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:30:31 +0000 (15:30 +0100)]
Fix a missing uninitialized value which caused typedefs within functions to cause a segfault
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:25:19 +0000 (15:25 +0100)]
Allow typedefs to shadow defs of previous scopes
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:21:52 +0000 (15:21 +0100)]
Implementing typedef
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:12:16 +0000 (15:12 +0100)]
fixing a leak in the hashtables, htdel didn't delete the hash_node_t entries
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 13:29:59 +0000 (14:29 +0100)]
typedef is now a keyword
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 13:29:06 +0000 (14:29 +0100)]
always define GMQCC, never define FTEQCC or QCC, but have __STD_FTEQCC__ and the likes for -std=qcc/gmqcc/fteqcc
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 13:05:10 +0000 (14:05 +0100)]
Revert "Fix type punning warnings"
it's a gcc version issue...
This reverts commit
3e6d173e31cf351b12262a14c053d82a214c0b36 .