]> git.rm.cloudns.org Git - xonotic/gmqcc.git/log
xonotic/gmqcc.git
11 years agolinecounting fix for push/pop(line) pragmas
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 17:13:46 +0000 (18:13 +0100)]
linecounting fix for push/pop(line) pragmas

11 years agoLet's not have + and - as sole token, always allow ++ and -- to become operators...
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

11 years agolinecounting...
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 17:02:54 +0000 (18:02 +0100)]
linecounting...

11 years agolinecounting issue in the lexer
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 16:50:31 +0000 (17:50 +0100)]
linecounting issue in the lexer

11 years agoFix 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:24 +0000 (17:43 +0100)]
Fix a bug in the lexer causing double-dots to double the character after the 2nd dot

11 years agoFix parsing of multi-dot field types
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 16:43:13 +0000 (17:43 +0100)]
Fix parsing of multi-dot field types

11 years agomultiple dots to start a field type, ie ..float for a fieldpointer field
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

11 years agomoving cleanvar=false out of a condition
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 15:20:22 +0000 (16:20 +0100)]
moving cleanvar=false out of a condition

11 years agolinecounting issues in the ftepp
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 15:08:41 +0000 (16:08 +0100)]
linecounting issues in the ftepp

11 years agoa more verbose error
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:58:10 +0000 (15:58 +0100)]
a more verbose error

11 years ago-Wconst-var
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:56:13 +0000 (15:56 +0100)]
-Wconst-var

11 years agoFixing propogate->propAgate typo in test.c
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:39:49 +0000 (15:39 +0100)]
Fixing propogate->propAgate typo in test.c

11 years agos/succeed/succeeded/
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:36:20 +0000 (15:36 +0100)]
s/succeed/succeeded/

11 years agoSimplify some condition in the tester
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:35:04 +0000 (15:35 +0100)]
Simplify some condition in the tester

11 years agoTypedef testcases
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:33:03 +0000 (15:33 +0100)]
Typedef testcases

11 years agofree the _locals vector
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:31:26 +0000 (15:31 +0100)]
free the _locals vector

11 years agoFix a missing uninitialized value which caused typedefs within functions to cause...
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

11 years agoAllow typedefs to shadow defs of previous scopes
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:25:19 +0000 (15:25 +0100)]
Allow typedefs to shadow defs of previous scopes

11 years agoImplementing typedef
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 14:21:52 +0000 (15:21 +0100)]
Implementing typedef

11 years agofixing a leak in the hashtables, htdel didn't delete the hash_node_t entries
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

11 years agotypedef is now a keyword
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 13:29:59 +0000 (14:29 +0100)]
typedef is now a keyword

11 years agoalways define GMQCC, never define FTEQCC or QCC, but have __STD_FTEQCC__ and the...
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

11 years agoRevert "Fix type punning warnings"
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.

11 years agoFix type punning warnings
Dale Weiler [Sun, 25 Nov 2012 12:57:28 +0000 (12:57 +0000)]
Fix type punning warnings

11 years agoFix some uninitialized values
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 12:55:29 +0000 (13:55 +0100)]
Fix some uninitialized values

11 years agouse the hashtables in the IR
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 12:37:54 +0000 (13:37 +0100)]
use the hashtables in the IR

11 years agoremoving ir_function_get_local - it's unused
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 12:33:00 +0000 (13:33 +0100)]
removing ir_function_get_local - it's unused

11 years agoChange the parser to use the hashtable functions
Wolfgang (Blub) Bumiller [Sun, 25 Nov 2012 12:23:37 +0000 (13:23 +0100)]
Change the parser to use the hashtable functions

11 years agoSome hashtable changes
Dale Weiler [Sat, 24 Nov 2012 21:46:28 +0000 (21:46 +0000)]
Some hashtable changes

11 years agoYou made substantial changes to this file, you get a name :P
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

11 years agoAdd respective license headers + some cleanups
Dale Weiler [Sat, 24 Nov 2012 21:22:35 +0000 (21:22 +0000)]
Add respective license headers + some cleanups

11 years agoWhitespace
Dale Weiler [Sat, 24 Nov 2012 20:33:03 +0000 (20:33 +0000)]
Whitespace

11 years agoSet correct macro for PP based on the selected standard
Dale Weiler [Sat, 24 Nov 2012 00:37:36 +0000 (00:37 +0000)]
Set correct macro for PP based on the selected standard

11 years agoImplemented -W? and -f? as aliases to -Whelp and -fhelp
Dale Weiler [Sat, 24 Nov 2012 00:29:30 +0000 (00:29 +0000)]
Implemented -W? and -f? as aliases to -Whelp and -fhelp

