]> git.sur5r.net Git - cc65/log
cc65
7 years agoBumped version. V2.16
Oliver Schmidt [Thu, 6 Apr 2017 10:22:39 +0000 (12:22 +0200)]
Bumped version.

As suggested the incompatibility resulting from https://github.com/cc65/cc65/commit/02daf9f8b5c1ae2267561ee05ce67b2d0393c12d makes a new version appropriate.

7 years agoMerge pull request #417 from greg-king5/sim-interrupts
Oliver Schmidt [Wed, 5 Apr 2017 08:57:47 +0000 (10:57 +0200)]
Merge pull request #417 from greg-king5/sim-interrupts

sim65: Fix the simulations of the stack pointer and the "break" and decimal flags.

7 years agoFixed the simulations of the stack pointer and the "break" and decimal-mode flags. 417/head
Greg King [Tue, 4 Apr 2017 17:23:44 +0000 (13:23 -0400)]
Fixed the simulations of the stack pointer and the "break" and decimal-mode flags.

* The pointer wraps around the stack page.
* The break flag exists on only the stack, and only after an interrupt.
* 65C02 interrupts clear the decimal-mode flag.

7 years agoRemoved workaround.
Oliver Schmidt [Tue, 4 Apr 2017 13:53:14 +0000 (15:53 +0200)]
Removed workaround.

7 years agoRemoved workaround.
Oliver Schmidt [Tue, 4 Apr 2017 13:52:37 +0000 (15:52 +0200)]
Removed workaround.

7 years agoRemoved workaround.
Oliver Schmidt [Tue, 4 Apr 2017 13:52:01 +0000 (15:52 +0200)]
Removed workaround.

7 years agoRemoved workaround.
Oliver Schmidt [Tue, 4 Apr 2017 13:51:00 +0000 (15:51 +0200)]
Removed workaround.

7 years agoRemoved workaround.
Oliver Schmidt [Tue, 4 Apr 2017 13:45:24 +0000 (15:45 +0200)]
Removed workaround.

7 years agoRemoved superfluous final linefeed.
Oliver Schmidt [Tue, 4 Apr 2017 13:43:56 +0000 (15:43 +0200)]
Removed superfluous final linefeed.

7 years agoMerge pull request #389 from IrgendwerA8/stringimprovements
Oliver Schmidt [Tue, 4 Apr 2017 13:39:37 +0000 (15:39 +0200)]
Merge pull request #389 from IrgendwerA8/stringimprovements

Optimization of string functions (size & speed).

7 years agoMinor language update.
Oliver Schmidt [Tue, 4 Apr 2017 11:42:57 +0000 (13:42 +0200)]
Minor language update.

7 years agoFixed 2 typoes.
Greg King [Tue, 4 Apr 2017 11:23:05 +0000 (07:23 -0400)]
Fixed 2 typoes.

Warning messages from nsgmls usually mean a typing mistake a few lines above the first line that's named by nsgmls.

7 years agoUse the more explicit tag style for recently added internal links.
Oliver Schmidt [Mon, 3 Apr 2017 22:41:40 +0000 (00:41 +0200)]
Use the more explicit tag style for recently added internal links.

7 years agoSo far the built-in inlining of several known standard function was always (!) enable...
Oliver Schmidt [Mon, 3 Apr 2017 21:20:26 +0000 (23:20 +0200)]
So far the built-in inlining of several known standard function was always (!) enabled and the option -Os enabled additional, potentially unsafe inlining of some of those functions.

There were two aspects of this behavior that were considered undesirable:
- Although the safe inlining is in general desirable it should only be enabled if asked for it - like any other optimization.
- The option name -Os implies that it is a safe option, the potentially unsafe inlining should have a more explicit name.

So now:
- The option -Os enables the safe inlining.
- The new option --eagerly-inline-funcs enables the potentially unsafe inlining (including the safe inlining).

Additionally was added:
- The option --inline-stdfuncs that does like -Os enable the safe inlining but doesn't enable optimizations.
- The pragma inline-stdfuncs that works identical to --inline-stdfuncs.
- The pragma allow-eager-inline that enables the potentially unsafe inlining but doesn't include the safe inlining. That means that by itself it only marks code as safe for potentially unsafe inlining but doesn't actually enable any inlining.

7 years agoMerge pull request #414 from IrgendwerA8/SED_Fix
Oliver Schmidt [Thu, 30 Mar 2017 10:26:37 +0000 (12:26 +0200)]
Merge pull request #414 from IrgendwerA8/SED_Fix

