]>
git.rm.cloudns.org Git - xonotic/gmqcc.git/log
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 12:55:29 +0000 (13:55 +0100)]
Fix some uninitialized values
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 12:37:54 +0000 (13:37 +0100)]
use the hashtables in the IR
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 12:33:00 +0000 (13:33 +0100)]
removing ir_function_get_local - it's unused
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 12:23:37 +0000 (13:23 +0100)]
Change the parser to use the hashtable functions
Dale Weiler [Sat, 24 Nov 2012 21:46:28 +0000 (21:46 +0000)]
Some hashtable changes
Dale Weiler [Sat, 24 Nov 2012 21:23:21 +0000 (21:23 +0000)]
You made substantial changes to this file, you get a name :P
Dale Weiler [Sat, 24 Nov 2012 21:22:35 +0000 (21:22 +0000)]
Add respective license headers + some cleanups
Dale Weiler [Sat, 24 Nov 2012 20:33:03 +0000 (20:33 +0000)]
Whitespace
Dale Weiler [Sat, 24 Nov 2012 00:37:36 +0000 (00:37 +0000)]
Set correct macro for PP based on the selected standard
Dale Weiler [Sat, 24 Nov 2012 00:29:30 +0000 (00:29 +0000)]
Implemented -W? and -f? as aliases to -Whelp and -fhelp
Dale Weiler [Sat, 24 Nov 2012 00:26:25 +0000 (00:26 +0000)]
Implemented -show-defaults
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 22:44:35 +0000 (23:44 +0100)]
-Wdouble-declaration on by default
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 21:30:35 +0000 (22:30 +0100)]
turn the message about global variable double-declaration into a warning instead of an error on std != gmqcc
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 21:22:22 +0000 (22:22 +0100)]
warn about double function declarations...
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 21:15:17 +0000 (22:15 +0100)]
A nice internal error
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 21:07:35 +0000 (22:07 +0100)]
'var' is now no keyword anymore, :\
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 20:52:16 +0000 (21:52 +0100)]
handling 'const' - still need correct separation of constant and just initialized later when we distinguish between them
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 20:47:00 +0000 (21:47 +0100)]
preserve newlines in preprocessed multiline comments
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 20:41:50 +0000 (21:41 +0100)]
Adding an unrecognized keywords error
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 20:35:14 +0000 (21:35 +0100)]
Fix a very nasty bug in the lexer's handling of comments
Dale Weiler [Fri, 23 Nov 2012 20:06:11 +0000 (20:06 +0000)]
Merge branch 'master' of github.com:graphitemaster/gmqcc
Dale Weiler [Fri, 23 Nov 2012 20:05:53 +0000 (20:05 +0000)]
Added comment about hashtable
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 20:04:57 +0000 (21:04 +0100)]
relation operation in #if just as wrong as in fteqcc
Dale Weiler [Fri, 23 Nov 2012 20:01:58 +0000 (20:01 +0000)]
No copy, just store pointer for hash table
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 18:34:24 +0000 (19:34 +0100)]
Enforce a trailing nul-byte after preprocessing
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 18:30:02 +0000 (19:30 +0100)]
Don't ftepp_warn after destroying the lexer...
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 18:29:45 +0000 (19:29 +0100)]
Look for include files in the currently #included file's directory first
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 18:13:09 +0000 (19:13 +0100)]
Let's #define GMQCC by default
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 14:03:10 +0000 (15:03 +0100)]
Don't delete the ftepp prematurely
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 13:59:56 +0000 (14:59 +0100)]
ftepp_out can return a nullptr
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 13:39:05 +0000 (14:39 +0100)]
operator &~=
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 13:28:11 +0000 (14:28 +0100)]
operators &= and |=
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 13:24:58 +0000 (14:24 +0100)]
*= and /= operators
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 11:32:07 +0000 (12:32 +0100)]
Fixing operator precedence of suffices
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 11:29:52 +0000 (12:29 +0100)]
operator tests
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 11:28:51 +0000 (12:28 +0100)]
correcting an error message
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 11:25:13 +0000 (12:25 +0100)]
Suffix operators, and remembering the const-float-1 in parser_t
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 10:57:08 +0000 (11:57 +0100)]
Parsing of suffix operators, NOTE: applied like prefix operators just to get it committed in a compilable state
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 10:52:03 +0000 (11:52 +0100)]
Prefix ++,--
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 10:45:22 +0000 (11:45 +0100)]
a type_name -> ast_type_to_string conversion
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 10:45:07 +0000 (11:45 +0100)]
-std=fteqcc gets its own operator list
Dale Weiler [Fri, 23 Nov 2012 06:48:54 +0000 (06:48 +0000)]
Visual studio __forceinline can be used for GMQCC_INLINE
Dale Weiler [Fri, 23 Nov 2012 06:41:06 +0000 (06:41 +0000)]
Use memcmp for comparing doubles
Dale Weiler [Fri, 23 Nov 2012 06:26:19 +0000 (06:26 +0000)]
ast_binstore_codegen initialize left ir value to null for output left side used for lvalue to prevent clang from warning. Also fixed uninitialized bug in hashtable implementation
Dale Weiler [Fri, 23 Nov 2012 06:23:20 +0000 (06:23 +0000)]
Sign conversion fixes in exec.c
Dale Weiler [Fri, 23 Nov 2012 06:17:21 +0000 (06:17 +0000)]
Cleanups
Dale Weiler [Fri, 23 Nov 2012 06:12:01 +0000 (06:12 +0000)]
Implemented hashtable as-per Blubs request
Dale Weiler [Fri, 23 Nov 2012 02:31:02 +0000 (02:31 +0000)]
Wall was already there, changed pedantic, into pedantic-errors
Dale Weiler [Fri, 23 Nov 2012 02:29:01 +0000 (02:29 +0000)]
change choice of diagnostics for ftepp to use lex_ctx instance. Cleaned up C++ style comments, and some other things ...
Dale Weiler [Fri, 23 Nov 2012 02:23:22 +0000 (02:23 +0000)]
Make it compile with -Wall and -pedantic
Dale Weiler [Thu, 22 Nov 2012 22:11:00 +0000 (22:11 +0000)]
Fix getline
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 22:11:29 +0000 (23:11 +0100)]
Fixing the makefile - stop adding pointless defaults
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 21:03:06 +0000 (22:03 +0100)]
Fixing up ast_binstore_codegen to handle array updates
Dale Weiler [Thu, 22 Nov 2012 21:38:14 +0000 (21:38 +0000)]
Fix memory leaks
Dale Weiler [Thu, 22 Nov 2012 20:46:38 +0000 (20:46 +0000)]
Remove some disabled warnings from the makefile
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 20:44:09 +0000 (21:44 +0100)]
unused params in parser.c
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 20:42:14 +0000 (21:42 +0100)]
unsed params in ftepp.c
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 20:41:22 +0000 (21:41 +0100)]
Fix unused params in ir.c
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 20:39:30 +0000 (21:39 +0100)]
Fix unused parameters in ast.c
Dale Weiler [Thu, 22 Nov 2012 20:32:08 +0000 (20:32 +0000)]
Fix more warnings
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 20:25:02 +0000 (21:25 +0100)]
conversion warnings and sanity check
Dale Weiler [Thu, 22 Nov 2012 20:16:34 +0000 (20:16 +0000)]
Fix some casting stuff
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 20:12:15 +0000 (21:12 +0100)]
Fixing a shadowing in ir.c
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 20:10:37 +0000 (21:10 +0100)]
Remove unused macro
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 20:10:34 +0000 (21:10 +0100)]
initialize some values
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 19:46:33 +0000 (20:46 +0100)]
Fixing shadows in parser.c - moving generate_checksum over the static parser global
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 19:46:13 +0000 (20:46 +0100)]
Fixing shadows in lexer.c
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 19:42:55 +0000 (20:42 +0100)]
Removing unused _tokennames from lexer.h
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 19:42:44 +0000 (20:42 +0100)]
Fixing main.c shadows
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 19:42:32 +0000 (20:42 +0100)]
Fixing clang-warnings about vectors
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 19:03:53 +0000 (20:03 +0100)]
Adding short-logic testcase
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 19:04:18 +0000 (20:04 +0100)]
Fixing short-logic for 'if': it wanted to add the jump to the wrong block
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 18:36:45 +0000 (19:36 +0100)]
Test for extended parameters
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 18:28:45 +0000 (19:28 +0100)]
Collapsing the switch tests into 1
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 18:28:38 +0000 (19:28 +0100)]
drop the E line from break.tmpl
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 18:25:45 +0000 (19:25 +0100)]
Collapse the break tests into 1
Dale Weiler [Thu, 22 Nov 2012 18:14:03 +0000 (18:14 +0000)]
oops
Dale Weiler [Thu, 22 Nov 2012 18:13:12 +0000 (18:13 +0000)]
Merge branch 'master' of github.com:graphitemaster/gmqcc
Dale Weiler [Thu, 22 Nov 2012 18:12:47 +0000 (18:12 +0000)]
Remove requirement for E
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 20:59:25 +0000 (21:59 +0100)]
make ast_function_label also work when -dumpfin is used instead of -dump
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 20:53:38 +0000 (21:53 +0100)]
-dump vs -dumpfin; to see the IR before and after finalizing functions
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 20:49:21 +0000 (21:49 +0100)]
Escape strings in ir-dump output
Dale Weiler [Wed, 21 Nov 2012 20:33:52 +0000 (20:33 +0000)]
Bump version
Dale Weiler [Wed, 21 Nov 2012 20:31:41 +0000 (20:31 +0000)]
Make blub happy
Dale Weiler [Wed, 21 Nov 2012 20:27:41 +0000 (20:27 +0000)]
Make makefile runtest rule depend on all to be built
Dale Weiler [Wed, 21 Nov 2012 20:26:18 +0000 (20:26 +0000)]
less verbosity from test suite, just the way blub wants it
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:57:00 +0000 (20:57 +0100)]
ast_ternary needs to adopt the output type
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:56:51 +0000 (20:56 +0100)]
error if the ternary operands aren't of the same type - except for the first one of course
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:53:00 +0000 (20:53 +0100)]
More verbose error for invalid parameter types
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:50:27 +0000 (20:50 +0100)]
check 'ternaries' count
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:44:43 +0000 (20:44 +0100)]
Utilizing vec_last more
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:42:48 +0000 (20:42 +0100)]
question mark must result in TOKEN_OPERATOR
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:41:26 +0000 (20:41 +0100)]
operator handling for ternary
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:40:10 +0000 (20:40 +0100)]
Removing some obsolete messages
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:36:42 +0000 (20:36 +0100)]
parsing the ternary
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:16:28 +0000 (20:16 +0100)]
Inserting ternary in the qcc-operator-list at the place fteqcc would have it
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:13:31 +0000 (20:13 +0100)]
removed phi_out from ast_ternary since we have a place in ast_expression_common for this kind of value
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 18:55:12 +0000 (19:55 +0100)]
Fix wrong merge_id
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 18:40:11 +0000 (19:40 +0100)]
-fperl-logic, off by default, so casting to boolean now
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 18:36:28 +0000 (19:36 +0100)]
casting explicitly to boolean values in early out logic