Andrew Kelley
2a88a6a456
Merge pull request #24497 from ziglang/aro-translate-c
...
compiler: update aro and translate-c to latest; delete clang translate-c
2025-09-25 14:18:49 -07:00
Andrew Kelley
14e227d8a6
std.mem: add cutLast and cutScalarLast
2025-09-25 11:38:38 -07:00
Andrew Kelley
97bef50dc3
std.mem: rename all "index of" functions
...
Moving towards our function naming convention of having one word per
concept and constructing function names out of concatenated concepts.
In `std.mem` the concepts are:
* "find" - return index of substring
* "pos" - starting index parameter
* "last" - search from the end
* "linear" - simple for loop rather than fancy algo
* "scalar" - substring is a single element
2025-09-25 11:28:58 -07:00
Andrew Kelley
3411b5e499
std.mem: add cut and cutScalar and example usage
2025-09-25 11:11:46 -07:00
Andrew Kelley
dd2f1cbebf
std.mem: rename chomp to cut
2025-09-25 10:54:28 -07:00
Andrew Kelley
ccaf82d243
CLI: simpler semantics for prefixed integer args
2025-09-25 10:50:41 -07:00
Andrew Kelley
513389bc5b
CLI: exploit std.mem.chompPrefix
...
fixes a bug in how -fstructured-cfg and -fno-structured-cfg are handled.
2025-09-25 10:50:41 -07:00
Andrew Kelley
ac4d79e322
std.mem: introduce chompPrefix and chompSuffix
2025-09-25 10:50:41 -07:00
Loris Cro
9bb0b43ea3
implement review suggestions
2025-09-25 18:20:19 +02:00
Alex Rønne Petersen
a73f246b29
std.Thread: disable test on armeb in addition to thumbeb
...
Same falky failure on both. See ed7ff0b693037078f451a7c6c1124611060f4892.
2025-09-25 17:49:47 +02:00
Alex Rønne Petersen
dd4be26f53
libc-test: disable daemon-failure.c
...
It's flaky in that systems with a high FD limit will get an unexpected ENOMEM
error from daemon(), failing the test.
2025-09-25 12:57:56 +02:00
Jacob Young
6257f4abb7
x86_64: improve support for large enums
...
Closes #25247
2025-09-24 21:20:27 -07:00
Andrew Kelley
5f763b7dc5
resinator: work around error VARARGS not implemented for this compiler
2025-09-24 21:04:46 -07:00
Zhenming-Lin
99323a4da1
improve impl of __floorh, __floorx, __ceilh and __ceilx
2025-09-24 20:57:25 -07:00
Andrew Kelley
41e5331c08
resinator: fix compile errors
2025-09-24 20:35:01 -07:00
Veikka Tuominen
d83c76eb5a
update aro & translate-c
2025-09-24 20:01:19 -07:00
Andrew Kelley
e05073b9e4
aro does not have -mmacos version flags or -Wno-overriding-option
2025-09-24 20:01:19 -07:00
Andrew Kelley
3764f7b0f2
compiler: disable InternPool.debug_state as it is unsound
...
There can be more than one InternPool instance active at the same time.
2025-09-24 20:01:19 -07:00
Andrew Kelley
aa92c237e9
aro does not have a pragma-pack warning
2025-09-24 20:01:19 -07:00
Andrew Kelley
8cba6b1df8
aro: update
...
This is f5fb720a5399ee98e45f36337b2f68a4d23a783c plus ehaas's nonnull
attribute pull request currently at 4b26cb3ac610a0a070fc43e43da8b4cdf0e9101b
with zig patches intact.
2025-09-24 20:01:19 -07:00
Andrew Kelley
01132e0cf8
remove behavior test that depended on std.zig.c_translation
...
behavior tests may not depend on this namespace.
2025-09-24 20:01:19 -07:00
Andrew Kelley
79d9997d22
delete @cImport tests
...
These are now maintained in a separate repository: ziglang/translate-c
2025-09-24 20:01:19 -07:00
Andrew Kelley
e1d6f478c9
@cImport: don't pass args to Aro it doesn't understand
2025-09-24 20:01:19 -07:00
Andrew Kelley
9ad1e83e63
zig fmt
2025-09-24 20:01:19 -07:00
Andrew Kelley
f4d328e2ac
Compilation: use renameTmpIntoCache
...
solves several problems with this pattern
2025-09-24 20:01:19 -07:00
Andrew Kelley
f0d3b7abb8
aro: fix dep file logic
...
also add ability to omit main source file from dep file as it messes up
caching strategy
2025-09-24 20:01:19 -07:00
Andrew Kelley
9e979e5a9d
Compilation: re-implement cImport
2025-09-24 20:01:19 -07:00
Andrew Kelley
ea169e6ccf
std.Build.Cache: clarify parameter is sub path, not basename
2025-09-24 20:01:19 -07:00
Andrew Kelley
b6930097ec
translate-c: update for array list defaults
2025-09-24 20:01:19 -07:00
Andrew Kelley
e5f4dbdf8a
fix rebase conflicts
2025-09-24 20:01:19 -07:00
Andrew Kelley
2f00b630f2
remove c_builtins.zig from cmake
2025-09-24 20:01:19 -07:00
Andrew Kelley
0f88f9c664
aro: avoid BoundedArray
2025-09-24 20:01:19 -07:00
Veikka Tuominen
21f5f06f1f
Compilation: avoid passing Clang specific options to Aro
2025-09-24 20:01:18 -07:00
Veikka Tuominen
e7a622fb33
update aro and translate-c sources
2025-09-24 20:01:18 -07:00
Ryan Liptak
e8e8d7e5c8
resinator: Update for latest aro
2025-09-24 20:01:18 -07:00
Andrew Kelley
01d993b230
add translate-c CLI args
2025-09-24 20:01:18 -07:00
Andrew Kelley
8e27821b60
simplify diagnostics
2025-09-24 20:01:18 -07:00
Andrew Kelley
d1820d2a3e
delete enough aro to make it compile
2025-09-24 20:01:18 -07:00
Andrew Kelley
328280b566
move translate-c helpers
2025-09-24 20:01:18 -07:00
Andrew Kelley
1bdcdbd996
delete all the translate-c tests
...
the ziglang/translate-c package has its own test suite, so these are
redundant
2025-09-24 20:01:17 -07:00
Andrew Kelley
f49a54745b
compiler: update aro and translate-c to latest; delete clang translate-c
2025-09-24 19:57:28 -07:00
Alex Rønne Petersen
91b0adc4c1
Merge pull request #25231 from taylordotfish/bugfix/ppc-restore_rt
...
Fix `restore_rt` on PowerPC and remove unnecessary clobbers
2025-09-25 01:31:24 +02:00
Jacob Young
4a344de651
MappedFile: fix the insert range path not updating the root node
2025-09-24 16:09:46 -07:00
Jacob Young
94d319a10f
x86_64: support more in/out forms
...
Closes #25303
2025-09-24 16:09:14 -07:00
Jacob Young
561e556aaf
target: check for backend support for the new linker
...
Closes #25343
2025-09-24 16:08:26 -07:00
rpkak
9b3b7aa911
Integrate libc-test cases into the build system
...
zig build test-libc -Dlibc-test-path=/path/to/libc-test
2025-09-24 16:05:18 -07:00
rpkak
4fb08986cb
optimize std.mem.swap
2025-09-24 12:29:43 -07:00
Loris Cro
0feacc2b81
fuzzing: implement limited fuzzing
...
Adds the limit option to `--fuzz=[limit]`. the limit expresses a number
of iterations that *each fuzz test* will perform at maximum before
exiting. The limit argument supports also 'K', 'M', and 'G' suffixeds
(e.g. '10K').
Does not imply `--web-ui` (like unlimited fuzzing does) and prints a
fuzzing report at the end.
Closes #22900 but does not implement the time based limit, as after
internal discussions we concluded to be problematic to both implement
and use correctly.
2025-09-24 12:46:48 +02:00
taylor.fish
c73df65ded
Don't specify clobbers in restore_rt
...
Per @alexrp, this is unnecessary in naked functions.
2025-09-23 21:03:28 -07:00
taylor.fish
7f49dae284
Fix PowerPC restore_rt
...
Clang fails to compile the CBE translation of this code ("non-ASM
statement in naked function"). Similar to the implementations of
`restore_rt` on x86 and ARM, when the CBE is in use, this commit employs
alternative inline assembly that avoids using non-immediate input
operands.
2025-09-23 20:47:34 -07:00