Wolfgang (Blub) Bumiller
|
668735e0f4
|
Copy the real test output to ternary-fte.tmpl
|
2012-12-02 13:03:20 +01:00 |
|
Dale Weiler
|
41881823b7
|
Add whitespace to ternary-fte template so it matches (expected behaviour)
|
2012-12-02 12:03:02 +00:00 |
|
Dale Weiler
|
8aff0f76c0
|
Fixes
|
2012-12-02 12:01:36 +00:00 |
|
Dale Weiler
|
b5a0fd7e42
|
Merge branch 'master' of github.com:graphitemaster/gmqcc
|
2012-12-02 11:21:31 +00:00 |
|
Dale Weiler
|
628ed253b3
|
Improved testsuite diagnostics
|
2012-12-02 11:21:01 +00:00 |
|
Wolfgang (Blub) Bumiller
|
e8a1b7e71c
|
Remove an unused variable qc_stof
|
2012-12-02 11:58:15 +01:00 |
|
Dale Weiler
|
79b8435877
|
Fix testsuite
|
2012-12-02 10:57:04 +00:00 |
|
Wolfgang (Blub) Bumiller
|
95865035eb
|
Fix ternary operator entry for -std=gmqcc
|
2012-12-02 11:56:20 +01:00 |
|
Wolfgang (Blub) Bumiller
|
d39df54f8a
|
Updating ternary testcase to use -fcorrect-ternary - added fte-style test as well for it
|
2012-12-02 11:52:25 +01:00 |
|
Dale Weiler
|
37ccf19769
|
added __STD_VERSION_[MINOR/MAJOR]__, and vec_upload
|
2012-12-02 04:30:46 +00:00 |
|
Wolfgang (Blub) Bumiller
|
c371efb882
|
Fix a type size bug: non-var locals overlapped with var locals, that was bad
|
2012-12-01 23:23:00 +01:00 |
|
Wolfgang (Blub) Bumiller
|
836935fba2
|
Remove unused omit-nullbytes code in code.c
|
2012-12-01 23:14:52 +01:00 |
|
Wolfgang (Blub) Bumiller
|
efe35ed02b
|
Removed -fomit-null-bytes
|
2012-12-01 21:19:33 +01:00 |
|
Wolfgang (Blub) Bumiller
|
07f4e6309d
|
Some of the output types were superfluous; others are now put into a function to take care of it
|
2012-12-01 16:39:29 +01:00 |
|
Wolfgang (Blub) Bumiller
|
de837f2380
|
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
|
2012-12-01 16:11:04 +01:00 |
|
Wolfgang (Blub) Bumiller
|
b7ce7370e8
|
stof builtin #9
|
2012-12-01 15:54:13 +01:00 |
|
Wolfgang (Blub) Bumiller
|
dfd8f14116
|
function pointer's output types need to be set for the IR to know
|
2012-12-01 15:23:40 +01:00 |
|
Wolfgang (Blub) Bumiller
|
79e0c5c4fa
|
More info in qcvm -printfuns
|
2012-12-01 15:23:04 +01:00 |
|
Wolfgang (Blub) Bumiller
|
53fd019780
|
-fcorrect-ternary; by default -std=fteqcc now uses fteqcc's wrong ternary precedence parsing
|
2012-12-01 13:42:16 +01:00 |
|
Wolfgang (Blub) Bumiller
|
8188d0b9f7
|
Sanity check for -Wternary-precedence
|
2012-12-01 12:36:54 +01:00 |
|
Wolfgang (Blub) Bumiller
|
ed4c513b1e
|
-Wternary-precedence; *sight* this is tough
|
2012-12-01 12:35:46 +01:00 |
|
Wolfgang (Blub) Bumiller
|
624e95ee03
|
Generate extparams on calls too since the to-be-called function needs not be generated first after all
|
2012-12-01 11:43:54 +01:00 |
|
Wolfgang (Blub) Bumiller
|
b966cd4f4d
|
More ternary fixes
|
2012-12-01 00:50:04 +01:00 |
|
Wolfgang (Blub) Bumiller
|
43c0343755
|
Offsetting builtins so we can use 'if builtin!=0' as condition but also allow a '#0' builtin
|
2012-12-01 00:36:24 +01:00 |
|
Wolfgang (Blub) Bumiller
|
e102c1632b
|
Upping the default max-array-limit *sigh*
|
2012-12-01 00:34:18 +01:00 |
|
Wolfgang (Blub) Bumiller
|
75ab0e6663
|
and 'const' is a keyword, not an ident
|
2012-12-01 00:33:07 +01:00 |
|
Wolfgang (Blub) Bumiller
|
ac9d68387c
|
var const / const var - both need to be allowed
|
2012-12-01 00:32:18 +01:00 |
|
Wolfgang (Blub) Bumiller
|
d52879315d
|
some SYA fix; adding optional variable parsing to the head of a switch block
|
2012-12-01 00:31:00 +01:00 |
|
Wolfgang (Blub) Bumiller
|
46942df6c0
|
skipwhite bugfix
|
2012-11-30 21:51:18 +01:00 |
|
Wolfgang (Blub) Bumiller
|
d148cfdcd5
|
bodyless loops still have to loop
|
2012-11-30 21:34:49 +01:00 |
|
Wolfgang (Blub) Bumiller
|
8d014cc6eb
|
changing parse_statement_or_block to return a bool and put the output block into a pointer, so that NULL can still be possible
|
2012-11-30 21:31:19 +01:00 |
|
Wolfgang (Blub) Bumiller
|
cda62cef20
|
apparently #0 is a valid builtin number, used for some NULL funcs
|
2012-11-30 21:25:18 +01:00 |
|
Wolfgang (Blub) Bumiller
|
2a2465c884
|
prepare fields before generating globals so we avoid the need for relocating initialized fieldpointers
|
2012-11-30 21:22:48 +01:00 |
|
Wolfgang (Blub) Bumiller
|
2a3e7c1cff
|
field constants - revert globals generated after fields
|
2012-11-30 21:11:25 +01:00 |
|
Wolfgang (Blub) Bumiller
|
316298650e
|
remember if an ast_value is a field-declaration, build fields before globals
|
2012-11-30 21:03:57 +01:00 |
|
Wolfgang (Blub) Bumiller
|
1a264e5576
|
additional info in an internal error
|
2012-11-30 20:40:48 +01:00 |
|
Wolfgang (Blub) Bumiller
|
b3a9c4e8d9
|
Use the field parameter type on the raw paramter type list for their sizes.
|
2012-11-30 20:33:40 +01:00 |
|
Wolfgang (Blub) Bumiller
|
e0a7f8a484
|
qcvm -printfuns; prog_section_function.nargs is now signed as fteqcc sets builtins with varargs to have -1 params
|
2012-11-30 20:20:13 +01:00 |
|
Wolfgang (Blub) Bumiller
|
a9a41a786e
|
Adding opts.def as dep to everything which has gmqcc.h as dep
|
2012-11-30 18:21:14 +01:00 |
|
Wolfgang (Blub) Bumiller
|
6fc00e523d
|
All ir_instrs now get their lex-context, so that we can create an LNO file with -flno
|
2012-11-30 18:20:02 +01:00 |
|
Wolfgang (Blub) Bumiller
|
2f3612d905
|
increase the ridiculously low size limit on lex-pragma parameters
|
2012-11-30 17:28:46 +01:00 |
|
Wolfgang (Blub) Bumiller
|
bda5ff4213
|
update other value/const check for array indexing
|
2012-11-30 16:28:09 +01:00 |
|
Wolfgang (Blub) Bumiller
|
696a8629b3
|
Don't treat initialized non-consts as static array indices
|
2012-11-30 16:25:18 +01:00 |
|
Wolfgang (Blub) Bumiller
|
6acd159c9c
|
Keeping track of numbers for debugging
|
2012-11-30 16:23:42 +01:00 |
|
Wolfgang (Blub) Bumiller
|
9f1aa1490a
|
out-of-bounds indexing check on static array indexing
|
2012-11-30 16:23:34 +01:00 |
|
Wolfgang (Blub) Bumiller
|
44cbf40553
|
We can now reintroduce the 'preprocessor-directives only after newlines' rule correctly
|
2012-11-30 15:53:53 +01:00 |
|
Wolfgang (Blub) Bumiller
|
f1a36ca647
|
Ignore modelgen commands with lex->flags.preprocessing
|
2012-11-30 15:44:45 +01:00 |
|
Wolfgang (Blub) Bumiller
|
41cb923c0c
|
Wrong condition *sigh*
|
2012-11-30 15:43:18 +01:00 |
|
Wolfgang (Blub) Bumiller
|
0627e9e06e
|
Still have to parse ahead though
|
2012-11-30 15:41:01 +01:00 |
|
Wolfgang (Blub) Bumiller
|
b78dab9d71
|
Don't expand macros inside #if 0 at _all_
|
2012-11-30 15:40:19 +01:00 |
|