Christoffer Lerno
fc849c1440
0.6.0: init_new/init_temp removed. LinkedList API rewritten. List "pop" and "remove" function now return Optionals. RingBuffer API rewritten. Allocator interface changed. Deprecated Allocator, DString and mem functions removed. "identity" functions are now constants for Matrix and Complex numbers. @default implementations for interfaces removed. any* => any, same for interfaces. Emit local/private globals as "private" in LLVM, following C "static". Updated enum syntax. Add support [rgba] properties in vectors. Improved checks of aliased "void". Subarray -> slice. Fix of llvm codegen enum check. Improved alignment handling. Add --output-dir #1155 . Removed List/Object append. GenericList renamed AnyList. Remove unused "unwrap". Fixes to cond. Optimize output in dead branches. Better checking of operator methods. Disallow any from implementing dynamic methods. Check for operator mismatch. Remove unnecessary bitfield. Remove numbering in --list* commands Old style enum declaration for params/type, but now the type is optional. Add note on #1086 . Allow making distinct types out of "void", "typeid", "anyfault" and faults. Remove system linker build options. "Try" expressions must be simple expressions. Add optimized build to Mac tests. Register int. assert(false) only allowed in unused branches or in tests. Compile time failed asserts is a compile time error. Remove current_block_is_target. Bug when assigning an optional from an optional. Remove unused emit_zstring. Simplify phi code. Remove unnecessary unreachable blocks and remove unnecessary current_block NULL assignments. Proper handling of '.' and Win32 '//server' paths. Unify expression and macro blocks in the middle end. Add "no discard" to expression blocks with a return value. Detect "unsigned >= 0" as errors. Fix issue with distinct void as a member #1147 . Improve callstack debug information #1184 . Fix issue with absolute output-dir paths. Lambdas were not type checked thoroughly #1185 . Fix compilation warning #1187 . Request jump table using @jump for switches. Path normalization - fix possible null terminator out of bounds. Improved error messages on inlined macros.
2024-05-22 18:22:04 +02:00
Christoffer Lerno
f04d93f9aa
Fix flaw in bitstruct check.
2024-05-20 22:20:33 +02:00
Christoffer Lerno
9436efe554
Compiler crash on designated initializer for structs with bitstruct.
2024-05-20 14:42:09 +02:00
Christoffer Lerno
3acbf708d3
Fix location on foreach debug output.
2024-05-19 23:27:57 +02:00
Christoffer Lerno
a16d41a1e1
Do not elide memory storage on variable for debug.
2024-05-17 19:51:35 +02:00
Christoffer Lerno
ff8b78fc99
Correct debug info on parameters without storage.
2024-05-17 16:26:12 +02:00
Christoffer Lerno
97c9bd7ce0
Assertion failed when casting argument to enum #1196
2024-05-16 16:07:55 +02:00
Christoffer Lerno
c40c93340d
Compile time fmod evaluates to 0 #1195
2024-05-16 14:33:11 +02:00
Christoffer Lerno
094c105464
Union is not properly zero-initialized #1194
2024-05-16 11:28:04 +02:00
Christoffer Lerno
555a4ab4c5
Casting a slice address to its pointer type should not compile #1193 .
2024-05-15 21:36:53 +02:00
Christoffer Lerno
7d8cc8776d
Duplicate emit of expressions on negation would incorrectly compile negated macros.
2024-05-14 23:30:39 +02:00
Christoffer Lerno
ed9f15becf
Foreach uses non-wrapping add/dec.
2024-05-08 23:05:12 +02:00
Christoffer Lerno
b09aa74f2f
Generic modules parameterized with constants would sometimes get the wrong parameterized module name causing conversion errors #1192 .
2024-05-04 23:34:37 +02:00
Christoffer Lerno
60805fd11d
Bounds checking on length for foo[1:2] slicing #1191
2024-04-28 18:55:26 +02:00
Christoffer Lerno
89ecd4b33d
Default to AVX on x64.
2024-04-26 19:29:32 +02:00
Christoffer Lerno
237f142a87
Default CPU actually defaults to a value instead of picking the native CPU.
2024-04-26 19:03:25 +02:00
Christoffer Lerno
a21647a1aa
Do not default to native vector capability.
2024-04-26 18:45:14 +02:00
Christoffer Lerno
82227e8901
Incorrect cast of bitstructs #1186
2024-04-26 17:39:30 +02:00
Christoffer Lerno
8b6735a6aa
Allow recursive function definitions as long as they are pointers #1182 . Add 'zstr' variants for string::new_format / string::tformat.
2024-04-16 19:42:32 +02:00
Christoffer Lerno
e7d726cc2c
Fixup of scratch buffer code.
2024-04-09 14:27:52 +02:00
Christoffer Lerno
04738586b9
Fix bug in scratch_buffer_printf.
2024-04-09 13:26:08 +02:00
Brennan Cottrell
a4a85b7bbf
Added print-input command line argument ( #1175 )
...
* added print-input command line argument
2024-03-26 09:33:47 +01:00
Christoffer Lerno
e8f0275d8e
0.5.6 Add defer (catch err) feature.
2024-03-25 11:35:16 +01:00
David
204fb211ac
Fix x86_64 ABI small issue ( #1174 )
...
* Fix x86_64 ABI small issue Update tests for fix.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2024-03-25 09:39:26 +01:00
Christoffer Lerno
6cade814e1
Update includes for FreeBSD.
2024-03-22 09:11:18 +01:00
Christoffer Lerno
eb2fbabbb1
Update version to 0.5.6
2024-03-19 16:15:13 +01:00
Christoffer Lerno
ee9c5db719
0.5.5 release.
2024-03-18 22:05:16 +01:00
Christoffer Lerno
d8af01dc46
Update release notes and change how versions are reported.
2024-03-18 11:51:31 +01:00
David Gonzalez Martin
5bead069f2
Fix aarch64 return type ABI bug
2024-03-17 20:06:53 +01:00
Christoffer Lerno
3df988d0b8
Allow String constants -> ichar*, and allow integer pointers to explicitly convert between unsigned signed.
2024-03-15 23:08:52 +01:00
Christoffer Lerno
656202dc0d
Convert paths to backslash before running on Windows.
2024-03-15 20:09:06 +01:00
Christoffer Lerno
c6087bc369
Fix underlying type of llvm.used and update section.
2024-03-15 13:02:39 +01:00
Christoffer Lerno
b7077c7967
Fix Win32 with compile-run.
2024-03-14 12:05:01 +01:00
Christoffer Lerno
4acb07f1cb
compile-run and run now returns the proper return code.
2024-03-14 11:55:55 +01:00
Christoffer Lerno
5207022a4a
For MacOS, running with higher optimization would crash as initializers were removed.
2024-03-14 09:33:24 +01:00
Christoffer Lerno
0d7ceb625b
Fixed link on msvc.
2024-03-12 10:24:48 +01:00
Christoffer Lerno
95fb5f904f
New linker build option. "system-linker" deprecated and removed from project settings.
2024-03-12 10:09:02 +01:00
Christoffer Lerno
a0309855d7
Added @link attribute.
2024-03-11 18:10:40 +01:00
Christoffer Lerno
546754e803
'output' directory for projects was incorrect in templates.
2024-03-08 15:34:04 +01:00
Christoffer Lerno
86461909d3
Remove initial './' in Win32 paths when running a binary.
2024-03-04 17:04:57 +01:00
Christoffer Lerno
75e7176675
Bitstruct cast to other bitstruct by way of underlying type would fail #1159 .
2024-02-26 23:51:14 +01:00
Christoffer Lerno
bae5d9c7f8
Improved checks of aliased "void".
2024-02-26 18:45:55 +01:00
Christoffer Lerno
4ba033fc84
Fix of int.min incorrect behaviour #1154 .
2024-02-26 18:13:40 +01:00
Christoffer Lerno
f0dd0e8f92
Fix of CT named arguments #1156 .
2024-02-26 17:47:50 +01:00
Christoffer Lerno
7ea3d230bb
0.5.5 features ( #1151 )
...
0.5.5 Disallow multiple `_` in a row in digits, e.g. `1__000`. #1138 . Fixed toposort example. Struct/union members now correctly rejects members without storage size #1147 . `math::pow` will now correctly promote integer arguments. `math::pow` will now correctly promote integer arguments. Added `new_aligned` and `alloc_aligned` functions to prevent accidental under-alignment when allocating simd. Pointer difference would fail where alignment != size (structs etc) #1150 . Add test that overalignment actually works for lists. Fixed array calculation for npot2 vectors. Use native aligned alloc on Windows and POSIX. Deprecates "offset". Simplification of the Allocator interface.
2024-02-22 17:13:51 +01:00
Christoffer Lerno
d7cc37b951
Important fixes to project settings.
2024-02-17 11:39:08 +01:00
Christoffer Lerno
748c737e8f
0.5.4: Hash variables accept designated initializers. @safemacro overrides the need for @ in macro names. Fixes to macro context evaluation. Updated allocator api. Removed install_win_reqs.bat. Deterministic @init for MacOS. Fixed temp memory issue with formatter. Support LLVM 19. Add support to compare bitstructs using == and !=. Support Windows .def files. Removed invalid grammar from grammar.y. Support compile time folding of &|^~ for bitstructs. output project setting now respected. Fix issue where constants were not properly constant folded. Add temp_push/pop. Aliased declarations caused errors when used in initializers. Fix export output. Fix of const ternary #1118 . Fix of $$MODULE in nested macros #1117 . Fix debug info on globals. out now correctly detects subscript[] use #1116 . Lateral implicit imports removed. Default to '.' if no libdir is specified. Improved error messages for --lib. Fix raylib snake example. Overzealous local escape check corrected #1127 . Improved yacc grammar #1128 . --linker argument #1067 . Fixes to the matrix operations #1130 . Added GenericList.
2024-02-15 21:39:33 +01:00
Christoffer Lerno
deb4cc7c4b
0.5.3: Single-module not respected. Fix issue with compiler defined types. Fix optimization levels for projects. Use GEP i8 on offsets. Optimize foreach on len 1 arrays. Move panic blocks last. Fix generic module wildcard imports. Deprecate init_temp / init_new. Fix issue with macro vaarg and untyped lists. Fix extern const globals.
2024-01-14 15:34:54 +01:00
Christoffer Lerno
e91f6e268e
0.5.2: Allow trailing comma in calls and parameter declarations #1092 . Fixes issue where single character filenames like 'a.c3' would be rejected. Improve error messages for incorrect user defined foreach. Fix bug with generics in generics. Fix to error with modified vector parameters. Crash with lhs vector inference. Fixes to priority queue.
2023-12-23 23:15:51 +01:00
Christoffer Lerno
1d61ace302
Do not link with debug libc on win32 when using cross compile libs. Add delete methods to dstring. Fixes to macOS aarch64 codegen. Use glibc backtrace when available. Add load_* methods to file. The cast (int[8])int_slice[:8] now works.
2023-12-08 18:59:57 +01:00