Commit Graph

  • 1e7a9e44af Update comment to reflect addition of integer boundary constants Tevo 2020-09-06 21:19:01 -03:00
  • 23a8b2c303 Define integer size macros for lacking systems Tevo 2020-09-03 00:06:31 -03:00
  • 6bb2d1d5d1 Fixed a comment on struct/union types in DoCompare(). acqn 2020-09-07 04:19:27 +08:00
  • 1cde952cf5 Fixed comparing an enum type with a non-enum type in DoCompare(). acqn 2020-09-07 04:19:27 +08:00
  • 6e0fb630d7 Fixed check for processor flags usage in case of PHP. acqn 2020-09-05 21:31:22 +08:00
  • e2f950b15e Avoided referencing string literals with sizeof so that they are not output if unused elsewhere. acqn 2020-08-31 17:45:36 +08:00
  • 903e84c24c Std-functions are no longer inlined if they are unevaluated. acqn 2020-08-31 17:45:25 +08:00
  • df07e23f2c Fixed bnegeax funcinfo on register usage. acqn 2020-09-05 11:15:17 +08:00
  • 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
  • 8b580e1191 Disabled struct/union fields of 'void' type. acqn 2020-08-30 02:31:09 +08:00
  • f1161daee9 Recursively checking for incomplete/unknown-sized types. acqn 2020-08-30 02:30:43 +08:00
  • 8541f18340 Improved diagnostic info on assignment to void types. acqn 2020-08-26 00:12:23 +08:00
  • abcc2a8f1a Disallowed void arrays of elements of variant sizes. acqn 2020-08-20 07:46:08 +08:00
  • d87846e1e1 Improved comments according to PR reviews. acqn 2020-08-30 22:12:30 +08:00
  • 60c59f59a3 Renamed StaticConstExpr() and StaticConstAbsIntExpr() with clearer comments. acqn 2020-08-30 00:26:52 +08:00
  • 492ee7fc45 Improved test/ref/pr1220.c. acqn 2020-08-30 03:10:24 +08:00
  • df755df44d Warning about ESU types declared inside parameter list as they are invisble outside. acqn 2020-08-15 06:27:11 +08:00
  • 33a75e0a73 Optimized parameter list checking. Fixed function type comparison between ANSI and K&R styles. acqn 2020-08-15 06:27:11 +08:00
  • 0a96ffc878 Fixed function parameter checking. Fixed function return type checking. acqn 2020-08-15 06:27:11 +08:00
  • 4e61ae5b36 Fixed function parameter type conversion. acqn 2020-08-15 06:27:11 +08:00
  • 632da3f4ee Fixed tracking and checking flexible array members. acqn 2020-08-15 06:27:11 +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
  • 41dbd31b02 fix makefile, remove the unneeded .cfg again. oops :) mrdudz 2020-08-27 00:04:34 +02:00
  • c1a514c0f8 added test related to issue #1201 mrdudz 2020-08-26 23:20:28 +02:00
  • 39a3de3119 made geoslib testcode compile again, added the required linker config and a Makefile mrdudz 2020-08-26 22:47:47 +02:00
  • bf5384a712 some more refactoring of Makefiles, preparing for CI mrdudz 2020-08-26 22:46:45 +02:00
  • bb9c203222 Fixed integer promotion of unary operations. acqn 2020-08-15 07:53:28 +08:00
  • 8d225c32b1 Fixed checks on assignment to incomplete types. acqn 2020-08-22 05:57:12 +08:00
  • 43cb092a68 Fixed CHECK failures on certain usage of incomplete enums. acqn 2020-08-22 05:56:33 +08:00
  • 1957dc7a5c Disallowed arrays of incomplete types. Fixed diagnostics on incomplete local arrays. acqn 2020-08-15 06:27:11 +08:00
  • f5b1b69376 Forbid struct/union fields of incomplete types. acqn 2020-08-15 06:27:11 +08:00
  • bee11ec11b Merge branch 'master' of https://github.com/cc65/cc65 mrdudz 2020-08-26 21:28:32 +02:00
  • 8649859bc5 added/updated Makefiles, preparing for CI (later) mrdudz 2020-08-26 21:28:19 +02:00
  • b0d3b19a6a The bug1209 test fails at link stage. Oliver Schmidt 2020-08-26 20:58:44 +02:00
  • ad1579140b Merge branch 'master' of https://github.com/cc65/cc65 mrdudz 2020-08-26 20:54:13 +02:00
  • c6adf4364f make atari testcode compile again, added makefile mrdudz 2020-08-26 20:53:45 +02:00
  • c658acbf85 Avoid cl65 in tests. Oliver Schmidt 2020-08-26 20:37:28 +02:00
  • 4c912a0fbe make gamate testcode compile again mrdudz 2020-08-26 15:59:52 +02:00
  • 83cc115112 re-add define for pad bits hw address, which was accidently removed in some refactor commit mrdudz 2020-08-26 15:51:20 +02:00
  • e5a1755133 added some ifdefs to make testcode compile for apple2 and atari targets mrdudz 2020-08-26 15:08:17 +02:00
  • d21fbed1bb Merge branch 'master' of https://github.com/cc65/cc65 mrdudz 2020-08-26 13:37:07 +02:00
  • c216b3534b fix compilation, fixes issue #1184 mrdudz 2020-08-26 13:36:43 +02:00
  • 4cd19711f2 Merge pull request #1219 from acqn/Test Bob Andrews 2020-08-26 11:09:11 +02:00
  • b6a4715a38 Added test/ref/pr1220 for testing constant AND/OR code generation. acqn 2020-08-26 08:45:01 +08:00
  • d68925c6a8 Bug #1113 was fixed long ago. acqn 2020-08-25 22:34:25 +08:00
  • 344aea0669 Add additional test cases for #1209 Jesse Rosenstock 2020-08-23 21:50:54 +02:00
  • d38e5858f0 Add tests for #1211 Jesse Rosenstock 2020-08-24 10:01:58 +02:00
  • 4b7cd491e3 Move #1209 test from err/ to misc/ Jesse Rosenstock 2020-08-24 16:33:50 +02:00
  • f289ea6c14 Avoided generating unnecessary true-case labels in logic AND/OR. acqn 2020-08-22 11:10:17 +08: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
  • 0486d28abc Fixed Issue #327. acqn 2020-08-15 07:52:58 +08: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
  • 794adcc512 remove unneeded rule mrdudz 2020-08-19 22:33:10 +02: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
  • 55cebc7b9e Move bit-field adjustment to codegen.c Jesse Rosenstock 2020-08-17 22:29:52 +02:00