Christoffer Lerno
d16ad0b4c7
Update "clean".
2023-10-05 19:06:55 +02:00
Christoffer Lerno
32f6d711ac
Revert linker changes.
2023-10-05 18:48:05 +02:00
Christoffer Lerno
a07ba63917
Compiling does not leave exe when successful, and also works with generic modules. #1027 . For now, silence errors due to the macos linker changes. #1028 . Try update clean on Windows #456 .
2023-10-05 16:31:11 +02:00
Christoffer Lerno
70f906c71a
Dynamic protocols. Correctly widen unsigned array indices (see #1029 )
2023-10-05 15:20:41 +02:00
Christoffer Lerno
49c4595457
Dynamic protocols.
2023-10-05 15:20:41 +02:00
Christoffer Lerno
4cc30c0d33
Replace static initializer with @init / @finalizer
2023-10-03 12:45:43 +02:00
Christoffer Lerno
2b9276b495
Add 'exec'
2023-09-30 23:28:22 +02:00
Pierre Curto
b2c7b713f2
add descriptions to the --list-project-properties cli option ( #1021 )
...
* fix constant name typo
* add descriptions to the --list-project-properties cli option
* add missing file name for main.c3
2023-09-30 19:52:11 +02:00
Pierre Curto
99ec44ad78
c3c init: add missing file name
...
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-09-29 14:07:59 +02:00
Christoffer Lerno
db4298431d
Remove debug printout.
2023-09-29 14:04:13 +02:00
Christoffer Lerno
fc8b185b5b
Add library init.
2023-09-28 11:06:51 +02:00
Christoffer Lerno
f3752d273c
Add /run dir for projects. See #921
2023-09-28 10:01:20 +02:00
Christoffer Lerno
aa6101d8ea
Correctly deduce the return type for macros with implicit return. See #1018 .
2023-09-26 17:37:27 +02:00
Christoffer Lerno
ee42992c37
Make local constants behave as global: see #974
2023-09-26 00:18:59 +02:00
Christoffer Lerno
a1ecf2211f
as_str() replaced by str_view()
2023-09-24 23:50:16 +02:00
Christoffer Lerno
30d794653d
Resolve type fully before checking casts, addressing #1013 . Correctly show the error location when a method is missing its single argument #1012 .
2023-09-24 20:17:41 +02:00
Christoffer Lerno
709fe1c2c0
Some general refactoring in the builder / project code.
2023-09-23 03:22:11 +02:00
Christoffer Lerno
ad776c76a7
Add benchfn and testfn allowing easy overwrite of test and benchmark runners. #990
2023-09-23 00:30:09 +02:00
Christoffer Lerno
dde73e029c
Fix of issue #1008
2023-09-22 23:24:21 +02:00
Christoffer Lerno
e706a8acd0
Fix Linux constant in posix.c3. Address issue #1009 . Sanitizes the module name in generated project.
2023-09-22 15:15:47 +02:00
Christoffer Lerno
8dad8f2b1c
Use regular backtrace for Mac on signals as well.
2023-09-22 01:12:48 +02:00
Christoffer Lerno
c4228e08c5
MacOS uses regular stacktrace for errors.
2023-09-21 16:39:13 +02:00
Christoffer Lerno
c074e79069
Bitstruct members would get partly evaluated using checks, then incorrectly reset on error. Also, copying bitstruct members were broken. This addresses #1005 .
2023-09-19 18:03:20 +02:00
Christoffer Lerno
6e0982327d
Added example project file and updated project file defaults.
2023-09-19 10:06:22 +02:00
Dmitry Atamanov
a06cc76c9b
Support additional keys in projects.
2023-09-19 09:56:49 +02:00
Christoffer Lerno
9eef34049d
Remove vestiges of top down widening.
2023-09-19 09:45:56 +02:00
Christoffer Lerno
cbdc746c9d
Fix alignment in new fetch builtins.
2023-09-17 21:07:00 +02:00
OdnetninI (Eduardo José Gómez Hernández)
8d11794f83
Fix atomic_fetch_sub builtin + Updated atomic library ( #997 )
...
Fix atomic_fetch_sub builtin + Updated atomic library
2023-09-17 13:22:12 +02:00
Christoffer Lerno
8ed9be9c58
Update build options --nostdlib --nolibc --emit-stdlib --forcelinker … ( #999 )
...
Update build options --nostdlib --nolibc --emit-stdlib --forcelinker --strip-unused. Fix error with vectors in $foreach. Also error if a $foreach iterating over an empty list. Rename forcelinker -> system-linker
2023-09-17 13:19:01 +02:00
Christoffer Lerno
d49365b4a7
Change how -O works and create -optsize / -optlevel. Update --safe / --fast.
2023-09-17 00:40:32 +02:00
Christoffer Lerno
03345bef10
Stricter checking of compare_exchange builtin.
2023-09-16 22:25:03 +02:00
Christoffer Lerno
ff05128a87
Add atomic_fetch_exchange builtin.
2023-09-15 18:22:37 +02:00
Christoffer Lerno
f6e18ded5b
Add atomic_fetch builtins.
2023-09-15 18:07:15 +02:00
Christoffer Lerno
9233305bd6
Feature flags possible to add in project.json. See #991
2023-09-15 14:28:23 +02:00
Christoffer Lerno
6be61aa19c
Fixed asm parsing issue. Use of pointer as argument.
2023-09-15 08:25:43 +02:00
Christoffer Lerno
44fafdbd7c
Fix issue with asm_target initialized multiple times as mentioned in #989
2023-09-14 10:38:02 +02:00
Christoffer Lerno
2eddda9061
Add gather/scatter for vectors.
2023-09-14 10:19:15 +02:00
Christoffer Lerno
b2ac4b4253
Allow use of pointers in vectors.
2023-09-13 13:45:33 +02:00
Christoffer Lerno
1d04b70efe
Fixed issues inferring length with subarrays. Removed old, non-working example. Infer length in the case of subarray literals.
2023-09-12 22:24:20 +02:00
Christoffer Lerno
37bb16cca1
Updated cast code.
2023-09-12 12:48:52 +02:00
Christoffer Lerno
d67e846712
Remove cast from void! to anyfault. Rename @catchof to @catch
2023-09-09 22:49:32 +02:00
Christoffer Lerno
dfe097931c
Add masked_load / masked_store
2023-09-09 01:05:51 +02:00
Christoffer Lerno
4ef74a1205
Add $$select. "--fp-math" options. Fixed issue with accidentally silent error on failed vector conversions.
2023-09-08 09:20:27 +02:00
Christoffer Lerno
66b436f7f8
No optimizations by default.
2023-09-07 09:01:12 +02:00
Christoffer Lerno
224e38c6c7
Fixes to features.
2023-09-06 23:49:56 +02:00
Dmitry Atamanov
51a72ccd37
Add new x86 cpu features.
2023-09-06 23:38:24 +02:00
Dmitry Atamanov
40d5ce0937
Fixes $$set_rounding_mode builtin.
2023-09-06 23:11:33 +02:00
Christoffer Lerno
b87e27d8a3
Update tests and CI ( #979 )
...
Update CI. Explicit native mutex "initialized" bool.
2023-09-06 22:43:07 +02:00
Christoffer Lerno
50e99b571f
Add frame pointer on "enable stacktrace". Set no-trapping-math. Update fmuladd.
2023-09-06 14:38:21 +02:00
Christoffer Lerno
e3412da033
Removed broken code. Update formatter for precision. Fix of panic.
2023-09-05 22:53:56 +02:00