Commit graph

1489 commits

Author SHA1 Message Date
Wolfgang (Blub) Bumiller
37fbe7176f Tiny codegen optimization: silently ignore the creation of STORE with input and output being the same address 2012-12-05 15:17:11 +01:00
Wolfgang (Blub) Bumiller
8acfd87039 remember this for later 2012-12-05 15:14:21 +01:00
Wolfgang (Blub) Bumiller
5f0f5bedbc More stuff in qcvm -printfuns 2012-12-05 14:22:24 +01:00
Wolfgang (Blub) Bumiller
fe150aee72 ir_function_pass_minor: some minor optimizations 2012-12-05 14:14:35 +01:00
Wolfgang (Blub) Bumiller
8777624fe2 ast_block_add_expr now lets the block fully adopt the type of the added expression 2012-12-05 12:57:00 +01:00
Wolfgang (Blub) Bumiller
f140251e85 s/parser_sy_pop/parser_sy_apply_operator/ 2012-12-04 21:04:14 +01:00
Wolfgang (Blub) Bumiller
0c8bacd134 ast_ternary_codegen: use codegen_outpu_type 2012-12-04 14:11:49 +01:00
Dale Weiler
0dfd3136e5 Fix testsuite for -compile cases 2012-12-04 11:56:20 +00:00
Wolfgang (Blub) Bumiller
8e077f378e -Werror now changes the word 'warning' into 'error' 2012-12-04 12:54:53 +01:00
Wolfgang (Blub) Bumiller
36fe4e2729 noref -compile testcase 2012-12-04 12:50:38 +01:00
Wolfgang (Blub) Bumiller
0e4e81d94f Parsing the 'noref' keyword; this also gets rid of some code duplication 2012-12-04 12:17:43 +01:00
Wolfgang (Blub) Bumiller
88a4721de7 Parsing noref-pragma 2012-12-03 20:37:02 +01:00
Wolfgang (Blub) Bumiller
ea08d16c06 ftepp_preprocess_string uses strlen - push nul-byte to verminor and vermajor 2012-12-03 20:23:40 +01:00
Dale Weiler
d43a6c50d4 Hide execution call to testsuite with @ in Makefile 2012-12-02 23:58:13 +00:00
Dale Weiler
16ae493a9a -g now turns on -flno 2012-12-02 23:52:38 +00:00
Dale Weiler
1ca3e72417 Merge branch 'master' of github.com:graphitemaster/gmqcc 2012-12-02 23:17:07 +00:00
Dale Weiler
4d1514257e Added preprocessor test 2012-12-02 23:16:44 +00:00
Wolfgang (Blub) Bumiller
6b575372cc 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 2012-12-02 18:09:59 +01:00
Wolfgang (Blub) Bumiller
c926c4cb59 Sanity check in ast_generate_accessors 2012-12-02 18:02:44 +01:00
Wolfgang (Blub) Bumiller
02ec45363e Get rid of some code duplication 2012-12-02 17:57:08 +01:00
Dale Weiler
77ef7f516d Merge branch 'master' of github.com:graphitemaster/gmqcc 2012-12-02 12:03:40 +00:00
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