Commit Graph

  • 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
  • 56b659c0be Made char type a distinct type. acqn 2020-08-15 06:27:11 +08:00
  • 87889df9e9 Fixed type checking in relation operations. acqn 2020-08-15 06:27:11 +08:00
  • 2663561c62 added test related to pr #1135 mrdudz 2020-08-18 00:41:35 +02:00
  • 6d8860b9de added test related to issue #1145 mrdudz 2020-08-18 00:41:07 +02:00
  • cf41fccc0a added test related to issue #1143 mrdudz 2020-08-18 00:40:29 +02:00
  • f206833a20 Alternative fix for Issue #1167. acqn 2020-08-15 09:10:17 +08:00
  • 0afa1a9a95 Fixed function signatures in asm output. Improved full type name production. acqn 2020-08-15 01:50:04 +08:00
  • ebae994dc9 Fixed CHECK failure when calling functions defined with repeated parameter names. Clarified the terms "parameter" vs "argument" in FunctionParamList(). acqn 2020-08-15 22:59:26 +08:00
  • 531de44c95 Merge pull request #1193 from jmr/bitfield-union-bug Bob Andrews 2020-08-17 14:33:51 +02:00
  • 6db93d58cf Add test of union of bit-field from mailing list Jesse Rosenstock 2020-08-17 09:22:15 +02:00
  • 15f28c3a8c Fixed getting the basic raw type names. acqn 2020-08-13 08:24:40 +08:00
  • 11cd3e5cbd Utility for checking general datatype categories, incomplete ESU types and arrays of unknown sizes. acqn 2020-08-12 21:50:34 +08:00
  • 7e61b11f23 Add _Static_assert docs to cc65 extensions Jesse Rosenstock 2020-08-15 21:22:31 +02:00
  • 1cf9404c19 Support C2X _Static_assert(expr) syntax Jesse Rosenstock 2020-08-15 21:05:51 +02:00
  • c4698dfd07 Use C89 semantics for integer conversions Jesse Rosenstock 2020-08-14 14:54:10 +02:00
  • 8197e3c7cd make it actually compile again :) mrdudz 2020-08-14 21:07:39 +02:00
  • f0e4053a0d added test related to issue #1178 mrdudz 2020-08-14 19:58:58 +02:00
  • 1d28e8e3de Improved test case for Issue #191. acqn 2020-08-13 00:00:32 +08:00
  • b19bb14348 Fixed checking conflitcing declarations with external vs other linkage. acqn 2020-08-12 21:35:50 +08:00
  • 13ed557b92 Fixed compatibility checking of function declarations by using the composite types of them. acqn 2020-08-12 21:35:47 +08:00
  • 44d52935da Utility for getting the composite types of functions. acqn 2020-08-12 21:35:44 +08:00
  • 8a417ff039 Improved ESU declaration failure handling. acqn 2020-08-12 21:33:46 +08:00
  • dc83eb15af added test related to issue #1181 mrdudz 2020-08-14 16:12:17 +02:00
  • 83452ae6b3 Merge pull request #1182 from acqn/StructPtrField Bob Andrews 2020-08-14 14:13:39 +02:00
  • 0dfe9ff5fe Fixed testing 'struct->field'. acqn 2020-08-14 08:32:22 +08:00
  • 0fa18886c0 Fixed copying structs/unions > 4 bytes. acqn 2020-08-13 09:27:53 +08:00
  • 03b37cf712 Fixed type comparisons of typedefs and arrays. acqn 2020-08-08 06:46:55 +08:00
  • eb4464e828 Fixed type comparisons of ESU types with stricter rules. acqn 2020-08-03 01:38:54 +08:00
  • 8b8561161c Moved #1098 bug tests from test/misc to test/err as they are fixed now. acqn 2020-08-07 19:35:37 +08:00
  • fe44fe963f Disallowed empty enums. acqn 2020-08-07 17:40:40 +08:00
  • 97065faf1a Disallowed struct/union types of 0 size as cc65 is not ready to support them. acqn 2020-08-05 00:19:28 +08:00
  • 4dfc1a5ded Using a dedicated SC_FICTITIOUS flag in case of parsing errors. acqn 2020-08-10 09:32:47 +08:00
  • bde5be6793 Improved error message on initializing extern variables inside functions. acqn 2020-08-09 06:25:36 +08:00
  • b62b1650f5 Improved error messages on struct/union type multiple definitions. acqn 2020-08-08 20:12:04 +08:00
  • fe3f726fd6 Improved incomplete enum typed diagnostics. acqn 2020-08-08 07:04:29 +08:00
  • 0d53806490 Avoided excess errors in incomplete struct assignment. acqn 2020-08-08 06:46:22 +08:00
  • 9317db6642 Slightly improved type error messages of 'op='. acqn 2020-08-08 06:46:22 +08:00
  • 9fcfa3fc49 Fixed full type names of functions with "empty" parameter list. acqn 2020-08-08 06:46:22 +08:00
  • 68d63b089d Reduced error flood raised by misplaced variable declarations. acqn 2020-08-03 01:34:02 +08:00
  • 0f1a5e0520 Set enum tag definition flags. acqn 2020-08-08 06:45:45 +08:00
  • 1dd899c7c9 Fixed non-file-scope multiple definition checking. acqn 2020-08-08 06:44:36 +08:00
  • d68cd90e47 Function declaration in functions cannot have storage classes other than 'extern'. acqn 2020-08-06 17:22:19 +08:00
  • 43efc256f1 Changed error/warning messages not using the term 'tentative' according to PR reviews. acqn 2020-08-05 00:19:28 +08:00
  • b2d3b8379c Warning about forward declaration of enum types in non-cc65 modes. acqn 2020-08-03 01:38:54 +08:00
  • 8cdffc1944 No storage for unsuccessfully parsed variables. acqn 2020-08-03 01:36:19 +08:00
  • fdef067629 Fixed tentative definition of variables of incomplete types that may be completed later. Tenative arrays that never get completed are now assumed each to have one element. acqn 2020-08-03 01:36:19 +08:00
  • fdd120db49 Enabled to output errors and warnings about tentative definitions. acqn 2020-08-03 01:36:19 +08:00
  • f59d6b8f6a Redefining enums/structs/unions of 0 size is no longer treated as declarations and thus forbidden. acqn 2020-08-03 01:31:52 +08:00
  • cdfc1afd89 Fix vacuous comparison warning from 0df45fe Jesse Rosenstock 2020-08-05 12:57:49 +02:00
  • d8f9201ecd LoadExpr: Optimize <= 8-bit bit-field loads Jesse Rosenstock 2020-08-02 09:35:33 +02:00
  • 0c72647edd Remove extra ED_TestDone call Jesse Rosenstock 2020-08-03 09:07:36 +02:00
  • bae431eab0 Fixed error message of CheckedPSizeOf(). acqn 2020-08-03 08:09:50 +08:00
  • e3d913b81a Fixed the reference output of test/misc/goto.c (test/misc/goto.ref). acqn 2020-08-03 02:23:35 +08:00
  • d6aa446b54 Error info for loading expressions of incomplete enum types. No more "Illegal type 0016". acqn 2020-08-03 01:24:38 +08:00
  • 6df4f1996b Improved diagnostics with more detailed type names. acqn 2020-08-03 01:16:00 +08:00
  • 11a5f0edf1 No "Statement has no effect" warnings on statements with errors. acqn 2020-08-03 01:15:57 +08:00
  • 7e68a24625 Clearer warning messages on unused symbols. acqn 2020-08-03 01:15:57 +08:00
  • e8c2886455 Improved error messages on redefinitions of constants and bit-fields. acqn 2020-08-03 01:15:57 +08:00
  • ef5a4db12e Improved warning messages on UB shifts. acqn 2020-08-03 01:15:57 +08:00
  • 2ab7272673 Improved warning on comparison of unsigned type < 0. acqn 2020-08-03 01:15:57 +08:00
  • 99ac1c46da Made errors/warnings statistic message visible when there are errors. acqn 2020-08-03 01:15:57 +08:00
  • 44e3080ea9 Increased upper limit of allowed errors before aborting. acqn 2020-08-03 01:15:57 +08:00
  • 00c16d34a4 Minor fixes for HandleSymRedefinition(). acqn 2020-08-03 01:15:57 +08:00
  • 80b0e57543 Changed parameter constness of TypeConversion(). acqn 2020-08-02 21:51:32 +08:00
  • 003d47cc8b Improved type conversion diagnostic messages. Allowed incompatible pointer assignments with warnings. Fixed Issue #1089. acqn 2020-08-02 21:51:32 +08:00
  • d841bbe498 Utility to check for castability. acqn 2020-08-02 21:51:32 +08:00
  • 52051f444e Using tracked individual string buffers instead of a shared static string buffer for full type names. acqn 2020-08-02 21:51:32 +08:00
  • 4ccf10f3fa Utility to get full type names. acqn 2020-08-02 21:51:26 +08:00
  • 0df45fe2f2 Utility for getting ESU tag type symbols. acqn 2020-08-02 21:08:50 +08:00
  • c831f40e9b Unfortunately there's no other way than using the absolute path to init the correct MSVC 2017 environment. Oliver Schmidt 2020-08-02 18:44:13 +02:00
  • 35d6a75b37 Fixed Windows path notation. Oliver Schmidt 2020-08-02 17:49:18 +02:00
  • 992596c981 Initialize MSVC 2017 environment before build. Oliver Schmidt 2020-08-02 17:32:36 +02:00
  • ce19d7b84f Made use of Travis CI's Windows support. Oliver Schmidt 2020-08-02 15:50:17 +02:00
  • adda28f5c5 LoadExpr: Set CF_FORCECHAR if test is required Jesse Rosenstock 2020-08-02 09:03:21 +02:00
  • 2a555d198c Changed 'switch' to 'if' according PR review comments. acqn 2020-08-02 13:24:46 +08:00
  • 30fd8592ae Avoid internal errors when using function-type objects in expressions. acqn 2020-08-01 22:06:14 +08:00
  • e526cbbff6 Fixed handling multiple storage specifiers in one declaration. acqn 2020-08-01 22:08:19 +08:00