Christoffer Lerno
3bddde20ab
Fixes to distinct inline conversions.
2024-06-26 21:48:10 +02:00
Christoffer Lerno
201b1b7fbc
- Bitstructs, unions and flexible arrays now correctly emitted in headers.
...
- Require `@export` functions to have `@export` types.
2024-06-23 23:39:58 +02:00
Christoffer Lerno
e153c76719
Bit negate now properly does type promotion.
2024-06-23 16:13:37 +02:00
Christoffer Lerno
e7f9c11a14
"panic-msg" setting to suppress panic message output.
2024-06-23 10:42:03 +02:00
Christoffer Lerno
f2e5c5e9b9
- Fix bug with @jump miscompile
...
- Remove "panic" text from unreachable() when safe mode is turned off.
2024-06-22 23:20:23 +02:00
Christoffer Lerno
e02f73417c
Trailing body arguments may now be &ref, #hash, $const and $Type arguments.
2024-06-22 22:04:20 +02:00
Christoffer Lerno
8878a49a1d
Introduction of TYPE_FUNC_PTR / TYPE_FUNC_RAW. Fixed rules for function pointers.
2024-06-21 10:46:28 +02:00
Christoffer Lerno
3a7bc4d253
Return the typekind "FUNC" for a function pointer.
2024-06-20 20:47:24 +02:00
Christoffer Lerno
b592ecf6f5
Fixed crash on certain recursive function definitions #1209 .
2024-06-18 22:33:10 +02:00
Christoffer Lerno
65a8826158
Fix of missing copy of parameterized custom attributes.
2024-06-17 22:05:32 +02:00
Christoffer Lerno
c9fab898cc
Improved error notes when call expressions have errors.
2024-06-16 23:33:37 +02:00
Christoffer Lerno
819049d596
@str_hash, @str_upper, @str_lower, @str_find compile time macros.
2024-06-16 21:16:03 +02:00
Christoffer Lerno
147dee6ec7
Addition of $append and $concat functions. Added $$str_hash builtin. Fix to the macho runtime.
2024-06-16 01:57:05 +02:00
Christoffer Lerno
b0b885d506
Prevent Mach-O from removing @init and @dynamic in a more reliable way #1200 .
2024-06-15 15:58:12 +02:00
Christoffer Lerno
c94610f8a9
Error with unsigned compare in @ensure when early returning 0 #1207 . Added remove_first_item remove_last_item and remove_item as aliases for the match functions.
2024-06-14 17:29:46 +02:00
Christoffer Lerno
21fa006850
Merge 0.5.6 changes into 0.6.0
2024-06-12 11:39:52 +02:00
Christoffer Lerno
e293c435af
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. 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.
...
Upgrade of mingw in CI. Fix problems using reflection on interface types #1203 . Improved debug information on defer. $foreach doesn't create an implicit syntactic scope.
Error if `@if` depends on `@if`. Updated Linux stacktrace. Fix of default argument stacktrace. Allow linking libraries directly by file path. Improve inlining warning messages. Added `index_of_char_from`. Compiler crash using enum nameof from different module #1205 . Removed unused fields in find_msvc. Use vswhere to find msvc. Update tests for LLVM 19
2024-06-12 10:14:26 +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
92979984ea
Fix mutex and wait signatures for Win32.
2024-05-18 22:24:45 +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
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
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
Christoffer Lerno
eb2fbabbb1
Update version to 0.5.6
2024-03-19 16:15:13 +01:00
Christoffer Lerno
d8af01dc46
Update release notes and change how versions are reported.
2024-03-18 11:51:31 +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
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
1a25746343
Regression: no stacktrace.
2024-03-12 17:31:06 +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
feebd2a733
Bug in time.add_seconds #1162 .
2024-03-01 12:09:47 +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
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