Commit Graph

  • 9c42919e5a Install scripts (#2393) Arnaud Moura 2025-09-19 22:24:05 +02:00
  • a6d33ec4af Update stdlib to use struct member docs from #2427 and other small changes (#2473) Book-reader 2025-09-20 04:41:32 +12:00
  • b03ae8bb17 Alias and distinct types didn't check the underlying type wasn't compile time or optional. Christoffer Lerno 2025-09-19 18:05:29 +02:00
  • 59fd777198 Add exec timings to -vv output #2490 Christoffer Lerno 2025-09-19 17:20:56 +02:00
  • d8286fa2a5 Add 'loop-vectorize', 'slp-vectorize', 'unroll-loops' and 'merge-functions' optimization flags #2491. Christoffer Lerno 2025-09-19 13:34:06 +02:00
  • 3345e70c63 Comparing slices and arrays of user-defined types that implement == operator now works #2486. Christoffer Lerno 2025-09-19 11:21:29 +02:00
  • 12eea4a98d [STDLIB] Add macro return types (#2487) BWindey 2025-09-18 14:06:58 +02:00
  • fdc20dc642 Taking .ordinal from an enum passed by pointer and then taking the address of this result would return the enum, not int. Christoffer Lerno 2025-09-18 14:04:49 +02:00
  • c5e3a1b2da - Compiler segfault for invalid e-mails in project.json. #2488 - env::PROJECT_VERSION now returns the version in project.json. Christoffer Lerno 2025-09-18 10:58:15 +02:00
  • 35270fb0bf Fix unnecessary namespacing. Christoffer Lerno 2025-09-18 00:16:08 +02:00
  • d782dad149 Fix compile time format check when the formatting string is a constant slice. Christoffer Lerno 2025-09-17 14:31:00 +02:00
  • 92aefb15f8 Generic inference (#2475) Christoffer Lerno 2025-09-16 18:05:21 +02:00
  • 8342ac80d3 $alignof, $offsetof and $nameof can now be used in $defined. Christoffer Lerno 2025-09-16 15:36:37 +02:00
  • c71444e7a0 Compile time switch over type would not correctly compare function pointer types. Christoffer Lerno 2025-09-16 14:10:23 +02:00
  • 06e10bb69f Add Gentoo installation instructions to README Christian Brendlin 2025-09-14 14:44:46 +02:00
  • fabd96552f Implement write_to_stdin() in std::os::process (#2482) Velikiy Kirill 2025-09-15 14:41:35 +03:00
  • 2e99ae5ab9 For c3c run and friends, pass SIGINT to child process on Linux (#2480) m0tholith 2025-09-13 19:51:33 +03:00
  • 8fea6ee8ab Compiler segfault when modifying variable using an inline assembly block inside defer #2450. Christoffer Lerno 2025-09-12 20:01:28 +02:00
  • e6b10ee00c Stack object size limit error on a static object. #2476 Christoffer Lerno 2025-09-12 17:11:25 +02:00
  • 6aff6d66de Fix missing bitstruct member <* *> compatibility. Christoffer Lerno 2025-09-10 23:39:04 +02:00
  • 8035991ac3 ?? with void results on both sides cause a compiler crash #2472 Christoffer Lerno 2025-09-10 10:47:14 +02:00
  • c0bd14cee7 Find cl and set INCLUDE env var outside of a visual studio command promt (#2467) Jonathan Nilsson 2025-09-09 22:38:40 +02:00
  • 3ba0beee96 Support for SysV for CVaList Christoffer Lerno 2025-09-09 13:41:26 +02:00
  • 8e6535f13c Fix of last checkin Christoffer Lerno 2025-09-09 01:06:18 +02:00
  • 0d8f9520e9 CVaList support on MacOS aarch64. Christoffer Lerno 2025-09-09 01:05:20 +02:00
  • 3caaf0a3e8 Compiler hang with unaligned load-store pair. #2470 Christoffer Lerno 2025-09-09 00:07:45 +02:00
  • a2206f1bcd int val = some_int + some_distinct_inline_int errors that int cannot be cast to DistinctInt #2468 Christoffer Lerno 2025-09-08 10:21:47 +02:00
  • 7b5277d52c Any register allowed in X86_64 inline asm address. #2463 Christoffer Lerno 2025-09-07 00:03:49 +02:00
  • 9f55a74d2e Remove use of find_len and len_from_list. Rename lenof to lengthof Christoffer Lerno 2025-09-06 18:35:03 +02:00
  • 3eb8f68ded - Add lenof() compile time function #2439 - Fix release notes Christoffer Lerno 2025-09-06 18:17:17 +02:00
  • bd9bc118db Allow doc comments on individual struct members, faultdefs and enum values #2427. Christoffer Lerno 2025-09-06 16:18:33 +02:00
  • 95375a2591 Overloading &[] should be enough for foreach. #2466 Christoffer Lerno 2025-09-06 15:18:26 +02:00
  • b7115e9c70 Correctly silence "unsupported architecture" warning with --quiet #2465 Christoffer Lerno 2025-09-06 12:09:31 +02:00
  • 078d9dc0b7 Add LinkedList Operators and Update Tests (#2438) Zack Puhl 2025-09-06 05:57:21 -04:00
  • 79c0c8e082 Build linux binaries for releases with proper curl support (#2464) Book-reader 2025-09-06 21:00:07 +12:00
  • 69b3263a00 - Added path::home_directory, path::documents_directory, path::videos_directory, path::pictures_directory, path::desktop_directory, path::screenshots_directory, path::public_share_directory, path::templates_directory, path::saved_games_directory, path::music_directory, path::downloads_directory. Fix codegen bug in expressions like foo(x()) ?? io::EOF? causing irregular crashes. Christoffer Lerno 2025-09-04 21:34:34 +02:00
  • cbd415881b Support .m files in expand_csources dimapaloskin 2025-09-05 17:35:46 +03:00
  • 6dbd81a6f9 add ability for TinyCC to compile c3c (#2459) LowByteFox 2025-09-06 01:47:48 +02:00
  • e605a21fd3 Revert "Revert 0.7.6 code for 0.7.5 re-release" Christoffer Lerno 2025-09-05 23:30:35 +02:00
  • d1349c9cfb Revert 0.7.6 code for 0.7.5 re-release v0.7.5 Christoffer Lerno 2025-09-05 18:41:41 +02:00
  • c375aef9a3 Updates to grammar master_076 Christoffer Lerno 2025-09-04 20:18:43 +02:00
  • 3c1f692d49 Make enum Cc inline so it can index Termios.c_cc (#2448) Book-reader 2025-09-04 21:41:06 +12:00
  • 29e20ee1be - Inlining location when accessing #foo symbols. - Improve inlined-at when checking generic code. Christoffer Lerno 2025-09-04 11:39:48 +02:00
  • cf14787552 Typo fixes (#2457) niedlich 2025-09-04 01:07:07 +02:00
  • 10241df23c Add generic InterfaceList type for storing values that implement a specific interface (#2433) Book-reader 2025-09-04 08:58:27 +12:00
  • 8795ffc4f1 Returning pointer to index of slice stored in a struct from method taking self incorrectly detected as returning pointer to local variable #2455. Christoffer Lerno 2025-09-03 01:02:25 +02:00
  • e25812a071 $defined(x[0] = val) causes an error instead of returning false when a type does not have []= defined #2454 Christoffer Lerno 2025-09-03 00:08:43 +02:00
  • 14a929588a Confusing error message when type has [] overloaded but not []= #2453 Christoffer Lerno 2025-09-02 23:56:15 +02:00
  • 02d1486af9 - Compiler assert with var x @noinit = 0 #2452 Christoffer Lerno 2025-09-02 23:39:00 +02:00
  • bab317282c Update version to 0.7.6 Christoffer Lerno 2025-09-01 16:21:48 +02:00
  • a3a6319bcf Fix tests Christoffer Lerno 2025-09-01 13:32:40 +02:00
  • 17dfbb377e Fixed test. Christoffer Lerno 2025-09-01 13:05:14 +02:00
  • ff39f14dd1 $defined(Foo x = $vaexpr[0]) works correctly. Christoffer Lerno 2025-09-01 12:09:14 +02:00
  • af4309b286 $defined returns an error when assigning a struct initializer with an incorrect type #2449 Christoffer Lerno 2025-09-01 10:44:19 +02:00
  • 176fb47c23 Update to 0.7.5 release candidate. Christoffer Lerno 2025-09-01 02:11:08 +02:00
  • 3a69c9f1fe Fix test. Christoffer Lerno 2025-09-01 01:18:17 +02:00
  • 944cc00d34 Fix regression on splat. Christoffer Lerno 2025-09-01 01:14:39 +02:00
  • a751177a3e Const enum methods are not being recognized. #2445 Christoffer Lerno 2025-08-31 23:56:48 +02:00
  • d291a40f69 Compiler hangs on == overload if other is generic #2443 Fix missing end of line when encountering errors in project creation. Christoffer Lerno 2025-08-31 23:40:55 +02:00
  • cb006dd715 - Compiler module-scope pointer to slice with offset, causes assert. #2446 Christoffer Lerno 2025-08-31 23:18:27 +02:00
  • c7f09f2879 Disambiguate types when they have the same name and need cast between each other. Christoffer Lerno 2025-08-31 15:16:52 +02:00
  • c0387221af Fix regression where files were added more than once. #2442 Christoffer Lerno 2025-08-31 12:07:10 +02:00
  • 0c7c5fbd7b Update MAP_ANONYMOUS for Linux Christoffer Lerno 2025-08-31 00:27:01 +02:00
  • fafcf3d0a9 Enum inference, like Foo x = $eval("A"), now works correctly for $eval. Christoffer Lerno 2025-08-30 15:24:11 +02:00
  • b757f1447b Fix incorrect priority filtering. Move ??? to features. Christoffer Lerno 2025-08-30 13:22:10 +02:00
  • bc3d9d761f fix buffer overflow when deallocating an object and implement asan poisoning for unused memory LowByteFox 2025-08-30 07:37:03 +02:00
  • 10bc68fb39 Fixed regression with optional argument macros and lambdas. Christoffer Lerno 2025-08-30 01:00:24 +02:00
  • de8aed9d96 Enable $defined((void)#hash) Christoffer Lerno 2025-08-29 23:24:32 +02:00
  • 1080303768 Using ... to expand elements. Christoffer Lerno 2025-08-29 16:30:28 +02:00
  • 0503e15e31 Fix error message for $case after $switch Christoffer Lerno 2025-08-29 14:42:07 +02:00
  • ca2fabc9f9 - $defined(#hash) will not check the internal expression, just that #hash exists. - Added optional macro arguments using macro foo(int x = ...) which can be checked using $defined(x). - Supplemental roundeven has a normal implementation. Christoffer Lerno 2025-08-29 11:23:39 +02:00
  • 0178a44b3c Add some initial ability to compile for a limited set of backends because of narrow-minded LLVM maintainers. 640 kb is good enough for anybody. Christoffer Lerno 2025-08-28 20:38:14 +02:00
  • 8f3cb9c6e9 Add more comments to mem functions. Christoffer Lerno 2025-08-28 18:23:01 +02:00
  • c339278ff7 String.bformat has reduced overhead. Christoffer Lerno 2025-08-28 12:12:22 +02:00
  • 47316dac59 Add compile time ternary $val ??? <expr> : <expr>. Christoffer Lerno 2025-08-28 01:56:05 +02:00
  • 90d3f429aa - @test/@benchmark on module would attach to interface and regular methods. Christoffer Lerno 2025-08-28 00:28:32 +02:00
  • 239d249f01 - Added $kindof compile time function. - Deprecated @typekind macro in favour of $kindof. - Deprecated @typeis macro in favour of $typeof(#foo) == int. Christoffer Lerno 2025-08-27 20:38:12 +02:00
  • 7312c10b9e - @is_const is deprecated in favour of directly using $defined. - @is_lvalue(#value) is deprecated in favour of directly using $defined. Christoffer Lerno 2025-08-27 18:21:55 +02:00
  • 3c6e6f1965 Make log and exp no-strip. Christoffer Lerno 2025-08-27 14:41:19 +02:00
  • 28b9be64ee Update error message for missing body after if/for/etc #2289. Christoffer Lerno 2025-08-27 12:37:01 +02:00
  • d2cae909e1 A file with an inferred module may not contain additional other modules. Christoffer Lerno 2025-08-27 11:42:53 +02:00
  • e194081e21 Fix test. Christoffer Lerno 2025-08-27 10:45:59 +02:00
  • 04cc34f12e Fix correct ? after optional function name when reporting type errors. Christoffer Lerno 2025-08-27 09:33:25 +02:00
  • f7143c1852 Fix tests, reenable LLVM 22 Christoffer Lerno 2025-08-26 20:55:58 +02:00
  • 1781e97f02 Update jumptable codegen. Christoffer Lerno 2025-08-26 20:34:44 +02:00
  • c17cb7d0ca Fix alignment on jump table. Christoffer Lerno 2025-08-26 20:08:58 +02:00
  • 21343baa75 Update for LLVM 21 (#2435) Christoffer Lerno 2025-08-26 17:29:39 +02:00
  • 58c59361ea - Add linklib-dir to c3l-libraries to place their linked libraries in. Defaults to linked-libs - If the os-arch linked library doesn't exist, try with os for c3l libs. Christoffer Lerno 2025-08-26 15:21:45 +02:00
  • cb17cfff7d Deprecation of @assignable_to Christoffer Lerno 2025-08-26 13:21:42 +02:00
  • 88096e0556 Type capture in macros typecapture Christoffer Lerno 2025-08-26 02:45:52 +02:00
  • 1634217fc4 Grabbing (missing) methods on function pointers would cause crash #2434. Christoffer Lerno 2025-08-25 16:39:17 +02:00
  • bc9b0900a5 - Inlining a const as an lvalue would take the wrong path and corrupt the expression node. Christoffer Lerno 2025-08-25 15:26:47 +02:00
  • f43a7540c5 clarify directory creation error messages (#2388) Christian Brendlin 2025-08-25 14:56:59 +02:00
  • 410a25f334 Add array @reduce, @filter, @any, @all, & @indices_of (#2419) Zack Puhl 2025-08-25 08:47:08 -04:00
  • 35c04cdc36 Add form-feed and vertical tab to trim defaults (#2407) Zack Puhl 2025-08-25 08:23:14 -04:00
  • 3e641ab82b Properly add "inlined at" for generic instantiation errors #2382. Christoffer Lerno 2025-08-25 13:31:56 +02:00
  • c1b1ca4266 Merge @ and # hash_test Christoffer Lerno 2025-08-24 23:38:17 +02:00
  • 7972397c65 Incorrect name on wincrt, likely a regression. Christoffer Lerno 2025-08-24 13:54:52 +02:00
  • 9bf933ae31 - has_tagof on tagged lambdas returns false #2432 Christoffer Lerno 2025-08-23 23:41:32 +02:00
  • a69ee59b82 Fix tests. Christoffer Lerno 2025-08-23 22:49:33 +02:00