Alexander Medvednikov
af3f6c18f5
native: minor comptime fixes
2025-02-19 20:50:16 +03:00
Felipe Pena
99635cfba9
checker: fix missing check for method that returns veb.Result ( fix #23647 ) ( #23762 )
2025-02-19 17:41:27 +02:00
Delyan Angelov
dfacc3321d
tools: build examples, that start with module no_main
as well
2025-02-19 17:19:50 +02:00
Delyan Angelov
4a8b3151b9
examples: add minimal_c_like_program_using_puts.v showing how to produce a much smaller executable on Linux, using clang, mold and sstrip.
2025-02-19 17:14:03 +02:00
Felipe Pena
70db1499b8
checker: fix spreed operator ref field validation ( fix #23759 ) ( #23760 )
2025-02-19 14:26:50 +02:00
Bruno-Vdr
a694918f4c
strconv : add atoi8/16/32/64 helper functions with their tests ( #23757 )
2025-02-19 02:32:19 +02:00
Eliyaan (Nopana)
1274f46150
native: support negative integer literals ( #23755 )
...
* fix mov64
* add tests for negative integer literals
* raise an error when printing unsigned int
* fix comments
* fix windows CI failure/compiler panic
* fix root cause of panic, provide valid zero ast.IntegerLiteral to c.gen_exit(zero) in Amd64.fn_decl/1
* fix comments, add test
---------
Co-authored-by: Delyan Angelov <delian66@gmail.com>
2025-02-18 18:27:12 +02:00
Delyan Angelov
0c5a6d5a62
ci: rebuild V with v -g self
in .github/workflows/native_backend_ci.yml, to improve remote diagnosis of panics in PRs
2025-02-18 16:40:01 +02:00
Delyan Angelov
337d5b59f3
native: allow for searching for wine system32/ .dlls, and for adding more paths for .dll lookups, by setting VNATIVE_PE_DLL_PATH
, to make it easier to diagnose problems with PE generation on non windows platforms ( #23756 )
2025-02-18 15:48:28 +02:00
Delyan Angelov
c2c15a31a5
ci: update the remaining runners from ubuntu-20.04 to ubuntu-22.04 and ubuntu-24.04 ( #23754 )
2025-02-18 00:28:43 +02:00
Delyan Angelov
01bee65f16
ci: fix github job names in cmd/tools/vtest-self.v
weekly.2025.08
2025-02-17 22:36:07 +02:00
Delyan Angelov
4465c04dc7
ci: fix job names in cmd/tools/modules/testing/common.v as well
2025-02-17 22:34:07 +02:00
Delyan Angelov
da093882f7
net.unix: make unix_socket_test.v trace its actions more thoroughly
2025-02-17 22:26:53 +02:00
Eliyaan (Nopana)
dbc96b22ec
native: fix inc and improve support for i32 ( #23753 )
2025-02-17 21:00:37 +02:00
Delyan Angelov
f2672b1f9f
ci: use distinct names for the jobs, for easier filtering/searching in the Github's UI
2025-02-17 20:58:37 +02:00
Delyan Angelov
3703a8692b
ci: reduce the timeouts in windows_ci.yml to 60 minutes (V is now faster, and the runners use faster hardware as well)
2025-02-17 20:17:36 +02:00
Eliyaan (Nopana)
4a197d7766
native: for statement : add support for all expressions handled by g.condition ( #23752 )
2025-02-17 20:12:08 +02:00
Delyan Angelov
ce666a8f59
make: improve the make install
information message in both GNUmakefile and Makefile (as suggested by JalonSolov) ( #23751 )
2025-02-17 18:55:36 +02:00
Delyan Angelov
e9641875c3
doc: describe what enums are in docs.md ( #23750 )
2025-02-17 18:54:19 +02:00
blackshirt
66e1d14bb4
crypto.ecdsa: migrate core routines for signing (and verifying), it now requires using OpenSSL 3 ( #23705 )
2025-02-17 18:49:32 +02:00
Eliyaan (Nopana)
7e5b58d8d8
native: fix int prints ( #23747 )
2025-02-17 18:35:00 +02:00
Delyan Angelov
2e421bac5b
ci: cleanup windows_ci.yml more; remove the setting of VTEST_SHOW_START: and VERBOSE_MAKE: for all jobs there
2025-02-17 13:19:38 +02:00
Alexander Medvednikov
869677a56a
make: use .exe only on Windows
2025-02-17 14:17:53 +03:00
Delyan Angelov
ef0018d6bc
ci: do not use VJOBS: 1
in the windows tcc job anymore
2025-02-17 13:16:49 +02:00
Delyan Angelov
44464349f1
v.eval: lookup constants in builtin
, when they are not found in the current module; add test ( #23745 )
2025-02-17 12:10:21 +02:00
Delyan Angelov
428b32806e
ci: avoid duplicating work by removing the remaining -skip-unused
tasks, since that is the new default ( #23746 )
2025-02-17 12:09:37 +02:00
Bruno-Vdr
9bed50d76d
strconv: fix atoi() and its tests ( #23737 )
2025-02-17 12:07:26 +02:00
Delyan Angelov
9649af30e2
tools: improve v test
by updating VTEST_REPORT_RUNNING_PERIOD_MS to 5 minutes by default, and adding stats for the currently compiling tests too
2025-02-17 11:43:29 +02:00
Eliyaan (Nopana)
6534616a0d
native: fix convert_int_to_string, add comments in the verbose (-v) mode ( #23743 )
2025-02-17 07:47:22 +02:00
Felipe Pena
997ffdc6c6
checker: add checker for passing multi return as arg to func that expects less param ( fix #23735 ) ( #23744 )
2025-02-17 07:41:21 +02:00
Delyan Angelov
55f482bb63
ci: update linux image runners from ubuntu-20.04
to ubuntu-24.04
( #23706 )
2025-02-17 07:37:59 +02:00
Felipe Pena
7b97709449
checker,markused: add identification for sumtype.type_name() call ( fix #23732 ) ( #23739 )
2025-02-16 17:31:09 +02:00
Felipe Pena
eab148eaa5
cgen: fix map with an Enum as key type, with size < 4 bytes on tcc ( fix #23714 ) ( #23738 )
2025-02-16 17:04:20 +02:00
Delyan Angelov
2015aa3c2e
parser: remove commented code
2025-02-16 09:20:41 +02:00
Delyan Angelov
8e380bc5ea
parser: add support for -d trace_parse_file_path_and_mod
, to help diagnosing module lookup problems
2025-02-16 09:02:27 +02:00
Delyan Angelov
46447f1262
tools: move cmd/tools/vdoc/doc
to cmd/tools/vdoc/document
, so that it can be imported from other programs through -path
, without conflicting with the top level doc/
folder in the main repo ( #23733 )
2025-02-15 23:12:57 +02:00
Felipe Pena
00a08c4fbe
checker, cgen: fix sumtype smartcasted var as inherited var ( fix #23716 ) ( #23731 )
2025-02-15 22:59:45 +02:00
Felipe Pena
f4aa139f8d
cgen: fix codegen for nested if on return ( fix #23723 ) ( #23729 )
2025-02-15 22:54:17 +02:00
Felipe Pena
ae899e67fe
checker: fix call from unknown enum ( fix #23728 ) ( #23730 )
2025-02-15 20:12:28 +02:00
kbkpbot
f7841e125b
checker: check and error for invalid utf8 string literals ( #23721 )
2025-02-15 19:32:38 +02:00
Anonymous User
b4182301ae
veb.csrf: do not print anything by default, add an verbose: true
option, to restore the old behavior if needed ( #23725 )
2025-02-15 16:15:32 +02:00
Delyan Angelov
b438f9229d
Dockerfile.alpine: use the updated ENV syntax to avoid deprecation warning with the official Docker package, add rsync
too, so the container can be used for running/testing oldv
2025-02-15 16:10:45 +02:00
Delyan Angelov
49fb7ca501
make: show instructions about installing a C compiler, when the bootstrap compilation with cc fails ( #23718 )
2025-02-14 08:13:39 +02:00
Eliyaan (Nopana)
81a2e7a772
tools: fix warnings in v reduce
( #23709 )
2025-02-13 21:32:01 +02:00
Delyan Angelov
2f700c04b7
builtin,cgen: fix issues found with the stricter sanitizers in clang-18 on Ubuntu 24.04 ( #23710 )
2025-02-13 21:27:39 +02:00
Delyan Angelov
e9c23144a3
pref: add Preferences.vroot_file/1 (done here, without using it, to ease the bootstrapping of the cheaders extraction, that will follow next)
2025-02-13 12:21:44 +02:00
Delyan Angelov
025e70314c
cgen: use global_g.out << g.out
instead of global_g.out.write(g.out) or { panic(err) }
2025-02-13 11:49:32 +02:00
Felipe Pena
92f436db12
checker: fix match branch checking of nonreturn call on last expr ( fix #23698 ) ( #23699 )
2025-02-12 15:45:42 +02:00
Felipe Pena
02ca30acf0
cgen: fix codegen for returning an initialised fixed array ( fix #23693 ) ( #23700 )
2025-02-12 15:41:42 +02:00
Delyan Angelov
e3d8cdc357
time: improve the robustness of time_test.c.v (check if the diff is within ±1 second of the current timezone difference)
2025-02-12 15:17:51 +02:00