]> git.xonotic.org Git - xonotic/gmqcc.git/log
xonotic/gmqcc.git
11 years agoApplying the actual 'Fix FTFBS stuff' part
Wolfgang (Blub) Bumiller [Wed, 19 Dec 2012 21:17:22 +0000 (22:17 +0100)]
Applying the actual 'Fix FTFBS stuff' part

11 years agoRevert "Fix FTFBS stuff"
Wolfgang (Blub) Bumiller [Wed, 19 Dec 2012 21:15:38 +0000 (22:15 +0100)]
Revert "Fix FTFBS stuff"

This reverts commit 2cc51b8eb060e6efab5b56cf471594911a79c5c1.

11 years agoFix FTFBS stuff
Dale Weiler [Wed, 19 Dec 2012 21:05:24 +0000 (21:05 +0000)]
Fix FTFBS stuff

11 years ago'noreturn' is - for now - a keyword, and used just like noref/var/const, to mark...
Wolfgang (Blub) Bumiller [Wed, 19 Dec 2012 19:54:54 +0000 (20:54 +0100)]
'noreturn' is - for now - a keyword, and used just like noref/var/const, to mark a function as not-returning

11 years agoast_call now passes AST_FLAG_NORETURN on to the IR
Wolfgang (Blub) Bumiller [Wed, 19 Dec 2012 19:47:01 +0000 (20:47 +0100)]
ast_call now passes AST_FLAG_NORETURN on to the IR

11 years agoremoving ast_expression_common.variadic, adding ast_expression_common.flags, added...
Wolfgang (Blub) Bumiller [Wed, 19 Dec 2012 19:45:48 +0000 (20:45 +0100)]
removing ast_expression_common.variadic, adding ast_expression_common.flags, added AST_FLAG_VARIADIC and AST_FLAG_NORETURN

11 years agoNRCALL now sets block->final and block->is_return
Wolfgang (Blub) Bumiller [Wed, 19 Dec 2012 19:40:45 +0000 (20:40 +0100)]
NRCALL now sets block->final and block->is_return

11 years agoir_block_create_{phi,call} now check self->final
Wolfgang (Blub) Bumiller [Wed, 19 Dec 2012 19:39:44 +0000 (20:39 +0100)]
ir_block_create_{phi,call} now check self->final

11 years agoVINSTR_NRCALL, translated like any other call for now; to be used to mark a call...
Wolfgang (Blub) Bumiller [Wed, 19 Dec 2012 19:38:32 +0000 (20:38 +0100)]
VINSTR_NRCALL, translated like any other call for now; to be used to mark a call which never returns, ie the error builtin

11 years agoMerge pull request #48 from mhofstra/patch-1
Wolfgang Bumiller [Tue, 18 Dec 2012 21:01:43 +0000 (13:01 -0800)]
Merge pull request #48 from mhofstra/patch-1

Small typo fix to make it compile on x86

11 years agoSmall typo fix to make it compile on x86
mhofstra [Tue, 18 Dec 2012 20:57:16 +0000 (21:57 +0100)]
Small typo fix to make it compile on x86

11 years agoFixes for some minor bugs clang-analyzer and cppcheck found
Rudolf Polzer [Tue, 18 Dec 2012 15:45:18 +0000 (16:45 +0100)]
Fixes for some minor bugs clang-analyzer and cppcheck found

Signed-off-by: Dale Weiler <killfieldengine@gmail.com>
11 years agodefault make target now is 'all'
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 15:58:21 +0000 (16:58 +0100)]
default make target now is 'all'

11 years agoTests for perl-logic _types_
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 15:57:38 +0000 (16:57 +0100)]
Tests for perl-logic _types_

11 years ago-fperl-logic now doesn't allow logic ops with operands of different types, but theref...
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 15:56:22 +0000 (16:56 +0100)]
-fperl-logic now doesn't allow logic ops with operands of different types, but therefore uses the correct output type

11 years agoAdded intrinsic: __builtin_debug_typestring(expr) to get the type of an expression...
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 15:52:30 +0000 (16:52 +0100)]
Added intrinsic: __builtin_debug_typestring(expr) to get the type of an expression as string

11 years agoRemove a TODO message
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 15:36:06 +0000 (16:36 +0100)]
Remove a TODO message

11 years agomake install-doc now also installs qcvm.q
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 15:03:48 +0000 (16:03 +0100)]
make install-doc now also installs qcvm.q

11 years agoAdding qcvm.1
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 15:03:29 +0000 (16:03 +0100)]
Adding qcvm.1