Fixed sim65 SED

7 years agoFixed SED 414/head
IrgendwerA8 [Thu, 30 Mar 2017 10:17:29 +0000 (12:17 +0200)]
Fixed SED

7 years agoMerge pull request #411 from pfusik/bss-name-regression
Oliver Schmidt [Wed, 22 Mar 2017 12:44:48 +0000 (13:44 +0100)]
Merge pull request #411 from pfusik/bss-name-regression

Fix regression of #pragma bss-name

7 years agoFixed SGML typo.
Greg King [Wed, 22 Mar 2017 01:23:48 +0000 (21:23 -0400)]
Fixed SGML typo.

7 years agoFix regression of #pragma bss-name 411/head
Piotr Fusik [Tue, 21 Mar 2017 21:35:25 +0000 (22:35 +0100)]
Fix regression of #pragma bss-name

Closes #409

7 years agoRevert to recursively expanded var.
Oliver Schmidt [Tue, 21 Mar 2017 19:54:55 +0000 (20:54 +0100)]
Revert to recursively expanded var.

https://github.com/cc65/cc65/commit/4a6bca0b560ae2c1a7cfe3b14f75ee38094b9b76 needed to move to a simply expanded variable but https://github.com/cc65/cc65/commit/cc82cd99923caeb3353288789208eb079c73e720 made that unnecessary again.

7 years agoAdded missing line continuation.
Oliver Schmidt [Tue, 21 Mar 2017 19:45:36 +0000 (20:45 +0100)]
Added missing line continuation.

Fixes https://github.com/cc65/cc65/issues/408

7 years agoMerge pull request #407 from IrgendwerA8/sim65_fix
Oliver Schmidt [Tue, 21 Mar 2017 10:21:48 +0000 (11:21 +0100)]
Merge pull request #407 from IrgendwerA8/sim65_fix

Fixed addressing error for TSB/TSR and enabled tests again.

7 years agoFixed addressing error for TSB/TSR and enabled tests again. 407/head
IrgendwerA8 [Mon, 20 Mar 2017 20:53:07 +0000 (21:53 +0100)]
Fixed addressing error for TSB/TSR and enabled tests again.

7 years agoMerge pull request #402 from IrgendwerA8/runtime_improvements
Oliver Schmidt [Mon, 20 Mar 2017 10:34:06 +0000 (11:34 +0100)]
Merge pull request #402 from IrgendwerA8/runtime_improvements

few 6502 and some 65SC02 runtime optimizations

7 years agoAllow to control test Makefile output via QUIET (like libsrc).
Oliver Schmidt [Mon, 20 Mar 2017 10:22:04 +0000 (11:22 +0100)]
Allow to control test Makefile output via QUIET (like libsrc).

7 years agominor style changes 402/head
IrgendwerA8 [Sun, 19 Mar 2017 19:51:54 +0000 (20:51 +0100)]
minor style changes

7 years agoHide stdout of tests returning an exit code.
Oliver Schmidt [Sun, 19 Mar 2017 19:32:23 +0000 (20:32 +0100)]
Hide stdout of tests returning an exit code.

Now that we doubled our tests by running them for both 6502 and 65C02 Travis CI complains (again) about a too long build output. So let's reduce it by omitting the (useless) stdout of tests.

7 years agoRun test for the 65C02 code generator / runtime too.
Oliver Schmidt [Sun, 19 Mar 2017 19:07:19 +0000 (20:07 +0100)]
Run test for the 65C02 code generator / runtime too.

Now that sim65's 65C02 support is actually functional we can run test for the 65C02 support in the compiler and the runtime.

We learn the hard way this is a good idea as there are tests failing when built with optimizations for the 65C02:
- val/compare7
- val/compare8
- val/compare9
- val/compare10
- val/or1

7 years agoShortened test subdir names.
Oliver Schmidt [Sun, 19 Mar 2017 16:57:25 +0000 (17:57 +0100)]
Shortened test subdir names.

7 years agoCleaned up test Makefiles.
Oliver Schmidt [Sun, 19 Mar 2017 16:48:12 +0000 (17:48 +0100)]
Cleaned up test Makefiles.

7 years agoMerge pull request #405 from IrgendwerA8/65SC02_sim65_support
Oliver Schmidt [Sat, 18 Mar 2017 22:38:05 +0000 (23:38 +0100)]
Merge pull request #405 from IrgendwerA8/65SC02_sim65_support

