61f3e43fb6Rewrote an outdated comment.
Kugel Fuhr
2025-07-17 20:52:33 +02:00
3cd1672ae5Added correct capabilities to W65C02 and 65CD02 cpus
Jimmy Dansbo
2025-07-17 19:17:03 +02:00
6d45a94127Do not output a warning about a missing "return" in a function if the function exit is unreachable.
Kugel Fuhr
2025-07-17 16:12:48 +02:00
ed54e9b168Added several flow control tests.
Kugel Fuhr
2025-07-17 16:00:59 +02:00
f13284d3f8Move the warning about unreachable code out of the Test() function and into the callers. This has the effect that the location for the warning is much more precise than before.
Kugel Fuhr
2025-07-17 15:41:17 +02:00
93b94d314aImplement a simple flow analysis. Tracks control flow of all statements with the exception of "switch". Outputs warnings for unreachable code. Tracks also "return" but doesn't currently make use of this information.
Kugel Fuhr
2025-07-16 20:15:32 +02:00
1c167b1ff1Use cl65 to generate the object file from the grc file to avoid having an intermediate .s file lying around that "make check" complains about.
Kugel Fuhr
2025-07-16 21:24:25 +02:00
3f3dc3d145Merge pull request #2803 from kugelfuhr/kugelfuhr/fix-1162
Bob Andrews
2025-07-16 00:56:36 +02:00
89704a6e37Merge pull request #2802 from kugelfuhr/kugelfuhr/modernize-ld65-diags
Bob Andrews
2025-07-16 00:55:12 +02:00
25e6b42ef3Merge pull request #2799 from kugelfuhr/kugelfuhr/fix-atari7800-cfg
Bob Andrews
2025-07-15 23:27:06 +02:00
61072ce3c7Merge pull request #2797 from kugelfuhr/kugelfuhr/fix-2796
Bob Andrews
2025-07-15 21:21:31 +02:00
14a6c66997Merge pull request #2795 from kugelfuhr/kugelfuhr/fix-sortcheck
Bob Andrews
2025-07-15 21:18:22 +02:00
a4c97c7ebcMerge pull request #2804 from mrdudz/geossample
Bob Andrews
2025-07-15 20:48:01 +02:00
3ea8cae0eeadd a geos resource file to the "ascii" sample, removes the linker warnings (and makes the program actually work in GEOS)
mrdudz
2025-07-15 17:56:45 +02:00
4cbdb55fbcMerge pull request #2798 from kugelfuhr/kugelfuhr/fix-2787
Christian Groessler
2025-07-14 20:32:37 +02:00
9ac02f3282Move constructors into the ONCE segment to fix linker warnings.
Kugel Fuhr
2025-07-14 19:52:07 +02:00
f86f602b9eAdd a description for --memory-model to the docs.
Kugel Fuhr
2025-07-14 16:45:42 +02:00
4120f35276Added tests for warnings or errors that now have notifications.
Kugel Fuhr
2025-07-14 12:59:52 +02:00
170ddc6e33Add a --warnings-as-errors option to cc65 for compatibility reasons.
Kugel Fuhr
2025-07-14 11:35:53 +02:00
d54844c76bMake the EXTZP segment optional for Atari 7800.
Kugel Fuhr
2025-07-14 07:03:53 +02:00
3dfde7baefFor the cpudetect tests, check the binary results for all instructions, not just for a few selected ones.
Kugel Fuhr
2025-07-13 21:43:34 +02:00
c7096ab6d7Fix an error that was introduced by me in a4a24280f2: Using a pipe causes a subshell to be generated so the "exit" statements will just leave the subshell. As a consequence, the sortedxxx.sh scripts produced output but no error exit code. Which in turn caused an error in #2778 to slip through undetected.
Kugel Fuhr
2025-07-13 17:56:31 +02:00
2e4c18770bAdd a --warnings-as-errors to cl65.
Kugel Fuhr
2025-07-10 21:41:53 +02:00
c2f17b6f6bWhen initialized data is found in a segment, print the first module where this data comes from to ease debugging.
Kugel Fuhr
2025-07-10 21:23:41 +02:00
2e3edf9b1bSome reformatting and improved diagnostics.
Kugel Fuhr
2025-07-10 11:39:59 +02:00
abb0adf546Update visual studio project files with added sources.
Kugel Fuhr
2025-07-08 09:45:25 +02:00
97ef430053Restore description for --debug which was lost.
Kugel Fuhr
2025-07-08 09:35:42 +02:00
7e97e99baeDo also color quoted text.
Kugel Fuhr
2025-07-08 08:23:32 +02:00
8c654193f7For the assembler tests, switch off UTF-8 output so we have always the identical diagnostics indepdendent of the console properties.
Kugel Fuhr
2025-07-08 07:31:55 +02:00
8d7c87f753Fix problem with UTF-8 output when switching the code page under windows fails.
Kugel Fuhr
2025-07-08 07:31:24 +02:00
c466faf484Use UTF-8 for diagnostic output if it is available. Added a command line switch --no-utf8 to disable the use of UTF-8 characters.
Kugel Fuhr
2025-07-07 21:49:45 +02:00
ffcff0fa61Much improved error messages for ca65. For most errors it will now say what was expected and what was found instead. Also improved error recovery in a few places.
Kugel Fuhr
2025-07-04 17:11:34 +02:00
4afbd1104dMerge pull request #2777 from kugelfuhr/kugelfuhr/ca65-errors
Bob Andrews
2025-07-10 17:05:32 +02:00
4a53a891e8Merge pull request #2778 from colinleroy/optimise-ldaxi
Bob Andrews
2025-07-10 17:03:28 +02:00
9971d9fac0Merge pull request #2776 from colinleroy/optimize-incdecsp-further
Bob Andrews
2025-07-10 17:02:32 +02:00
7d7cfde818Merge pull request #2786 from mrdudz/fixmakefiles
Bob Andrews
2025-07-10 00:01:12 +02:00
9ff71e431bMerge branch 'master' into fixmakefiles
Bob Andrews
2025-07-09 23:41:26 +02:00
ac6b1326e9Merge pull request #2784 from kugelfuhr/kugelfuhr/fix-cleanup
Bob Andrews
2025-07-09 23:41:01 +02:00
472525eecdredirect errors into file so we can see it if needed
mrdudz
2025-07-09 23:10:43 +02:00
d82a1f9fa0Apply changes by @mrduz. Fixes an error in the makefile and adjusts the mostlyclean target accordingly.
Kugel Fuhr
2025-07-09 13:35:27 +02:00
50220800aaMerge pull request #2771 from colinleroy/much-smaller-strndup
Bob Andrews
2025-07-09 00:55:04 +02:00