11 years agoImproved parameter handling of qcvm a little, added --version and --help
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 14:46:26 +0000 (15:46 +0100)]
Improved parameter handling of qcvm a little, added --version and --help

11 years agofix wrong --version string
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 14:44:26 +0000 (15:44 +0100)]
fix wrong --version string

11 years agoBetter usage message for qcvm, don't exit after any of the information prints - but...
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 14:39:20 +0000 (15:39 +0100)]
Better usage message for qcvm, don't exit after any of the information prints - but don't execute if any of them are used

11 years agoBUGS, SEE ALSO and AUTHOR sections in the manpage
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 14:30:59 +0000 (15:30 +0100)]
BUGS, SEE ALSO and AUTHOR sections in the manpage

11 years agoIt's -config=file, not -config file
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 14:27:12 +0000 (15:27 +0100)]
It's -config=file, not -config file

11 years agoAdded -config to usage and manpage, added a CONFIG section in the manpage describing...
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 14:26:41 +0000 (15:26 +0100)]
Added -config to usage and manpage, added a CONFIG section in the manpage describing the ini file format, and added a short example to it

11 years agoAdd included -fs and -Ws to for each -std in the manpage
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 13:21:01 +0000 (14:21 +0100)]
Add included -fs and -Ws to for each -std in the manpage

11 years agoMore jump removal
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 12:40:59 +0000 (13:40 +0100)]
More jump removal

11 years ago*sigh*
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 12:13:54 +0000 (13:13 +0100)]
*sigh*

11 years agovector components are floats, not vectors
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 11:58:15 +0000 (12:58 +0100)]
vector components are floats, not vectors

11 years agoDon't generate IF/IFNOT with +1 offsets
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 11:57:09 +0000 (12:57 +0100)]
Don't generate IF/IFNOT with +1 offsets

11 years ago-fsingle-vector-defs to disable _x,_y,_z generation
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 11:47:48 +0000 (12:47 +0100)]
-fsingle-vector-defs to disable _x,_y,_z generation

11 years agoGenerate _x,_y,_z defs/fields
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 11:41:38 +0000 (12:41 +0100)]
Generate _x,_y,_z defs/fields

11 years agoqcvm -pringdefs now prints [SAVE] next to globals with DEF_SAVEFLAG set
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 11:41:29 +0000 (12:41 +0100)]
qcvm -pringdefs now prints [SAVE] next to globals with DEF_SAVEFLAG set

11 years agoDEF_SAVEGLOBAL flag is now applied on initialized non-constant globals, and is not...
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 11:02:33 +0000 (12:02 +0100)]
DEF_SAVEGLOBAL flag is now applied on initialized non-constant globals, and is not applied on 'consts'

11 years agoDon't generate 'jump +1' instructions
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 10:57:30 +0000 (11:57 +0100)]
Don't generate 'jump +1' instructions

11 years agoRenaming gmqcc.init since it's used by default if it exists and it makes the testsuit...
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 10:48:03 +0000 (11:48 +0100)]
Renaming gmqcc.init since it's used by default if it exists and it makes the testsuite fail

11 years agoDon't generate AINSTR_END anymore, use INSTR_DONE
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 10:46:26 +0000 (11:46 +0100)]
Don't generate AINSTR_END anymore, use INSTR_DONE

11 years agocmd_options -> opts_cmd_t to make testsuite and executor compile again
Wolfgang (Blub) Bumiller [Tue, 18 Dec 2012 10:46:15 +0000 (11:46 +0100)]
cmd_options -> opts_cmd_t to make testsuite and executor compile again

11 years agoAllow setting configuration file via commandline
Dale Weiler [Tue, 18 Dec 2012 05:22:23 +0000 (05:22 +0000)]
Allow setting configuration file via commandline

11 years agoAdd a template ini file for documentation
Dale Weiler [Tue, 18 Dec 2012 05:12:57 +0000 (05:12 +0000)]
Add a template ini file for documentation

11 years agoCleanups of compiler option configuration. Added ini/cfg parser system as well.
Dale Weiler [Tue, 18 Dec 2012 04:57:17 +0000 (04:57 +0000)]
Cleanups of compiler option configuration. Added ini/cfg parser system as well.

11 years agomessages caused by -Warnings now show the -W flag
Wolfgang (Blub) Bumiller [Mon, 17 Dec 2012 17:36:27 +0000 (18:36 +0100)]
messages caused by -Warnings now show the -W flag

11 years agoparsewarning and genwarning to use vcompile_warning
Wolfgang (Blub) Bumiller [Mon, 17 Dec 2012 17:26:26 +0000 (18:26 +0100)]
parsewarning and genwarning to use vcompile_warning