Added 65SC02 support for simulator.

7 years agofixed curly brackets for single line scopes 405/head
IrgendwerA8 [Sat, 18 Mar 2017 21:52:13 +0000 (22:52 +0100)]
fixed curly brackets for single line scopes

7 years agoRemoved top blank line.
Oliver Schmidt [Sat, 18 Mar 2017 19:57:12 +0000 (20:57 +0100)]
Removed top blank line.

7 years agostyle changes
IrgendwerA8 [Sat, 18 Mar 2017 19:27:41 +0000 (20:27 +0100)]
style changes

7 years agoFixed bug in original sim65 implementation (reason for C&P error in last commit)
IrgendwerA8 [Sat, 18 Mar 2017 16:02:22 +0000 (17:02 +0100)]
Fixed bug in original sim65 implementation (reason for C&P error in last commit)

7 years agoadditional fix for scrambled code (sorry)
IrgendwerA8 [Sat, 18 Mar 2017 15:56:36 +0000 (16:56 +0100)]
additional fix for scrambled code (sorry)

7 years agofixed scrambled semicolon
IrgendwerA8 [Sat, 18 Mar 2017 15:54:00 +0000 (16:54 +0100)]
fixed scrambled semicolon

7 years agoAdded 65SC02 support for simulator.
IrgendwerA8 [Sat, 18 Mar 2017 15:33:08 +0000 (16:33 +0100)]
Added 65SC02 support for simulator.

7 years agoMerge pull request #404 from groessler/something_to_pull
Oliver Schmidt [Sat, 18 Mar 2017 11:51:46 +0000 (12:51 +0100)]
Merge pull request #404 from groessler/something_to_pull

Creativison changes.

7 years agoCreativison changes. 404/head
Christian Groessler [Fri, 17 Mar 2017 20:42:51 +0000 (21:42 +0100)]
Creativison changes.

This change includes some cleanups, removal of mainargs.s (game console
programs never have arguments), and a workaround for a problem I'm seeing.

