Wolfgang Bumiller
42a9784804
Merge branch 'cooking' of git://github.com/graphitemaster/gmqcc into cooking
2013-10-11 14:11:40 +02:00
Wolfgang Bumiller
82afdb1e2c
Merge branch 'cooking' of git://github.com/graphitemaster/gmqcc into cooking
2013-10-11 14:10:57 +02:00
Wolfgang Bumiller
62ac7e9966
first part of parsing TOKEN_DOTS as part of a type when needed; allows declarations like: ...float x;
2013-10-11 14:10:47 +02:00
Dale Weiler
6da151eba1
Update dependencies
2013-10-11 08:10:32 -04:00
Dale Weiler
856949a5f9
I need to test this code on msvc now.
2013-10-11 08:08:36 -04:00
Dale Weiler
d8b3faa871
Fix that (newer clang will fail on it)
2013-10-11 08:06:10 -04:00
Dale Weiler
92c0d6157c
Merge branch 'cleanup' into cooking
2013-10-11 08:04:02 -04:00
Dale Weiler
fa14550d38
Last piece of documentation for platform.h
2013-10-11 08:02:28 -04:00
Dale Weiler
604c9d25bf
More documentation for platform.h
2013-10-11 07:40:31 -04:00
Dale Weiler
4d0bf1607a
Some documentation
2013-10-11 07:16:48 -04:00
Dale Weiler
63fdab8422
Some more cleanup
2013-10-11 06:36:05 -04:00
Dale Weiler
87d9371a5c
Refactor some util/platform usage and extend file system file interface to accept its own flags and EOF
2013-10-11 06:12:56 -04:00
Wolfgang Bumiller
3d5fedcf39
distro/archlinux/this/Makefile: TARCOMP variable contains the compression flag, rather than using -J in the makerule but provide the .xz extension in a variable
2013-10-11 11:17:03 +02:00
Wolfgang Bumiller
637651f4e1
distro/archlinux/this/Makefile: tar -> bsdtar
2013-10-11 11:14:46 +02:00
Dale Weiler
e9bde1e4e4
Add back the correct directory handling for msvc
2013-10-11 05:09:55 -04:00
Dale Weiler
34c18ab860
Make it compile with mingw32 again
2013-10-11 04:58:49 -04:00
Dale Weiler
dab528acda
Add a porting guide
2013-10-11 04:55:26 -04:00
Dale Weiler
e8955f17ea
More cleanups, gmqcc.h doesn't need to include stdio.h now!
2013-10-11 04:06:52 -04:00
Dale Weiler
033cf7c7d3
More cleanups
2013-10-11 03:59:25 -04:00
Dale Weiler
5138a25420
More cleanup
2013-10-11 03:21:44 -04:00
Dale Weiler
12a864abf5
Some more platform / compiler specific code refactoring.
2013-10-11 03:02:38 -04:00
Dale Weiler
151606e255
Initial platform / compiler specific code refactoring.
2013-10-11 02:39:30 -04:00
Dale Weiler
14ef6a1c42
This can actually be much smaller, 204 bytes!
2013-10-11 00:22:27 -04:00
Dale Weiler
9dabb68d7f
More typos
2013-10-10 22:12:03 -04:00
Dale Weiler
f73f2f1ba9
typo
2013-10-10 22:11:03 -04:00
Dale Weiler
e263506b3f
Document what the utf8 table actually is
2013-10-10 22:10:36 -04:00
Dale Weiler
3e362e872c
Wrong operand order it's 0xf4u-0xc2u i.e 0x32.
2013-10-10 22:03:13 -04:00
Dale Weiler
f83cc1b91d
Less flexible more economical utf8 decoder.
2013-10-10 21:44:40 -04:00
Dale Weiler
6bd6379c87
Don't echo it
2013-10-05 23:39:05 -04:00
Dale Weiler
a02e44100e
Fix some things: get all the Quake mods to compile again (I broke binary expressions .. oops) Fix the check-proj script, using $? for status was invalid because of pipes. The ir now properly considers negation virtual instruction to be operations (as it should).
2013-10-05 23:36:48 -04:00
Dale Weiler
99e3ae9773
Update CHANGES files
2013-10-05 22:34:55 -04:00
Dale Weiler
300fb9905b
Fix fold_superfluous
2013-10-04 07:10:58 -04:00
Dale Weiler
ffdd6df828
Only when peephole optimization is on
2013-10-04 07:02:06 -04:00
Dale Weiler
2cf5046d38
Handle proper expression type assignment
2013-10-04 06:53:09 -04:00
Dale Weiler
cc69370575
Another peephole optimization which removes superfluous expressions such as (A + 0), (A - 0), (A * 1) and (A / 1).
2013-10-04 06:46:54 -04:00
Dale Weiler
263fcfbc2f
Refactor intrinsic stuff
2013-10-02 13:00:34 -04:00
Dale Weiler
2ebf571129
Update documentation
2013-09-30 16:03:22 -04:00
Dale Weiler
90824c2093
Add seperate warning flag for directive in macro.
2013-09-30 15:59:36 -04:00
Dale Weiler
8f359f3849
Warn when preprocessor directive is found inside a macro body.
2013-09-30 15:57:01 -04:00
Dale Weiler
08891068c8
Merge branch 'cooking' of github.com:graphitemaster/gmqcc into cooking
2013-09-30 14:33:57 -04:00
Dale Weiler
b6f08e7fb1
Fix negation type for VINSTR_NEG_V. Source operand for optimization instead of the expression (to handle double negation elision properly.)
2013-09-30 14:32:21 -04:00
Wolfgang Bumiller
fa14ca93d2
Merge branch 'master' into cooking
2013-09-30 15:02:03 +02:00
Wolfgang Bumiller
dfbd093348
Merge pull request #134 from Sicness/hyphen
...
Fixed hyphen-used-as-minus-sign in gmqcc.1
2013-09-30 06:01:22 -07:00
Anton Balashov
e928cabfb2
Fixed hyphen-used-as-minus-sign in gmqcc.1
...
Accortding to lintian report:
I: gmqcc: hyphen-used-as-minus-sign usr/share/man/man1/gmqcc.1.gz:156
N:
N: This manual page seems to contain a hyphen where a minus sign was
N: intended. By default, "-" chars are interpreted as hyphens (U+2010) by
N: groff, not as minus signs (U+002D). Since options to programs use minus
N: signs (U+002D), this means for example in UTF-8 locales that you cannot
N: cut and paste options, nor search for them easily. The Debian groff
N: package currently forces "-" to be interpreted as a minus sign due to
N: the number of manual pages with this problem, but this is a
N: Debian-specific modification and hopefully eventually can be removed.
N:
N: "-" must be escaped ("\-") to be interpreted as minus. If you really
N: intend a hyphen (normally you don't), write it as "\(hy" to emphasise
N: that fact. See groff(7) and especially groff_char(7) for details, and
N: also the thread starting with
N: http://lists.debian.org/debian-devel/2003/debian-devel-200303/msg01481.html
N:
N: If you use some tool that converts your documentation to groff format,
N: this tag may indicate a bug in the tool. Some tools convert dashes of
N: any kind to hyphens. The safe way of converting dashes is to convert
N: them to "\-".
N:
N: Because this error can occur very often, Lintian shows only the first 10
N: occurrences for each man page and give the number of suppressed
N: occurrences. If you want to see all warnings, run Lintian with the
N: -d/--debug option.
N:
N: Refer to /usr/share/doc/groff-base/README.Debian and the groff_char(7)
N: manual page for details.
N:
N: Severity: wishlist, Certainty: possible
N:
N: Check: manpages, Type: binary
N:
I: gmqcc: hyphen-used-as-minus-sign usr/share/man/man1/gmqcc.1.gz:354
I: gmqcc: hyphen-used-as-minus-sign usr/share/man/man1/gmqcc.1.gz:676
2013-09-30 16:43:57 +04:00
Dale Weiler
03b56bd41f
Handle double negation case specially. Update TODO
2013-09-30 05:12:28 -04:00
Dale Weiler
7249c2ec18
Simplify parse stage for unary - operator.
2013-09-29 22:08:09 -04:00
Dale Weiler
353455e1ad
Remove pointless thinking comment, fix builds for clang.
2013-09-29 22:06:26 -04:00
Dale Weiler
b10de1b240
Make unary - operator act as an ast_unary node. This allows for consistency (no sense in making unary use binstore nodes, it doesn't make much sense). It also allows for the peephole optimization on unary chains that cancel each other to take place; i.e code like "-(-a)" simplifies to "a", thus eliminating instructions.
2013-09-29 22:01:46 -04:00
Dale Weiler
3c931ecbf1
Eh, only if peephole optimizations are turned on.
2013-09-28 06:41:40 -04:00
Dale Weiler
c6056d441b
Less casts.
2013-09-28 06:36:00 -04:00