11 years agoirwarning to use vcompile_warning
Wolfgang (Blub) Bumiller [Mon, 17 Dec 2012 17:25:06 +0000 (18:25 +0100)]
irwarning to use vcompile_warning

11 years agoftepp_warn to use vcompile_warning
Wolfgang (Blub) Bumiller [Mon, 17 Dec 2012 17:24:16 +0000 (18:24 +0100)]
ftepp_warn to use vcompile_warning

11 years agovcompile_error, vcompile_warning; fixed: removed opts_ globals from con.c; made the...
Wolfgang (Blub) Bumiller [Mon, 17 Dec 2012 17:22:33 +0000 (18:22 +0100)]
vcompile_error, vcompile_warning; fixed: removed opts_ globals from con.c; made the lexer use vcompile_warning

11 years agoAdding -Wunknown-pragmas to the manpage
Wolfgang (Blub) Bumiller [Mon, 17 Dec 2012 16:18:19 +0000 (17:18 +0100)]
Adding -Wunknown-pragmas to the manpage

11 years agoAdded -Wunknown-pragmas
Dale Weiler [Mon, 17 Dec 2012 16:14:04 +0000 (16:14 +0000)]
Added -Wunknown-pragmas

11 years agoFixed a bug in the generation of default switch cases: they can now fall through...
Wolfgang (Blub) Bumiller [Mon, 17 Dec 2012 16:01:07 +0000 (17:01 +0100)]
Fixed a bug in the generation of default switch cases: they can now fall through correctly

11 years agoFinally fix the bug in -D
Dale Weiler [Mon, 17 Dec 2012 15:46:07 +0000 (15:46 +0000)]
Finally fix the bug in -D

11 years agoRevert "Not defining GMQCC_VERSION_ in gmqcc.h but checking if they're defiend and...
Wolfgang (Blub) Bumiller [Mon, 17 Dec 2012 15:45:37 +0000 (16:45 +0100)]
Revert "Not defining GMQCC_VERSION_ in gmqcc.h but checking if they're defiend and #error if not - they're set in the Makefile - please fix windows builds"

This reverts commit a473979cf5a807f4cb6cc14bc9d4acc06c28c538.

-- because visual studio sucks

11 years agoFixes, but still crashes because ... I have no clue, there is no reason for this...
Dale Weiler [Mon, 17 Dec 2012 15:38:32 +0000 (15:38 +0000)]
Fixes, but still crashes because ... I have no clue, there is no reason for this to crash.

11 years agoNot defining GMQCC_VERSION_ in gmqcc.h but checking if they're defiend and #error...
Wolfgang (Blub) Bumiller [Mon, 17 Dec 2012 15:30:07 +0000 (16:30 +0100)]
Not defining GMQCC_VERSION_ in gmqcc.h but checking if they're defiend and #error if not - they're set in the Makefile - please fix windows builds

11 years ago--version
Wolfgang (Blub) Bumiller [Mon, 17 Dec 2012 15:14:39 +0000 (16:14 +0100)]
--version

11 years agoJust make it -v
Dale Weiler [Mon, 17 Dec 2012 15:11:34 +0000 (15:11 +0000)]
Just make it -v

11 years agoAdded -which/-version
Dale Weiler [Mon, 17 Dec 2012 15:07:55 +0000 (15:07 +0000)]
Added -which/-version

11 years agoCopy over the array-count in ast_type_adopt/ast_type_copy
Wolfgang (Blub) Bumiller [Mon, 17 Dec 2012 14:59:22 +0000 (15:59 +0100)]
Copy over the array-count in ast_type_adopt/ast_type_copy

11 years agoError when the assignop for an assignment is invalid, eg. when trying to assign arrays
Wolfgang (Blub) Bumiller [Mon, 17 Dec 2012 14:56:55 +0000 (15:56 +0100)]
Error when the assignop for an assignment is invalid, eg. when trying to assign arrays

11 years agoLet's still initialize the 'count' member...
Wolfgang (Blub) Bumiller [Mon, 17 Dec 2012 14:56:36 +0000 (15:56 +0100)]
Let's still initialize the 'count' member...

11 years agoImplemented -D for preprocessor
Dale Weiler [Mon, 17 Dec 2012 14:58:40 +0000 (14:58 +0000)]
Implemented -D for preprocessor

11 years agoFix: check error before calling codegen_output_type
Wolfgang (Blub) Bumiller [Mon, 17 Dec 2012 14:43:14 +0000 (15:43 +0100)]
Fix: check error before calling codegen_output_type

