f849de6769
Object addresses as non-NULL for comparison with NULL.
acqn
2020-08-20 07:52:22 +08:00
8e0b2f0833
Object addresses as non-NULL in boolean context.
acqn
2020-08-20 07:52:20 +08:00
bc5570b708
Fixed logical-NOT in constant context.
acqn
2020-08-20 07:52:17 +08:00
44b719d957
Change line endings from CRLF to LF
Jesse Rosenstock
2020-09-03 09:16:51 +02:00
676b14429d
Better opt chance for certain optimization steps e.g. OptPtrStore1 etc.
acqn
2020-08-31 06:16:36 +08:00
29d1999947
Rearranged the OptFunc's in alphabetic order.
acqn
2020-08-31 06:16:32 +08:00
761d00b7dc
Ignore running removed old optimization steps. Neither list them in help info.
acqn
2020-08-31 06:16:28 +08:00
ae340703f2
OptDupLoads shouldn't silently do optimizations.
acqn
2020-08-31 01:57:01 +08:00
f45d2515eb
Fixed OptPush1 in case later code would rely on that pushax zeroes register Y.
acqn
2020-08-31 01:56:57 +08:00
2a3d996077
Improved test case for PR #1220.
acqn
2020-08-31 20:41:36 +08:00
fb6bc275bc
Fixed evaluation flags propagation to subexpressions in assignments and function calls.
acqn
2020-08-31 20:33:58 +08:00
2379504449
Fixed AND/OR in certain cases where the 'E_NEED_TEST' flag set for usage only in subexpressions should be cleared.
acqn
2020-08-31 20:31:54 +08:00
28de3423eb
Merged some switch cases in code generation subroutines.
acqn
2020-08-23 01:35:13 +08:00
6b64b43395
Made local static data use a separated label pool from the code label pool.
acqn
2020-08-23 01:35:11 +08:00
9398e1cd33
Use a dedicated label pool for literals.
acqn
2020-08-23 01:35:06 +08:00
bee559d5f4
Merge pull request #1220 from acqn/StaticConst
Oliver Schmidt
2020-08-31 08:59:25 +02:00
74def4608a
The 'E_NEED_TEST' flag shouldn't be overwritten when loading the expression result.
acqn
2020-08-31 02:30:12 +08:00
c0a873e0c8
Reduced exess errors on wrong initializations with curly braces.
acqn
2020-08-27 08:02:05 +08:00
f54e01781b
Tiny optimizations for multiplication.
IrgendwerA8
2020-08-29 16:21:45 +02:00
5158ee2092
preliminary makefile to build all programs in the testcode directory
mrdudz
2020-08-27 14:50:00 +02:00
5e2d2a54f6
added makefile for the GEOS samples. geosconio.c and rmvprot.c do not compile right now, someone with more GEOS knowledge should look at them
mrdudz
2020-08-27 14:25:33 +02:00
4008ab556c
added a Makefile
mrdudz
2020-08-27 01:34:18 +02:00
f34644186f
build a bogus "ROM image" that can be disassembled, fix the makefile, remove generated files
mrdudz
2020-08-27 01:19:33 +02:00
504aee3835
Merge branch 'master' into StaticConst
acqn
2020-08-27 06:27:23 +08:00
7a453d1f90
add a "disk" target to build the disk images as suggested by Oliver
mrdudz
2020-08-27 00:08:22 +02:00
85ea06687b
Fixed logical AND and logical OR.
acqn
2020-08-20 07:52:15 +08:00
725511131a
Fixed constant expression checks with no-code requirement. Used return-by-value initialization for ExprDesc.
acqn
2020-08-20 07:52:11 +08:00
1abb9da2b2
Moved bug250.c to test/val as it is fixed.
acqn
2020-08-26 09:40:32 +08:00
3ea3887c77
Fixed warnings on const comparison. Warnings on expressions with no effects. Fixed const ternary. Fixed ternary with struct/union types as the true/false-branch expressions.
acqn
2020-08-20 07:52:06 +08:00
b15ab348ba
Moved bug250.c from test/misc as it is to be fixed.
acqn
2020-08-26 08:23:05 +08:00
17bbba7327
Added integer boolean type string. No longer set the "expression tested" flag with constant results in comparison.
acqn
2020-08-20 07:52:03 +08:00
c3a6b39945
Made struct assignment less hackish.
acqn
2020-08-20 07:56:11 +08:00
d1995fc81a
Fixed rvalue-ness of cast results.
acqn
2020-08-15 06:27:11 +08:00
63fa9a5a42
Fixed usage of "lvalue-cast" in _scanf implementation.
acqn
2020-08-22 01:30:52 +08:00
911a79796d
Fixed checks and diagnostics on type-casting.
acqn
2020-08-15 06:27:11 +08:00
23621f3299
Add test case for #1209
Jesse Rosenstock
2020-08-22 10:48:25 +02:00
0536f4f9bd
Minor fixes on constant expression checking and comments.
acqn
2020-08-20 07:52:27 +08:00
63256fd15d
Changed negation of signed long stored in unsigned long to unsigned subtraction.
acqn
2020-08-20 22:47:08 +08:00
f59c2a08d9
Added support for changing multiplications with certain negative multipliers into bit-shifts. Only enable certain kinds of signed mul replacements with shift according to the code size factor settings.
acqn
2020-07-02 10:30:02 +08:00
ea7336591c
Removed special-casing code for scaling up. Now it uses the normal multiplying code.
acqn
2020-07-02 10:30:02 +08:00
75dc234988
Guarded the static_assert macro with a C standards test.
Greg King
2020-08-21 15:15:19 -04:00
e6b8f4d715
move/fix bug264.c as suggested in issue #1122
mrdudz
2020-08-19 22:25:18 +02:00
1a92368aed
rename bdiff.c to isequal.c, make it handle different line-endings as equal
mrdudz
2020-08-19 14:50:12 +02:00
85e8a6cb9f
Clarify docs that bss is zero-initialized
Jesse Rosenstock
2020-08-19 09:29:30 +02:00
9fcde120aa
Made function signatures in asm output use the parameter lists from original definitions instead of the composites.
acqn
2020-08-18 20:43:19 +08:00
36dd82f0e6
Added g_branch() to cc65's code generator.
Greg King
2020-08-18 19:07:29 -04:00
0690a12ad2
change "the cc65 authors" to "The cc65 Authors" as per jmrs request
mrdudz
2020-08-18 22:41:42 +02:00
0c22d5011e
added test related to pr #1190
mrdudz
2020-08-18 17:58:29 +02:00
ab89c168de
replace "Copyright 2020 Google LLC" by "Copyright 2020 the cc65 authors"
mrdudz
2020-08-18 17:47:35 +02:00
ff535b8e1a
Treat signed int bit-fields as signed
Jesse Rosenstock
2020-07-19 22:59:44 +02:00