1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-09 16:29:09 +00:00
Commit Graph

317 Commits

Author SHA1 Message Date
mrdudz
d6dd1a1e21 Merge branch 'master' into fptest 2023-10-26 16:57:59 +02:00
Bob Andrews
316ae886d7
Merge pull request #2242 from acqn/SwitchFix
[cc65] Fixed type promotion of switch case values
2023-10-26 16:56:01 +02:00
mrdudz
1db3d87ac8 Merge branch 'master' into fptest 2023-10-26 16:51:33 +02:00
acqn
df392fc104 Fixed type promotion of switch case values. 2023-10-25 22:38:21 +08:00
acqn
f321bb16e5 Fixed potential bugs with boolean branch optimizers when more than one jeq/jne follows. 2023-10-21 23:56:07 +08:00
Bob Andrews
3e60268243
add newline at the end 2023-10-17 20:39:15 +02:00
acqn
8111946731 Fixed array subscript with a bit-field with patch by kugelfuhr. 2023-10-15 15:53:03 +08:00
mrdudz
db7a38ea17 Merge branch 'master' into fptest 2023-10-14 18:44:19 +02:00
acqn
25832ef5fc Fixed timing of #pragma charmap.
Now it is immediately applied and affects almost all characters and string literals after it.
Exceptions:
- String literals as the message of a static assertion or inline assembler code (only the required one, not any optional formatted arguments) in an asm() expression are not translated with either #pragma charmap or target presets.
- String literals used for preprocessor directives or as the result of stringized macro arguments are never translated.
2023-10-13 16:32:06 +08:00
acqn
20c3e994c6 Fixed compiling with pragmas in the middle of declarations or statements. 2023-10-04 21:22:04 +08:00
mrdudz
b7286ade4b checkstyle, ihre rezeptfreie Online Bestellung 2023-09-04 01:12:54 +02:00
mrdudz
d771e86cdf wip deactivated hack and related tests 2023-09-04 01:02:53 +02:00
mrdudz
c48cf428e9 fix division and multiplication for intvar vs floatvar 2023-09-02 06:53:33 +02:00
mrdudz
f0eadc69e1 fix a regression that sneaked in, all subtractions should work again 2023-09-02 06:44:53 +02:00
mrdudz
341286bf16 fix float var - int const, fix int var - float var 2023-09-02 02:42:34 +02:00
mrdudz
82346b24db fix int var - float const, fix float var - int var 2023-09-02 01:56:18 +02:00
mrdudz
a8e9783f1c fix int const - float var 2023-09-02 01:12:00 +02:00
mrdudz
fee2b834b0 fix float const - int var 2023-09-02 00:08:21 +02:00
mrdudz
9481f7a498 fix const int + float 2023-09-01 23:43:02 +02:00
mrdudz
6f004dadf7 fix float const -/ int const 2023-09-01 22:15:52 +02:00
mrdudz
86d0859d8d evil spaces 2023-08-31 05:20:34 +02:00
mrdudz
abe65d524d make float X= const work, and a test for that 2023-08-31 05:04:02 +02:00
mrdudz
ab238c1045 some fixes for X=, related tests 2023-08-31 00:44:03 +02:00
mrdudz
681fe5d562 update/add a bunch of tests. should be all for "basic" and "cmp" now 2023-08-30 02:12:43 +02:00
mrdudz
771155ff02 add tests for float vs int var 2023-08-29 14:50:26 +02:00
mrdudz
bb24862401 cleanup 2023-08-29 12:07:19 +02:00
mrdudz
dd5f12b352 fix int variable + float constant, fix float variable + int constant, add tests 2023-08-29 12:00:17 +02:00
mrdudz
3164917f46 cleanup 2023-08-29 03:15:54 +02:00
mrdudz
2e220e709e some fixes relalated to comparing with integer constants, related tests. some fixes related to adding integers, related tests 2023-08-29 01:11:59 +02:00
mrdudz
f587e6eaf9 add code for fnegeax, and tests for it 2023-08-27 05:15:04 +02:00
mrdudz
fa347d416a move test to todo again, and patch the Makefile - it works in *one* particular config (only) 2023-08-26 22:34:25 +02:00
mrdudz
0c69e4e290 move test to test/val ... for some reason it is working now in this branch :) 2023-08-26 21:48:35 +02:00
mrdudz
fcad1067ad fix some fallout 2023-08-25 23:04:13 +02:00
mrdudz
0f7c299abc Merge branch 'master' into fptest
# Conflicts:
#	src/cc65/expr.c
#	test/todo/Makefile
2023-07-08 15:56:45 +02:00
mrdudz
c8aa9cc703 add struct assign check related to #2079 2023-05-29 17:20:09 +02:00
Bob Andrews
9ff7b88192
Merge pull request #2113 from polluks2/patch-9
Unified NULL #2110
2023-05-19 16:06:46 +02:00
polluks2
8ff008722b
Fixed test
Don't define NULL yourself. QED
2023-05-19 02:49:49 +02:00
Bob Andrews
70bf4d492b
Merge pull request #2105 from bbbradsmith/sim65-64bit-cycle-count
Sim65 64bit cycle count
2023-05-16 15:53:23 +02:00
bbbradsmith
5a30d746b4 extern/static conflict test: remove warning as errors to match the new expected cases 2023-05-11 20:15:27 -04:00
bbbradsmith
aad64063c9 makefiles no longer need comment about sim65 64-bit support 2023-05-07 16:33:07 -04:00
Bob Andrews
9c27084fa5
Merge pull request #2084 from bbbradsmith/numerical_constant_errors-int
Numerical constant errors and improvements (integer)
2023-05-06 21:36:59 +02:00
bbbradsmith
84f0ab322d sim65: cycles does not increment 1 at a time, so some small overhead is needed in range check 2023-05-06 13:54:28 -04:00
bbbradsmith
f2e7609046 sim65 cycles 32-bit range fix
long is 64-bit on some platforms, making this inconsistent, added range check to catch overflow.
reduced tests requesting 5 billion cycles to 2^32-1 so they can fun on 32-bit long sim65.
2023-05-05 21:45:57 -04:00
bbbradsmith
e3cb8dfb9b Numerical constant scanner requires explicitly 32-bit sized type for cross-platform consistency 2023-05-03 19:27:37 -04:00
Bob Andrews
45bdeb62ad
Merge pull request #2070 from bbbradsmith/fix2060
RHS primary integer promotion must happen after loading the primary, not before
2023-05-03 23:57:19 +02:00
Bob Andrews
ae7a1416fe
Revert "Revert "Forbid 3-byte struct pass/return by value, document struct value pass/return"" 2023-05-03 20:02:12 +02:00
Brad Smith
2c47ea45af
bug895.c compliant token pasting syntax to remove warnings
Gets rid of some unnecessary warning spam in the test log of lines like this:
```
bug895.c:95: Warning: Pasting formed "unsigned_long_14(", an invalid preprocessing token
```
2023-05-02 18:18:10 -04:00
bbbradsmith
1c26b1cf1b RHS primary integer promotion must happen after loading the primary, not before. See: #2060 2023-05-02 14:42:00 -04:00
mrdudz
c92a8f863a Merge branch 'master' into fptest 2023-03-04 13:48:31 +01:00
bbbradsmith
78263cd24b Fix OptStackOps label migration case for toscmpbool, add test case 2023-02-17 23:48:32 -05:00