Dale Weiler
|
6a8494f21b
|
Merge branch 'master' of github.com:graphitemaster/gmqcc
|
2012-11-22 18:13:12 +00:00 |
|
Dale Weiler
|
79bac33a40
|
Remove requirement for E
|
2012-11-22 18:12:47 +00:00 |
|
Wolfgang (Blub) Bumiller
|
ba9217e576
|
make ast_function_label also work when -dumpfin is used instead of -dump
|
2012-11-21 21:59:25 +01:00 |
|
Wolfgang (Blub) Bumiller
|
6983142c4d
|
-dump vs -dumpfin; to see the IR before and after finalizing functions
|
2012-11-21 21:53:38 +01:00 |
|
Wolfgang (Blub) Bumiller
|
42135f1322
|
Escape strings in ir-dump output
|
2012-11-21 21:49:21 +01:00 |
|
Dale Weiler
|
2e3d572b53
|
Bump version
|
2012-11-21 20:33:52 +00:00 |
|
Dale Weiler
|
ec50d8508e
|
Make blub happy
|
2012-11-21 20:31:41 +00:00 |
|
Dale Weiler
|
e7917d3225
|
Make makefile runtest rule depend on all to be built
|
2012-11-21 20:27:41 +00:00 |
|
Dale Weiler
|
1a5447ae8f
|
less verbosity from test suite, just the way blub wants it
|
2012-11-21 20:26:18 +00:00 |
|
Wolfgang (Blub) Bumiller
|
e20184ae59
|
ast_ternary needs to adopt the output type
|
2012-11-21 20:57:00 +01:00 |
|
Wolfgang (Blub) Bumiller
|
9c8dc43775
|
error if the ternary operands aren't of the same type - except for the first one of course
|
2012-11-21 20:56:51 +01:00 |
|
Wolfgang (Blub) Bumiller
|
be52ca3879
|
More verbose error for invalid parameter types
|
2012-11-21 20:53:00 +01:00 |
|
Wolfgang (Blub) Bumiller
|
0787038934
|
check 'ternaries' count
|
2012-11-21 20:50:27 +01:00 |
|
Wolfgang (Blub) Bumiller
|
90bd91e294
|
Utilizing vec_last more
|
2012-11-21 20:44:43 +01:00 |
|
Wolfgang (Blub) Bumiller
|
5ec75a228e
|
question mark must result in TOKEN_OPERATOR
|
2012-11-21 20:42:48 +01:00 |
|
Wolfgang (Blub) Bumiller
|
55c2148016
|
operator handling for ternary
|
2012-11-21 20:41:26 +01:00 |
|
Wolfgang (Blub) Bumiller
|
11f1af78d5
|
Removing some obsolete messages
|
2012-11-21 20:40:10 +01:00 |
|
Wolfgang (Blub) Bumiller
|
e0ddf32d2e
|
parsing the ternary
|
2012-11-21 20:36:42 +01:00 |
|
Wolfgang (Blub) Bumiller
|
8517221b1b
|
Inserting ternary in the qcc-operator-list at the place fteqcc would have it
|
2012-11-21 20:16:28 +01:00 |
|
Wolfgang (Blub) Bumiller
|
a7fb45f102
|
removed phi_out from ast_ternary since we have a place in ast_expression_common for this kind of value
|
2012-11-21 20:13:31 +01:00 |
|
Wolfgang (Blub) Bumiller
|
268ad7db53
|
Fix wrong merge_id
|
2012-11-21 19:55:12 +01:00 |
|
Wolfgang (Blub) Bumiller
|
de5592dfc5
|
-fperl-logic, off by default, so casting to boolean now
|
2012-11-21 19:40:11 +01:00 |
|
Wolfgang (Blub) Bumiller
|
ebc6954bf5
|
casting explicitly to boolean values in early out logic
|
2012-11-21 19:36:28 +01:00 |
|
Wolfgang (Blub) Bumiller
|
21c2fcb929
|
A note about how early-out in if-expressions can be translated more efficiently
|
2012-11-21 19:22:28 +01:00 |
|
Wolfgang (Blub) Bumiller
|
bd1bc0dc59
|
Actually it's likely...
|
2012-11-21 17:42:44 +01:00 |
|
Wolfgang (Blub) Bumiller
|
5a6b2bceb2
|
Little optimization to not produce an unreachable goto instruction
|
2012-11-21 17:40:35 +01:00 |
|
Wolfgang (Blub) Bumiller
|
b1425dfcf1
|
'likely' hint for IFs
|
2012-11-21 17:37:45 +01:00 |
|
Wolfgang (Blub) Bumiller
|
ca2b414c7c
|
experimental -fshort-logic, currently perl-like - might have to use NOT(NOT(x)) to fix this
|
2012-11-21 16:08:08 +01:00 |
|
Wolfgang (Blub) Bumiller
|
1dfb14fef0
|
Fixing warnings
|
2012-11-21 16:07:36 +01:00 |
|
Wolfgang (Blub) Bumiller
|
390ac0d871
|
A hopefully working naive PHI solution
|
2012-11-21 16:05:54 +01:00 |
|
Dale Weiler
|
be8981a5c3
|
Implemented multi-line comparitive tests, fixed output of stdout/stderr pair logs. Some other cleanups, and stuff
|
2012-11-20 06:06:46 +00:00 |
|
Wolfgang (Blub) Bumiller
|
57e7303cf4
|
Adding break/continue testcases
|
2012-11-20 00:21:03 +01:00 |
|
Wolfgang (Blub) Bumiller
|
6bc72a0262
|
*sigh*
|
2012-11-20 00:20:42 +01:00 |
|
Wolfgang (Blub) Bumiller
|
62ff522013
|
Fixing switch testcase 7
|
2012-11-20 00:16:49 +01:00 |
|
Wolfgang (Blub) Bumiller
|
5778b6ffb6
|
switch testcases
|
2012-11-19 23:50:47 +01:00 |
|
Wolfgang (Blub) Bumiller
|
f4043faf0b
|
-frelaxed-switch to enable switch on non-constant cases
|
2012-11-19 22:27:58 +01:00 |
|
Wolfgang (Blub) Bumiller
|
5c52e817ea
|
Add the missing jump from after the actual last case
|
2012-11-19 22:17:24 +01:00 |
|
Wolfgang (Blub) Bumiller
|
986d58877f
|
Enter the outgoing block after a switch
|
2012-11-19 22:08:38 +01:00 |
|
Wolfgang (Blub) Bumiller
|
4649c12fa9
|
Parsing of switches
|
2012-11-19 22:06:29 +01:00 |
|
Wolfgang (Blub) Bumiller
|
2a55dd7234
|
fix bnot_id
|
2012-11-19 22:06:23 +01:00 |
|
Wolfgang (Blub) Bumiller
|
63969180cf
|
'case' and 'default' are now keywords too, not just switch
|
2012-11-19 21:40:38 +01:00 |
|
Wolfgang (Blub) Bumiller
|
06ba28f2a0
|
ast_switch
|
2012-11-19 21:17:44 +01:00 |
|
Wolfgang (Blub) Bumiller
|
b72900214b
|
fix a warning and remove unused variables
|
2012-11-19 19:44:26 +01:00 |
|
Wolfgang (Blub) Bumiller
|
8ac689c03a
|
Error in the ast already about unreachable statements and don't upset the IR
|
2012-11-19 19:42:25 +01:00 |
|
Wolfgang (Blub) Bumiller
|
ea75003cf4
|
break and continue support
|
2012-11-19 19:39:52 +01:00 |
|
Wolfgang (Blub) Bumiller
|
2d8bf20d43
|
moving 'return' parsing into a function
|
2012-11-19 19:22:00 +01:00 |
|
Wolfgang (Blub) Bumiller
|
6e888396b5
|
moving keywords into an array
|
2012-11-19 19:20:26 +01:00 |
|
Wolfgang (Blub) Bumiller
|
3391874ebf
|
Fix con_vprintmsg madness
|
2012-11-19 19:19:30 +01:00 |
|
Wolfgang (Blub) Bumiller
|
276346e63c
|
This is probably what was intended actually
|
2012-11-19 19:06:38 +01:00 |
|
Dale Weiler
|
61fa54318c
|
Merge branch 'master' into test-suite
Conflicts:
Makefile
ir.c
|
2012-11-19 02:13:46 +00:00 |
|