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

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

11 years agoImproved testsuite diagnostics
Dale Weiler [Sun, 2 Dec 2012 11:21:01 +0000 (11:21 +0000)]
Improved testsuite diagnostics

11 years agoRemove an unused variable qc_stof
Wolfgang (Blub) Bumiller [Sun, 2 Dec 2012 10:58:15 +0000 (11:58 +0100)]
Remove an unused variable qc_stof

11 years agoFix testsuite
Dale Weiler [Sun, 2 Dec 2012 10:57:04 +0000 (10:57 +0000)]
Fix testsuite

11 years agoFix ternary operator entry for -std=gmqcc
Wolfgang (Blub) Bumiller [Sun, 2 Dec 2012 10:56:20 +0000 (11:56 +0100)]
Fix ternary operator entry for -std=gmqcc

11 years agoUpdating ternary testcase to use -fcorrect-ternary - added fte-style test as well...
Wolfgang (Blub) Bumiller [Sun, 2 Dec 2012 10:52:11 +0000 (11:52 +0100)]
Updating ternary testcase to use -fcorrect-ternary - added fte-style test as well for it

11 years agoadded __STD_VERSION_[MINOR/MAJOR]__, and vec_upload
Dale Weiler [Sun, 2 Dec 2012 04:30:46 +0000 (04:30 +0000)]
added __STD_VERSION_[MINOR/MAJOR]__, and vec_upload

11 years agoFix a type size bug: non-var locals overlapped with var locals, that was bad
Wolfgang (Blub) Bumiller [Sat, 1 Dec 2012 22:23:00 +0000 (23:23 +0100)]
Fix a type size bug: non-var locals overlapped with var locals, that was bad

11 years agoRemove unused omit-nullbytes code in code.c
Wolfgang (Blub) Bumiller [Sat, 1 Dec 2012 22:14:52 +0000 (23:14 +0100)]
Remove unused omit-nullbytes code in code.c

11 years agoRemoved -fomit-null-bytes
Wolfgang (Blub) Bumiller [Sat, 1 Dec 2012 20:19:33 +0000 (21:19 +0100)]
Removed -fomit-null-bytes

11 years agoSome of the output types were superfluous; others are now put into a function to...
Wolfgang (Blub) Bumiller [Sat, 1 Dec 2012 15:39:29 +0000 (16:39 +0100)]
Some of the output types were superfluous; others are now put into a function to take care of it

11 years agoAdd some more output and field types so you can now properly call 'get_a_function_whi...
Wolfgang (Blub) Bumiller [Sat, 1 Dec 2012 15:11:04 +0000 (16:11 +0100)]
Add some more output and field types so you can now properly call 'get_a_function_which_gives_a_function()()()' without return values getting lost

11 years agostof builtin #9
Wolfgang (Blub) Bumiller [Sat, 1 Dec 2012 14:54:13 +0000 (15:54 +0100)]
stof builtin #9

11 years agofunction pointer's output types need to be set for the IR to know
Wolfgang (Blub) Bumiller [Sat, 1 Dec 2012 14:23:40 +0000 (15:23 +0100)]
function pointer's output types need to be set for the IR to know

11 years agoMore info in qcvm -printfuns
Wolfgang (Blub) Bumiller [Sat, 1 Dec 2012 14:23:04 +0000 (15:23 +0100)]
More info in qcvm -printfuns

11 years ago-fcorrect-ternary; by default -std=fteqcc now uses fteqcc's wrong ternary precedence...
Wolfgang (Blub) Bumiller [Sat, 1 Dec 2012 12:42:16 +0000 (13:42 +0100)]
-fcorrect-ternary; by default -std=fteqcc now uses fteqcc's wrong ternary precedence parsing

11 years agoSanity check for -Wternary-precedence
Wolfgang (Blub) Bumiller [Sat, 1 Dec 2012 11:36:54 +0000 (12:36 +0100)]
Sanity check for -Wternary-precedence

11 years ago-Wternary-precedence; *sight* this is tough
Wolfgang (Blub) Bumiller [Sat, 1 Dec 2012 11:35:46 +0000 (12:35 +0100)]
-Wternary-precedence; *sight* this is tough