11 years agoImplemented -show-defaults
Dale Weiler [Sat, 24 Nov 2012 00:26:25 +0000 (00:26 +0000)]
Implemented -show-defaults

11 years ago-Wdouble-declaration on by default
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 22:44:35 +0000 (23:44 +0100)]
-Wdouble-declaration on by default

11 years agoturn the message about global variable double-declaration into a warning instead...
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

11 years agowarn about double function declarations...
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 21:22:22 +0000 (22:22 +0100)]
warn about double function declarations...

11 years agoA nice internal error
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 21:15:17 +0000 (22:15 +0100)]
A nice internal error

11 years ago'var' is now no keyword anymore, :\
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 21:07:35 +0000 (22:07 +0100)]
'var' is now no keyword anymore, :\

11 years agohandling 'const' - still need correct separation of constant and just initialized...
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

11 years agopreserve newlines in preprocessed multiline comments
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 20:47:00 +0000 (21:47 +0100)]
preserve newlines in preprocessed multiline comments

11 years agoAdding an unrecognized keywords error
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 20:41:50 +0000 (21:41 +0100)]
Adding an unrecognized keywords error

11 years agoFix a very nasty bug in the lexer's handling of comments
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

11 years agoMerge branch 'master' of github.com:graphitemaster/gmqcc
Dale Weiler [Fri, 23 Nov 2012 20:06:11 +0000 (20:06 +0000)]
Merge branch 'master' of github.com:graphitemaster/gmqcc

11 years agoAdded comment about hashtable
Dale Weiler [Fri, 23 Nov 2012 20:05:53 +0000 (20:05 +0000)]
Added comment about hashtable

11 years agorelation operation in #if just as wrong as in fteqcc
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 20:04:57 +0000 (21:04 +0100)]
relation operation in #if just as wrong as in fteqcc

11 years agoNo copy, just store pointer for hash table
Dale Weiler [Fri, 23 Nov 2012 20:01:58 +0000 (20:01 +0000)]
No copy, just store pointer for hash table

11 years agoEnforce a trailing nul-byte after preprocessing
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 18:34:24 +0000 (19:34 +0100)]
Enforce a trailing nul-byte after preprocessing

11 years agoDon't ftepp_warn after destroying the lexer...
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 18:30:02 +0000 (19:30 +0100)]
Don't ftepp_warn after destroying the lexer...

11 years agoLook for include files in the currently #included file's directory first
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

11 years agoLet's #define GMQCC by default
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 18:13:09 +0000 (19:13 +0100)]
Let's #define GMQCC by default

11 years agoDon't delete the ftepp prematurely
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 14:03:10 +0000 (15:03 +0100)]
Don't delete the ftepp prematurely

11 years agoftepp_out can return a nullptr
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 13:59:56 +0000 (14:59 +0100)]
ftepp_out can return a nullptr

11 years agooperator &~=
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 13:39:05 +0000 (14:39 +0100)]
operator &~=

11 years agooperators &= and |=
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 13:28:11 +0000 (14:28 +0100)]
operators &= and |=

11 years ago*= and /= operators
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 13:24:58 +0000 (14:24 +0100)]
*= and /= operators

11 years agoFixing operator precedence of suffices
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 11:32:07 +0000 (12:32 +0100)]
Fixing operator precedence of suffices

11 years agooperator tests
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 11:29:52 +0000 (12:29 +0100)]
operator tests

11 years agocorrecting an error message
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 11:28:51 +0000 (12:28 +0100)]
correcting an error message

11 years agoSuffix operators, and remembering the const-float-1 in parser_t
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

11 years agoParsing of suffix operators, NOTE: applied like prefix operators just to get it commi...
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

11 years agoPrefix ++,--
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 10:52:03 +0000 (11:52 +0100)]
Prefix ++,--

11 years agoa type_name -> ast_type_to_string conversion
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 10:45:22 +0000 (11:45 +0100)]
a type_name -> ast_type_to_string conversion

11 years ago-std=fteqcc gets its own operator list
Wolfgang (Blub) Bumiller [Fri, 23 Nov 2012 10:45:07 +0000 (11:45 +0100)]
-std=fteqcc gets its own operator list

11 years agoVisual studio __forceinline can be used for GMQCC_INLINE
Dale Weiler [Fri, 23 Nov 2012 06:48:54 +0000 (06:48 +0000)]
Visual studio __forceinline can be used for GMQCC_INLINE

11 years agoUse memcmp for comparing doubles
Dale Weiler [Fri, 23 Nov 2012 06:41:06 +0000 (06:41 +0000)]
Use memcmp for comparing doubles

11 years agoast_binstore_codegen initialize left ir value to null for output left side used for...
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