11 years agoUpdate some info
Dale Weiler [Sun, 16 Dec 2012 23:00:17 +0000 (23:00 +0000)]
Update some info

11 years agoFix some typos
Dale Weiler [Sun, 16 Dec 2012 22:52:17 +0000 (22:52 +0000)]
Fix some typos

11 years agoAdd TODO
Dale Weiler [Sun, 16 Dec 2012 22:48:46 +0000 (22:48 +0000)]
Add TODO

11 years agoFix testsuite. Also added an additional test to the ternary stuff
Dale Weiler [Sun, 16 Dec 2012 22:07:33 +0000 (22:07 +0000)]
Fix testsuite.  Also added an additional test to the ternary stuff

11 years agoAnother peephole optimization
Wolfgang (Blub) Bumiller [Thu, 6 Dec 2012 21:10:31 +0000 (22:10 +0100)]
Another peephole optimization

11 years agos/ir_function_pass_minor/ir_function_pass_peephole/
Wolfgang (Blub) Bumiller [Thu, 6 Dec 2012 20:39:34 +0000 (21:39 +0100)]
s/ir_function_pass_minor/ir_function_pass_peephole/

11 years agoAdding an 'install-doc' target to the Makefile, which is included by the 'install...
Wolfgang (Blub) Bumiller [Thu, 6 Dec 2012 17:57:56 +0000 (18:57 +0100)]
Adding an 'install-doc' target to the Makefile, which is included by the 'install' target and uses MANDIR, which defaults to DATADIR/man, and DATADIR defaults to PREFIX/share

11 years agoAdding -f flags to the manpage
Wolfgang (Blub) Bumiller [Thu, 6 Dec 2012 17:51:46 +0000 (18:51 +0100)]
Adding -f flags to the manpage

11 years agoAdding all the warnings to the manpage
Wolfgang (Blub) Bumiller [Thu, 6 Dec 2012 17:41:22 +0000 (18:41 +0100)]
Adding all the warnings to the manpage

11 years agoUpdating usage message a bit
Wolfgang (Blub) Bumiller [Thu, 6 Dec 2012 17:16:59 +0000 (18:16 +0100)]
Updating usage message a bit

11 years agoTemporarily disable the new tempalloc strat
Wolfgang (Blub) Bumiller [Thu, 6 Dec 2012 16:41:00 +0000 (17:41 +0100)]
Temporarily disable the new tempalloc strat

11 years agoMoving all the global opts_ variables into a struct, now there's one global 'opts...
Wolfgang (Blub) Bumiller [Thu, 6 Dec 2012 12:23:53 +0000 (13:23 +0100)]
Moving all the global opts_ variables into a struct, now there's one global 'opts' struct

11 years ago-Ominor -> -Opeephole; added -Olocaltemps flag; using a less space-wasting temp-alloc...
Wolfgang (Blub) Bumiller [Thu, 6 Dec 2012 12:08:22 +0000 (13:08 +0100)]
-Ominor -> -Opeephole; added -Olocaltemps flag; using a less space-wasting temp-allocation in general

11 years agounexpected typename error when there are typenames in an expression
Wolfgang (Blub) Bumiller [Wed, 5 Dec 2012 16:14:44 +0000 (17:14 +0100)]
unexpected typename error when there are typenames in an expression

11 years agoget rid of some code duplication, and fix some wrong type adoptions in the ast
Wolfgang (Blub) Bumiller [Wed, 5 Dec 2012 15:22:32 +0000 (16:22 +0100)]
get rid of some code duplication, and fix some wrong type adoptions in the ast

11 years agoTiny codegen optimization: silently ignore the creation of STORE with input and outpu...
Wolfgang (Blub) Bumiller [Wed, 5 Dec 2012 14:17:11 +0000 (15:17 +0100)]
Tiny codegen optimization: silently ignore the creation of STORE with input and output being the same address

11 years agoremember this for later
Wolfgang (Blub) Bumiller [Wed, 5 Dec 2012 14:14:21 +0000 (15:14 +0100)]
remember this for later

11 years agoMore stuff in qcvm -printfuns
Wolfgang (Blub) Bumiller [Wed, 5 Dec 2012 13:22:24 +0000 (14:22 +0100)]
More stuff in qcvm -printfuns

11 years agoir_function_pass_minor: some minor optimizations
Wolfgang (Blub) Bumiller [Wed, 5 Dec 2012 13:14:35 +0000 (14:14 +0100)]
ir_function_pass_minor: some minor optimizations