The problem is that sometimes (in fact, more often than not) the clrscr()
call in testcode/lib/joy-test.c writes some garbage chars on the screen (most
often a "P"). Could be my hardware (I haven't seen it on MAME), but to
me the root cause is still unknown.

7 years agofew 6502 and some 65SC02 optimizations
IrgendwerA8 [Sun, 12 Mar 2017 22:21:43 +0000 (23:21 +0100)]
few 6502 and some 65SC02 optimizations

7 years agoMerge pull request #401 from greg-king5/void-size
Oliver Schmidt [Sun, 12 Mar 2017 19:06:34 +0000 (20:06 +0100)]
Merge pull request #401 from greg-king5/void-size

Make C's sizeof operator work with cc65's void variables.

7 years agoMade C's sizeof operator work with initialized void variables. 401/head
Greg King [Sun, 12 Mar 2017 16:55:31 +0000 (12:55 -0400)]
Made C's sizeof operator work with initialized void variables.

Added regression tests that check cc65's handling of void variables.

7 years agoMerge pull request #381 from pfusik/static-forward-decl
Oliver Schmidt [Sun, 12 Mar 2017 17:26:14 +0000 (18:26 +0100)]
Merge pull request #381 from pfusik/static-forward-decl

"static" forward declarations

7 years agoAdded .gitattributes to force LF line endings on commit.
Oliver Schmidt [Sun, 12 Mar 2017 17:13:18 +0000 (18:13 +0100)]
Added .gitattributes to force LF line endings on commit.

7 years agoMerge pull request #400 from greg-king5/yaccdbg-fix
Oliver Schmidt [Sun, 12 Mar 2017 15:10:54 +0000 (16:10 +0100)]
Merge pull request #400 from greg-king5/yaccdbg-fix

Fix a yaccdbg pointer test again.

7 years agoFixed a pointer test again -- but, it's better than in pull request #391. 400/head
Greg King [Sat, 11 Mar 2017 20:11:15 +0000 (15:11 -0500)]
Fixed a pointer test again -- but, it's better than in pull request #391.

This time, the expression compares the pointer directly, instead of comparing the pointer's target.  The new expression avoids an array underrun.

7 years agoMerge pull request #395 from greg-king5/no-Os
Oliver Schmidt [Fri, 10 Mar 2017 14:33:02 +0000 (15:33 +0100)]
Merge pull request #395 from greg-king5/no-Os

Remove a pointless cc65 command-line option from "samples/Makefile".

7 years agoRemoved a pointless cc65 command-line option from the samples makefile. 395/head
Greg King [Fri, 10 Mar 2017 13:47:48 +0000 (08:47 -0500)]
Removed a pointless cc65 command-line option from the samples makefile.

"-Oi --codesize 500" is the same as "-O --codesize 200 --codesize 500".  That first "--codesize" is replaced by the second one.  Don't set it twice.

7 years agoMerge pull request #399 from groessler/something_to_pull
Oliver Schmidt [Fri, 10 Mar 2017 10:31:50 +0000 (11:31 +0100)]
Merge pull request #399 from groessler/something_to_pull

Fix line endings (CRLF -> LF) on all affected files.

7 years agoFix line endings (CRLF -> LF) on all affected files. 399/head
Christian Groessler [Fri, 10 Mar 2017 10:21:14 +0000 (11:21 +0100)]
Fix line endings (CRLF -> LF) on all affected files.

7 years agoAdd regression tests for duplicate globals with different linkage. 381/head
Piotr Fusik [Thu, 9 Mar 2017 20:18:48 +0000 (21:18 +0100)]
Add regression tests for duplicate globals with different linkage.

7 years agoAdd regression tests for duplicate global/static variables detected by the compiler.
Piotr Fusik [Thu, 9 Mar 2017 19:49:20 +0000 (20:49 +0100)]
Add regression tests for duplicate global/static variables detected by the compiler.

7 years agoAdd regression test for #204.
Piotr Fusik [Thu, 9 Mar 2017 19:40:20 +0000 (20:40 +0100)]
Add regression test for #204.

7 years ago"static int n; int n;" is an error.
Piotr Fusik [Thu, 9 Mar 2017 18:14:31 +0000 (19:14 +0100)]
"static int n; int n;" is an error.

Fixes test/err/static-4.c regression.

7 years agoJust some minor style fix.
Oliver Schmidt [Thu, 9 Mar 2017 13:39:08 +0000 (14:39 +0100)]
Just some minor style fix.

7 years agoMerge pull request #397 from groessler/something_to_pull
Oliver Schmidt [Wed, 8 Mar 2017 12:38:24 +0000 (13:38 +0100)]
Merge pull request #397 from groessler/something_to_pull

fix creativision joystick driver

7 years agoImplement diagonal direction handling in creativision joystick driver. 397/head
Christian Groessler [Wed, 8 Mar 2017 12:19:53 +0000 (13:19 +0100)]
Implement diagonal direction handling in creativision joystick driver.

7 years agocreativision.inc: add symbolic names for joystick direction values
Christian Groessler [Wed, 8 Mar 2017 12:16:40 +0000 (13:16 +0100)]
creativision.inc: add symbolic names for joystick direction values

7 years agotemporarily disable optimizations altogether until a fine grain control 389/head
IrgendwerA8 [Tue, 7 Mar 2017 18:16:31 +0000 (19:16 +0100)]
temporarily disable optimizations altogether until a fine grain control
is implemented on Makefile level only disabling the compiler option -Os

7 years agoFixed CPU-flag usage which fails on build server?!
IrgendwerA8 [Sun, 5 Mar 2017 10:38:55 +0000 (11:38 +0100)]
Fixed CPU-flag usage which fails on build server?!

7 years agoAdded further optimizations and unit tests.
IrgendwerA8 [Sun, 5 Mar 2017 01:09:12 +0000 (02:09 +0100)]
Added further optimizations and unit tests.

7 years agoMerge pull request #394 from groessler/something_to_pull
Oliver Schmidt [Sat, 4 Mar 2017 18:08:33 +0000 (19:08 +0100)]
Merge pull request #394 from groessler/something_to_pull

creativision/crt0.s: enable display interrupts in display controller configuration

7 years agocreativision/crt0.s: enable display interrupts in display controller configuration 394/head
Christian Groessler [Sat, 4 Mar 2017 09:04:32 +0000 (10:04 +0100)]
creativision/crt0.s: enable display interrupts in display controller configuration

Otherwise the joystick zero page locations won't get updated.

7 years agoMerge pull request #391 from greg-king5/yaccdbg-fix
Oliver Schmidt [Thu, 2 Mar 2017 08:45:44 +0000 (09:45 +0100)]
Merge pull request #391 from greg-king5/yaccdbg-fix

Fix the "yaccdbg.c" compiler regression test.

7 years agoFixed a pointer-difference, comparison-with-zero expression. 391/head
Greg King [Wed, 1 Mar 2017 11:36:25 +0000 (06:36 -0500)]
Fixed a pointer-difference, comparison-with-zero expression.

Some GCC C compilers can't subtract higher pointers from lower pointers properly, when those pointers must be scaled (because they point to objects that are wider than a char). The scaling is done as unsigned which makes the difference positive instead of negative.

So, a broken expression was changed into a direct comparison between the two pointers.

7 years agoFixed a makefile: "yaccdbg.c" includes "yacc.c". So, yaccdbg must depend on both...
Greg King [Wed, 1 Mar 2017 11:29:53 +0000 (06:29 -0500)]
Fixed a makefile: "yaccdbg.c" includes "yacc.c". So, yaccdbg must depend on both of them.

7 years agoMerge pull request #390 from jedeoric/master
Oliver Schmidt [Tue, 28 Feb 2017 11:34:18 +0000 (12:34 +0100)]
Merge pull request #390 from jedeoric/master

Adding some conio's function

7 years agoChanged the location of unittest.h
IrgendwerA8 [Tue, 28 Feb 2017 07:05:11 +0000 (08:05 +0100)]
Changed the location of unittest.h

7 years agoFixed indentation
IrgendwerA8 [Sun, 26 Feb 2017 21:36:19 +0000 (22:36 +0100)]
Fixed indentation

7 years agoAdded "strrchr" optimizaion a matching unit test and tiny unit test framework. (Docum...
IrgendwerA8 [Sun, 26 Feb 2017 19:03:05 +0000 (20:03 +0100)]
Added "strrchr" optimizaion a matching unit test and tiny unit test framework. (Documentation for that will follow later)

7 years agoCleaning 390/head
jede [Sat, 25 Feb 2017 21:23:46 +0000 (22:23 +0100)]
Cleaning

7 years agoadding gotox.s gotoy.s wherex.s wherey.s
jede [Sat, 25 Feb 2017 21:20:17 +0000 (22:20 +0100)]
adding gotox.s gotoy.s wherex.s wherey.s

7 years agoadding clrscr.s
jede [Sat, 25 Feb 2017 21:10:13 +0000 (22:10 +0100)]
adding clrscr.s

7 years agoCorrecting typo
jede [Sat, 25 Feb 2017 20:32:42 +0000 (21:32 +0100)]
Correcting typo

7 years agoadding gotoxy.s
jede [Sat, 25 Feb 2017 20:32:06 +0000 (21:32 +0100)]
adding gotoxy.s

7 years agoOptimization of two string functions (size & speed).
IrgendwerA8 [Sat, 25 Feb 2017 19:19:34 +0000 (20:19 +0100)]
Optimization of two string functions (size & speed).

7 years agoMerge pull request #387 from groessler/something_to_pull
Oliver Schmidt [Fri, 24 Feb 2017 19:39:04 +0000 (20:39 +0100)]
Merge pull request #387 from groessler/something_to_pull

atari_antic.inc: use "or" instead of "plus" in the usage example

7 years agoMerge pull request #386 from IrgendwerA8/EasierDisplayLists
Oliver Schmidt [Fri, 24 Feb 2017 19:37:59 +0000 (20:37 +0100)]
Merge pull request #386 from IrgendwerA8/EasierDisplayLists

Improved display list instruction definition for more comfortable useā€¦

7 years agoatari_antic.inc: use "or" instead of "plus" in the usage example 387/head
Christian Groessler [Fri, 24 Feb 2017 18:06:32 +0000 (19:06 +0100)]
atari_antic.inc: use "or" instead of "plus" in the usage example

7 years agoUpdate displaylist.c 386/head
Irgendwer [Fri, 24 Feb 2017 10:21:56 +0000 (11:21 +0100)]
Update displaylist.c

7 years agoUpdate atari.sgml
Irgendwer [Fri, 24 Feb 2017 10:19:33 +0000 (11:19 +0100)]
Update atari.sgml

7 years agoImproved display list instruction definition for more comfortable use within void...
IrgendwerA8 [Thu, 23 Feb 2017 23:10:02 +0000 (00:10 +0100)]
Improved display list instruction definition for more comfortable use within void data definition.

7 years agoMerge pull request #385 from groessler/something_to_pull
Oliver Schmidt [Wed, 22 Feb 2017 13:28:32 +0000 (14:28 +0100)]
Merge pull request #385 from groessler/something_to_pull

README.md: PC-Engine is a console

7 years agoREADME.md: PC-Engine is a console 385/head
Christian Groessler [Wed, 22 Feb 2017 13:25:10 +0000 (14:25 +0100)]
README.md: PC-Engine is a console

7 years agoMerge pull request #383 from greg-king5/index-update
Oliver Schmidt [Wed, 15 Feb 2017 22:26:50 +0000 (23:26 +0100)]
Merge pull request #383 from greg-king5/index-update

Add the Telestrat doc. to the index.

7 years agoAdded "telestrat.html" to index. Sorted "gamate.html". 383/head
Greg King [Wed, 15 Feb 2017 21:09:21 +0000 (16:09 -0500)]
Added "telestrat.html" to index.  Sorted "gamate.html".

7 years agoRevert "Disallow global variable declarations with an initializer."
Piotr Fusik [Wed, 15 Feb 2017 17:51:27 +0000 (18:51 +0100)]
Revert "Disallow global variable declarations with an initializer."

This reverts commit 1f12a06f7cc2ae79a800fe3faed727513364091b.

7 years agoMerge pull request #374 from groessler/something_to_pull2
Oliver Schmidt [Wed, 15 Feb 2017 15:03:43 +0000 (16:03 +0100)]
Merge pull request #374 from groessler/something_to_pull2

creativision target

7 years agoremove old joystick code 374/head
Christian Groessler [Wed, 15 Feb 2017 14:53:57 +0000 (15:53 +0100)]
remove old joystick code

7 years agoFix joystick driver. Add interruptor support.
Christian Groessler [Wed, 15 Feb 2017 14:45:49 +0000 (15:45 +0100)]
Fix joystick driver. Add interruptor support.

Note that the joystick driver doesn't support combined movements (like
left/up or right/down). This should be fixed.

7 years agoMerge remote-tracking branch 'upstream/master' into something_to_pull2
Christian Groessler [Wed, 15 Feb 2017 14:43:34 +0000 (15:43 +0100)]
Merge remote-tracking branch 'upstream/master' into something_to_pull2

7 years agoAdd joystick driver to documentation.
Christian Groessler [Wed, 15 Feb 2017 14:37:06 +0000 (15:37 +0100)]
Add joystick driver to documentation.

7 years agoMerge pull request #382 from groessler/something_to_pull
Oliver Schmidt [Wed, 15 Feb 2017 08:50:29 +0000 (09:50 +0100)]
Merge pull request #382 from groessler/something_to_pull

Add testcode/lib/mouse-test.c. Rename samples/mousetest.c to mousedemo.c

7 years agofix indentation
Christian Groessler [Tue, 14 Feb 2017 22:52:44 +0000 (23:52 +0100)]
fix indentation

7 years agoAdd testcode/lib/mouse-test.c. Rename samples/mousetest.c to mousedemo.c. 382/head
Christian Groessler [Mon, 13 Feb 2017 21:43:26 +0000 (22:43 +0100)]
Add testcode/lib/mouse-test.c. Rename samples/mousetest.c to mousedemo.c.

mouse-test.c can be use to test all available mouse drivers for a given target.
Currently supported targets are Atari, C64, and C128.
To avoid confusion, rename samples/mousetest.c to mousedemo.c.

7 years agoMerge remote-tracking branch 'upstream/master' into something_to_pull2
Christian Groessler [Mon, 13 Feb 2017 20:38:38 +0000 (21:38 +0100)]
Merge remote-tracking branch 'upstream/master' into something_to_pull2

7 years agoIssue an error for duplicate global variables.
Piotr Fusik [Mon, 13 Feb 2017 20:10:21 +0000 (21:10 +0100)]
Issue an error for duplicate global variables.

Previously it was an assembler error.

7 years agoGlobal uninitialized variable is only a tentative definition.
Piotr Fusik [Mon, 13 Feb 2017 20:04:45 +0000 (21:04 +0100)]
Global uninitialized variable is only a tentative definition.

Closes #204

7 years agoDisallow global variable declarations with an initializer.
Piotr Fusik [Mon, 13 Feb 2017 18:41:05 +0000 (19:41 +0100)]
Disallow global variable declarations with an initializer.

E.g.
extern int i = 42;