11 years agoSign conversion fixes in exec.c
Dale Weiler [Fri, 23 Nov 2012 06:23:20 +0000 (06:23 +0000)]
Sign conversion fixes in exec.c

11 years agoCleanups
Dale Weiler [Fri, 23 Nov 2012 06:17:21 +0000 (06:17 +0000)]
Cleanups

11 years agoImplemented hashtable as-per Blubs request
Dale Weiler [Fri, 23 Nov 2012 06:12:01 +0000 (06:12 +0000)]
Implemented hashtable as-per Blubs request

11 years agoWall was already there, changed pedantic, into pedantic-errors
Dale Weiler [Fri, 23 Nov 2012 02:31:02 +0000 (02:31 +0000)]
Wall was already there, changed pedantic, into pedantic-errors

11 years agochange choice of diagnostics for ftepp to use lex_ctx instance. Cleaned up C++ style...
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 ...

11 years agoMake it compile with -Wall and -pedantic
Dale Weiler [Fri, 23 Nov 2012 02:23:22 +0000 (02:23 +0000)]
Make it compile with -Wall and -pedantic

11 years agoFix getline
Dale Weiler [Thu, 22 Nov 2012 22:11:00 +0000 (22:11 +0000)]
Fix getline

11 years agoFixing the makefile - stop adding pointless defaults
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 22:11:29 +0000 (23:11 +0100)]
Fixing the makefile - stop adding pointless defaults

11 years agoFixing up ast_binstore_codegen to handle array updates
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 21:03:06 +0000 (22:03 +0100)]
Fixing up ast_binstore_codegen to handle array updates

11 years agoFix memory leaks
Dale Weiler [Thu, 22 Nov 2012 21:38:14 +0000 (21:38 +0000)]
Fix memory leaks

11 years agoRemove some disabled warnings from the makefile
Dale Weiler [Thu, 22 Nov 2012 20:46:38 +0000 (20:46 +0000)]
Remove some disabled warnings from the makefile

11 years agounused params in parser.c
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 20:44:09 +0000 (21:44 +0100)]
unused params in parser.c

11 years agounsed params in ftepp.c
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 20:42:14 +0000 (21:42 +0100)]
unsed params in ftepp.c

11 years agoFix unused params in ir.c
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 20:41:22 +0000 (21:41 +0100)]
Fix unused params in ir.c

11 years agoFix unused parameters in ast.c
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 20:39:30 +0000 (21:39 +0100)]
Fix unused parameters in ast.c

11 years agoFix more warnings
Dale Weiler [Thu, 22 Nov 2012 20:32:08 +0000 (20:32 +0000)]
Fix more warnings

11 years agoconversion warnings and sanity check
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 20:25:02 +0000 (21:25 +0100)]
conversion warnings and sanity check

11 years agoFix some casting stuff
Dale Weiler [Thu, 22 Nov 2012 20:16:34 +0000 (20:16 +0000)]
Fix some casting stuff

11 years agoFixing a shadowing in ir.c
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 20:12:15 +0000 (21:12 +0100)]
Fixing a shadowing in ir.c

11 years agoRemove unused macro
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 20:10:37 +0000 (21:10 +0100)]
Remove unused macro

11 years agoinitialize some values
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 20:10:34 +0000 (21:10 +0100)]
initialize some values

11 years agoFixing shadows in parser.c - moving generate_checksum over the static parser global
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

11 years agoFixing shadows in lexer.c
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 19:46:13 +0000 (20:46 +0100)]
Fixing shadows in lexer.c

11 years agoRemoving unused _tokennames from lexer.h
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 19:42:55 +0000 (20:42 +0100)]
Removing unused _tokennames from lexer.h

11 years agoFixing main.c shadows
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 19:42:44 +0000 (20:42 +0100)]
Fixing main.c shadows

11 years agoFixing clang-warnings about vectors
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 19:42:32 +0000 (20:42 +0100)]
Fixing clang-warnings about vectors

11 years agoAdding short-logic testcase
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 19:03:53 +0000 (20:03 +0100)]
Adding short-logic testcase

11 years agoFixing short-logic for 'if': it wanted to add the jump to the wrong block
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

11 years agoTest for extended parameters
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 18:36:45 +0000 (19:36 +0100)]
Test for extended parameters

11 years agoCollapsing the switch tests into 1
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 18:28:45 +0000 (19:28 +0100)]
Collapsing the switch tests into 1

11 years agodrop the E line from break.tmpl
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 18:28:38 +0000 (19:28 +0100)]
drop the E line from break.tmpl

11 years agoCollapse the break tests into 1
Wolfgang (Blub) Bumiller [Thu, 22 Nov 2012 18:25:45 +0000 (19:25 +0100)]
Collapse the break tests into 1