11 years agoast_block_add_expr now lets the block fully adopt the type of the added expression
Wolfgang (Blub) Bumiller [Wed, 5 Dec 2012 11:57:00 +0000 (12:57 +0100)]
ast_block_add_expr now lets the block fully adopt the type of the added expression

11 years agos/parser_sy_pop/parser_sy_apply_operator/
Wolfgang (Blub) Bumiller [Tue, 4 Dec 2012 20:04:14 +0000 (21:04 +0100)]
s/parser_sy_pop/parser_sy_apply_operator/

11 years agoast_ternary_codegen: use codegen_outpu_type
Wolfgang (Blub) Bumiller [Tue, 4 Dec 2012 13:11:49 +0000 (14:11 +0100)]
ast_ternary_codegen: use codegen_outpu_type

11 years agoFix testsuite for -compile cases
Dale Weiler [Tue, 4 Dec 2012 11:55:56 +0000 (11:55 +0000)]
Fix testsuite for -compile cases

11 years ago-Werror now changes the word 'warning' into 'error'
Wolfgang (Blub) Bumiller [Tue, 4 Dec 2012 11:54:53 +0000 (12:54 +0100)]
-Werror now changes the word 'warning' into 'error'

11 years agonoref -compile testcase
Wolfgang (Blub) Bumiller [Tue, 4 Dec 2012 11:50:38 +0000 (12:50 +0100)]
noref -compile testcase

11 years agoParsing the 'noref' keyword; this also gets rid of some code duplication
Wolfgang (Blub) Bumiller [Tue, 4 Dec 2012 11:12:45 +0000 (12:12 +0100)]
Parsing the 'noref' keyword; this also gets rid of some code duplication

11 years agoParsing noref-pragma
Wolfgang (Blub) Bumiller [Mon, 3 Dec 2012 19:37:02 +0000 (20:37 +0100)]
Parsing noref-pragma

11 years agoftepp_preprocess_string uses strlen - push nul-byte to verminor and vermajor
Wolfgang (Blub) Bumiller [Mon, 3 Dec 2012 19:23:40 +0000 (20:23 +0100)]
ftepp_preprocess_string uses strlen - push nul-byte to verminor and vermajor

11 years agoHide execution call to testsuite with @ in Makefile
Dale Weiler [Sun, 2 Dec 2012 23:58:13 +0000 (23:58 +0000)]
Hide execution call to testsuite with @ in Makefile

11 years ago-g now turns on -flno
Dale Weiler [Sun, 2 Dec 2012 23:52:38 +0000 (23:52 +0000)]
-g now turns on -flno

11 years agoMerge branch 'master' of github.com:graphitemaster/gmqcc
Dale Weiler [Sun, 2 Dec 2012 23:17:07 +0000 (23:17 +0000)]
Merge branch 'master' of github.com:graphitemaster/gmqcc

11 years agoAdded preprocessor test
Dale Weiler [Sun, 2 Dec 2012 23:16:44 +0000 (23:16 +0000)]
Added preprocessor test

11 years agoDon't warn about uninitialized stuff in accessors - remove the liferanges calculated...
Wolfgang (Blub) Bumiller [Sun, 2 Dec 2012 17:09:59 +0000 (18:09 +0100)]
Don't warn about uninitialized stuff in accessors - remove the liferanges calculated when finalizing accessors, this would add invalid liferanges to function-local arrays and thus suppress warnings randomly

11 years agoSanity check in ast_generate_accessors
Wolfgang (Blub) Bumiller [Sun, 2 Dec 2012 17:02:44 +0000 (18:02 +0100)]
Sanity check in ast_generate_accessors

11 years agoGet rid of some code duplication
Wolfgang (Blub) Bumiller [Sun, 2 Dec 2012 16:57:08 +0000 (17:57 +0100)]
Get rid of some code duplication

11 years agoMerge branch 'master' of github.com:graphitemaster/gmqcc
Dale Weiler [Sun, 2 Dec 2012 12:03:40 +0000 (12:03 +0000)]
Merge branch 'master' of github.com:graphitemaster/gmqcc

11 years agoCopy the real test output to ternary-fte.tmpl
Wolfgang (Blub) Bumiller [Sun, 2 Dec 2012 12:03:20 +0000 (13:03 +0100)]
Copy the real test output to ternary-fte.tmpl

11 years agoAdd whitespace to ternary-fte template so it matches (expected behaviour)
Dale Weiler [Sun, 2 Dec 2012 12:03:02 +0000 (12:03 +0000)]
Add whitespace to ternary-fte template so it matches (expected behaviour)

11 years agoFixes
Dale Weiler [Sun, 2 Dec 2012 12:01:36 +0000 (12:01 +0000)]
Fixes