1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-19 09:28:25 +00:00
Commit Graph

120 Commits

Author SHA1 Message Date
Oliver Schmidt 753b48647f Increased consistency.
The test program works as-is only if the timezone isn't set (to something different than UTC). However, using localtime() instead of gmtime() makes it at least consistent in that the original time (given to mktime()) is identical to the time retrieved.
2018-08-02 15:45:57 +02:00
Oliver Schmidt b04028b5d8 Added test for mktime() and gmtime().
A recent regression makes gmtime()/localtime() fail. So it's obviously desirable to have a test for that code.
2018-07-24 03:26:40 +02:00
Greg King 362b6afacf Made a C union declaration know the sizes of anonymous struct/union members when it determines its size.
The bug was located, and the fix was written, by Francesco.
2018-05-13 18:54:45 -04:00
greg-king5 ca31e3af1e Fixed a bug that didn't preserve the accumulator's value when a simple 16-bit fetch-and-store is optimized. (#637)
Fix a 16-bit fetch-and-store cc65 optimizer bug.
2018-05-12 13:46:16 -04:00
Oliver Schmidt f44406c46f Merge pull request #446 from clbr/lz4
Add LZ4 decompression support
2017-06-10 23:23:12 +02:00
greg-king5 06c3cd8307 Added a missing -O configuration. 2017-06-07 10:31:09 -04:00
greg-king5 e24bb372d0 Added a missing -O configuration. 2017-06-07 10:26:34 -04:00
greg-king5 a397a8c1a1 Added missing -O configuration. 2017-06-07 10:20:20 -04:00
Lauri Kasanen e75a59d7a8 Add LZ4 decompression support 2017-06-06 18:48:25 +03:00
Lauri Kasanen 05b73276c2 Update test description 2017-05-20 09:53:30 +03:00
Lauri Kasanen 80e6afd335 Add two new trampoline test cases 2017-05-19 14:34:10 +03:00
Oliver Schmidt 11b01b908d Merge pull request #424 from clbr/trampoline
Trampoline support
2017-05-18 16:29:34 +02:00
Lauri Kasanen 219b239a34 Adjustments in response to latest comments 2017-05-18 17:14:26 +03:00
Lauri Kasanen 4c05c46cd1 Remove RAM-trampoline array support 2017-05-18 16:11:39 +03:00
Lauri Kasanen ca41af41c2 Rename pragma trampoline to wrapped-call, value to identifier 2017-05-16 20:10:24 +03:00
Lauri Kasanen 077b14ccfa test/val/postincdec: Test for the final val value 2017-05-08 10:19:26 +03:00
Lauri Kasanen 7adcde1707 Add explicit postinc/dec testcase 2017-05-07 20:35:49 +03:00
Lauri Kasanen 9c86c03a96 Add test case 2017-05-02 20:43:41 +03:00
Greg King 1aab287189 Fixed the handling of "while (0) {}".
It's a corner case; but, conditional macroes might create it -- better safe than sorry.
2017-04-07 09:26:58 -04:00
Oliver Schmidt e806515541 Removed workaround. 2017-04-04 15:53:14 +02:00
Oliver Schmidt 93193727be Removed workaround. 2017-04-04 15:52:37 +02:00
Oliver Schmidt cd27fef6a8 Removed workaround. 2017-04-04 15:52:01 +02:00
Oliver Schmidt 3789174162 Removed workaround. 2017-04-04 15:51:00 +02:00
Oliver Schmidt 14268510f5 Removed workaround. 2017-04-04 15:45:24 +02:00
Oliver Schmidt 233dd5062a Merge pull request #389 from IrgendwerA8/stringimprovements
Optimization of string functions (size & speed).
2017-04-04 15:39:37 +02:00
Oliver Schmidt 5dbacb538e Merge pull request #411 from pfusik/bss-name-regression
Fix regression of #pragma bss-name
2017-03-22 13:44:48 +01:00
Piotr Fusik 8e35a82c91 Fix regression of #pragma bss-name
Closes #409
2017-03-21 22:35:25 +01:00
Oliver Schmidt 5b3611265b 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.
2017-03-21 20:54:55 +01:00
IrgendwerA8 cc82cd9992 Fixed addressing error for TSB/TSR and enabled tests again. 2017-03-20 21:53:07 +01:00
Oliver Schmidt 0851e3d694 Allow to control test Makefile output via QUIET (like libsrc). 2017-03-20 11:22:04 +01:00
Oliver Schmidt 50174d9860 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.
2017-03-19 20:32:23 +01:00
Oliver Schmidt 4a6bca0b56 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
2017-03-19 20:07:19 +01:00
Oliver Schmidt ff9b77b6cc Shortened test subdir names. 2017-03-19 17:57:25 +01:00
Oliver Schmidt 66634ef683 Cleaned up test Makefiles. 2017-03-19 17:48:44 +01:00
Greg King 750a527100 Made C's sizeof operator work with initialized void variables.
Added regression tests that check cc65's handling of void variables.
2017-03-12 14:41:32 -04:00
Oliver Schmidt a780df1fe1 Merge pull request #381 from pfusik/static-forward-decl
"static" forward declarations
2017-03-12 18:26:14 +01:00
Greg King 73261ea48f 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.
2017-03-11 15:11:15 -05:00
Christian Groessler 8a81f9c0c8 Fix line endings (CRLF -> LF) on all affected files. 2017-03-10 11:21:14 +01:00
Piotr Fusik 05d1b8072b Add regression tests for duplicate globals with different linkage. 2017-03-09 21:18:48 +01:00
Piotr Fusik 6c3873316b Add regression tests for duplicate global/static variables detected by the compiler. 2017-03-09 20:49:42 +01:00
Piotr Fusik ce0cf85386 Add regression test for #204. 2017-03-09 20:40:20 +01:00
IrgendwerA8 371e8efb79 temporarily disable optimizations altogether until a fine grain control
is implemented on Makefile level only disabling the compiler option -Os
2017-03-07 19:16:31 +01:00
IrgendwerA8 81115aa826 Added further optimizations and unit tests. 2017-03-05 02:09:12 +01:00
Greg King 8f0ea644dd 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.
2017-03-01 06:52:43 -05:00
Greg King 99f3c7d01d Fixed a makefile: "yaccdbg.c" includes "yacc.c". So, yaccdbg must depend on both of them. 2017-03-01 06:29:53 -05:00
Oliver Schmidt 79e1b25c6c Removed DEL as suggested by Greg. 2016-10-16 13:47:31 +02:00
Sven Oliver Moll 476260a6fa 4510 support for da65: fixed docs and Makefile for testcase. 2016-09-27 12:02:57 +02:00
Sven Oliver Moll d0ed84c2d0 da65: adding support for 4510 cpu of c65 2016-09-20 17:37:10 +02:00
Sven Oliver Moll bcdd190020 removed 'make clean' invoked from test/Makefile for test/assembler/Makefile, as all artifacts are now created in testwrk and will be cleaned up out of directory 2016-09-13 11:54:56 +02:00
Sven Oliver Moll 95a2f4b9dd re-adding WORKDIR to Makefile
- added workaround to remove *.o files after assembling
- also removed now obsolete clean target
2016-09-13 11:28:11 +02:00