]> git.rm.cloudns.org Git - xonotic/gmqcc.git/log
xonotic/gmqcc.git
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

11 years agooops
Dale Weiler [Thu, 22 Nov 2012 18:14:03 +0000 (18:14 +0000)]
oops

11 years agoMerge branch 'master' of github.com:graphitemaster/gmqcc
Dale Weiler [Thu, 22 Nov 2012 18:13:12 +0000 (18:13 +0000)]
Merge branch 'master' of github.com:graphitemaster/gmqcc

11 years agoRemove requirement for E
Dale Weiler [Thu, 22 Nov 2012 18:12:47 +0000 (18:12 +0000)]
Remove requirement for E

11 years agomake ast_function_label also work when -dumpfin is used instead of -dump
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

11 years ago-dump vs -dumpfin; to see the IR before and after finalizing functions
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

11 years agoEscape strings in ir-dump output
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 20:49:21 +0000 (21:49 +0100)]
Escape strings in ir-dump output

11 years agoBump version
Dale Weiler [Wed, 21 Nov 2012 20:33:52 +0000 (20:33 +0000)]
Bump version

11 years agoMake blub happy
Dale Weiler [Wed, 21 Nov 2012 20:31:41 +0000 (20:31 +0000)]
Make blub happy

11 years agoMake makefile runtest rule depend on all to be built
Dale Weiler [Wed, 21 Nov 2012 20:27:41 +0000 (20:27 +0000)]
Make makefile runtest rule depend on all to be built

11 years agoless verbosity from test suite, just the way blub wants it
Dale Weiler [Wed, 21 Nov 2012 20:26:18 +0000 (20:26 +0000)]
less verbosity from test suite, just the way blub wants it

11 years agoast_ternary needs to adopt the output type
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:57:00 +0000 (20:57 +0100)]
ast_ternary needs to adopt the output type

11 years agoerror if the ternary operands aren't of the same type - except for the first one...
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

11 years agoMore verbose error for invalid parameter types
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:53:00 +0000 (20:53 +0100)]
More verbose error for invalid parameter types

11 years agocheck 'ternaries' count
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:50:27 +0000 (20:50 +0100)]
check 'ternaries' count

11 years agoUtilizing vec_last more
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:44:43 +0000 (20:44 +0100)]
Utilizing vec_last more

11 years agoquestion mark must result in TOKEN_OPERATOR
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:42:48 +0000 (20:42 +0100)]
question mark must result in TOKEN_OPERATOR

11 years agooperator handling for ternary
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:41:26 +0000 (20:41 +0100)]
operator handling for ternary

11 years agoRemoving some obsolete messages
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:40:10 +0000 (20:40 +0100)]
Removing some obsolete messages

11 years agoparsing the ternary
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 19:36:42 +0000 (20:36 +0100)]
parsing the ternary

11 years agoInserting ternary in the qcc-operator-list at the place fteqcc would have it
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

11 years agoremoved phi_out from ast_ternary since we have a place in ast_expression_common for...
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

11 years agoFix wrong merge_id
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 18:55:12 +0000 (19:55 +0100)]
Fix wrong merge_id

11 years ago-fperl-logic, off by default, so casting to boolean now
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 18:40:11 +0000 (19:40 +0100)]
-fperl-logic, off by default, so casting to boolean now

11 years agocasting explicitly to boolean values in early out logic
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 18:36:28 +0000 (19:36 +0100)]
casting explicitly to boolean values in early out logic

11 years agoA note about how early-out in if-expressions can be translated more efficiently
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 18:22:28 +0000 (19:22 +0100)]
A note about how early-out in if-expressions can be translated more efficiently

11 years agoActually it's likely...
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 16:42:44 +0000 (17:42 +0100)]
Actually it's likely...

11 years agoLittle optimization to not produce an unreachable goto instruction
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 16:40:35 +0000 (17:40 +0100)]
Little optimization to not produce an unreachable goto instruction

11 years ago'likely' hint for IFs
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 16:35:11 +0000 (17:35 +0100)]
'likely' hint for IFs

11 years agoexperimental -fshort-logic, currently perl-like - might have to use NOT(NOT(x)) to...
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 15:08:08 +0000 (16:08 +0100)]
experimental -fshort-logic, currently perl-like - might have to use NOT(NOT(x)) to fix this

11 years agoFixing warnings
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 15:07:36 +0000 (16:07 +0100)]
Fixing warnings

11 years agoA hopefully working naive PHI solution
Wolfgang (Blub) Bumiller [Wed, 21 Nov 2012 15:05:54 +0000 (16:05 +0100)]
A hopefully working naive PHI solution

11 years agoImplemented multi-line comparitive tests, fixed output of stdout/stderr pair logs...
Dale Weiler [Tue, 20 Nov 2012 06:06:46 +0000 (06:06 +0000)]
Implemented multi-line comparitive tests, fixed output of stdout/stderr pair logs.  Some other cleanups, and stuff

11 years agoAdding break/continue testcases
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 23:21:03 +0000 (00:21 +0100)]
Adding break/continue testcases

11 years ago*sigh*
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 23:20:42 +0000 (00:20 +0100)]
*sigh*

11 years agoFixing switch testcase 7
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 23:16:49 +0000 (00:16 +0100)]
Fixing switch testcase 7

11 years agoswitch testcases
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 22:50:47 +0000 (23:50 +0100)]
switch testcases

11 years ago-frelaxed-switch to enable switch on non-constant cases
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 21:27:58 +0000 (22:27 +0100)]
-frelaxed-switch to enable switch on non-constant cases

11 years agoAdd the missing jump from after the actual last case
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 21:17:24 +0000 (22:17 +0100)]
Add the missing jump from after the actual last case

11 years agoEnter the outgoing block after a switch
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 21:08:38 +0000 (22:08 +0100)]
Enter the outgoing block after a switch

11 years agoParsing of switches
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 21:06:29 +0000 (22:06 +0100)]
Parsing of switches

11 years agofix bnot_id
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 21:06:23 +0000 (22:06 +0100)]
fix bnot_id

11 years ago'case' and 'default' are now keywords too, not just switch
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 20:40:38 +0000 (21:40 +0100)]
'case' and 'default' are now keywords too, not just switch

11 years agoast_switch
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 20:17:44 +0000 (21:17 +0100)]
ast_switch

11 years agofix a warning and remove unused variables
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 18:44:26 +0000 (19:44 +0100)]
fix a warning and remove unused variables

11 years agoError in the ast already about unreachable statements and don't upset the IR
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 18:42:25 +0000 (19:42 +0100)]
Error in the ast already about unreachable statements and don't upset the IR

11 years agobreak and continue support
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 18:39:52 +0000 (19:39 +0100)]
break and continue support

11 years agomoving 'return' parsing into a function
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 18:22:00 +0000 (19:22 +0100)]
moving 'return' parsing into a function

11 years agomoving keywords into an array
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 17:57:37 +0000 (18:57 +0100)]
moving keywords into an array

11 years agoFix con_vprintmsg madness
Wolfgang (Blub) Bumiller [Mon, 19 Nov 2012 18:19:30 +0000 (19:19 +0100)]
Fix con_vprintmsg madness