11 years agoGenerate extparams on calls too since the to-be-called function needs not be generate...
Wolfgang (Blub) Bumiller [Sat, 1 Dec 2012 10:43:54 +0000 (11:43 +0100)]
Generate extparams on calls too since the to-be-called function needs not be generated first after all

11 years agoMore ternary fixes
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 23:50:04 +0000 (00:50 +0100)]
More ternary fixes

11 years agoOffsetting builtins so we can use 'if builtin!=0' as condition but also allow a ...
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 23:36:24 +0000 (00:36 +0100)]
Offsetting builtins so we can use 'if builtin!=0' as condition but also allow a '#0' builtin

11 years agoUpping the default max-array-limit *sigh*
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 23:34:18 +0000 (00:34 +0100)]
Upping the default max-array-limit *sigh*

11 years agoand 'const' is a keyword, not an ident
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 23:33:07 +0000 (00:33 +0100)]
and 'const' is a keyword, not an ident

11 years agovar const / const var - both need to be allowed
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 23:32:18 +0000 (00:32 +0100)]
var const / const var - both need to be allowed

11 years agosome SYA fix; adding optional variable parsing to the head of a switch block
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 23:31:00 +0000 (00:31 +0100)]
some SYA fix; adding optional variable parsing to the head of a switch block

11 years agoskipwhite bugfix
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 20:51:18 +0000 (21:51 +0100)]
skipwhite bugfix

11 years agobodyless loops still have to loop
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 20:34:49 +0000 (21:34 +0100)]
bodyless loops still have to loop

11 years agochanging parse_statement_or_block to return a bool and put the output block into...
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 20:31:19 +0000 (21:31 +0100)]
changing parse_statement_or_block to return a bool and put the output block into a pointer, so that NULL can still be possible

11 years agoapparently #0 is a valid builtin number, used for some NULL funcs
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 20:25:18 +0000 (21:25 +0100)]
apparently #0 is a valid builtin number, used for some NULL funcs

11 years agoprepare fields before generating globals so we avoid the need for relocating initiali...
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 20:22:48 +0000 (21:22 +0100)]
prepare fields before generating globals so we avoid the need for relocating initialized fieldpointers

11 years agofield constants - revert globals generated after fields
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 20:11:12 +0000 (21:11 +0100)]
field constants - revert globals generated after fields

11 years agoremember if an ast_value is a field-declaration, build fields before globals
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 20:03:57 +0000 (21:03 +0100)]
remember if an ast_value is a field-declaration, build fields before globals

11 years agoadditional info in an internal error
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 19:40:48 +0000 (20:40 +0100)]
additional info in an internal error

11 years agoUse the field parameter type on the raw paramter type list for their sizes.
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 19:33:40 +0000 (20:33 +0100)]
Use the field parameter type on the raw paramter type list for their sizes.

11 years agoqcvm -printfuns; prog_section_function.nargs is now signed as fteqcc sets builtins...
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 19:20:13 +0000 (20:20 +0100)]
qcvm -printfuns; prog_section_function.nargs is now signed as fteqcc sets builtins with varargs to have -1 params

11 years agoAdding opts.def as dep to everything which has gmqcc.h as dep
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 17:21:14 +0000 (18:21 +0100)]
Adding opts.def as dep to everything which has gmqcc.h as dep

11 years agoAll ir_instrs now get their lex-context, so that we can create an LNO file with ...
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 17:19:26 +0000 (18:19 +0100)]
All ir_instrs now get their lex-context, so that we can create an LNO file with -flno

11 years agoincrease the ridiculously low size limit on lex-pragma parameters
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 16:28:46 +0000 (17:28 +0100)]
increase the ridiculously low size limit on lex-pragma parameters

11 years agoupdate other value/const check for array indexing
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 15:28:09 +0000 (16:28 +0100)]
update other value/const check for array indexing

11 years agoDon't treat initialized non-consts as static array indices
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 15:25:18 +0000 (16:25 +0100)]
Don't treat initialized non-consts as static array indices

11 years agoKeeping track of numbers for debugging
Wolfgang (Blub) Bumiller [Fri, 30 Nov 2012 15:23:42 +0000 (16:23 +0100)]
Keeping track of numbers for debugging