Andrew Kelley
5b06daf52b
zig cc: implement -### (dry run)
...
closes #7170
2023-05-17 05:18:51 -07:00
Andrew Kelley
fd213accb8
Merge pull request #14462 from motiejus/infile_stdin
...
zig cc: support reading from stdin via "-x LANG -"
2023-05-17 02:54:51 -07:00
David CARLIER
40e8c2243c
std.c: darwin's *copyfile api update.
2023-05-17 06:06:41 +03:00
Frank Denis
c6966486e3
crypto.AegisMac: fix a regression from s/mem.copy/@memcpy/ ( #15733 )
...
In an update whose size is not a multiple of the block size,
we would end up calling @memcpy() with arguments of different sizes.
2023-05-16 23:51:47 +00:00
Andrew Kelley
233a0d3991
CLI: remove cleanup logic for stdin temp file
...
In one of the happy paths, execve() is used to switch to clang in which
case any cleanup logic that exists for this temporary file will not run
and this temp file will be leaked. Oh well. It's a minor punishment for
using `-x c` which nobody should be doing. Therefore, we make no effort
to clean up. Using `-` for stdin as a source file always leaks a temp
file.
Note that the standard `zig build-exe` CLI does not support stdin as an
input file. This is only for `zig cc` C compiler compatibility.
2023-05-16 16:41:22 -07:00
Andrew Kelley
ae119a9a8d
CLI: fix stdin dumping behavior
...
* no need to move `tmpFilePath` around
* no need for calculating max length of `FileExt` tag name
* provide a canonical file extension name for `FileExt` so that, e.g.
the file will be named `stdin.S` instead of
`stdin.assembly_with_cpp`.
* move temp file cleanup to a function to reduce defer bloat in a large
function.
* fix bug caused by mixing relative and absolute paths in the cleanup
logic.
* remove commented out test and dead code
2023-05-16 16:41:22 -07:00
Motiejus Jakštys
2e692312f1
zig cc: support reading from non-files
...
echo 'some C program' | $CC -x c -
Is a common pattern to test for compiler or linker features. This patch
adds support for reading from non-regular files.
This will make at least one more Go test to pass.
2023-05-16 16:40:58 -07:00
Cortex
c269e16c3b
std.mem.byteSwapAllFields: add suppport for nested structs ( #15696 )
2023-05-16 19:10:44 -04:00
Andrew Kelley
958fba0eb7
Merge pull request #15713 from alichraghi/ali-spirv
...
spirv: get more behavior tests passing
2023-05-16 16:09:22 -07:00
David CARLIER
b754068fbc
std.c: add ptrace for freebsd support.
2023-05-16 22:47:51 +03:00
Loris Cro
87c7ef31c5
Merge pull request #15731 from der-teufel-programming/autodoc-quickfixes
...
autodoc: Fix rendering of imported modules
2023-05-16 13:20:16 +02:00
Krzysztof Wolicki
3e5824d2a6
autodoc: Fix rendering of imported modules
2023-05-16 13:11:33 +02:00
Tw
e584dd8062
std.mem.zeroInit: zero hidden padding for extern struct
...
Signed-off-by: Tw <tw19881113@gmail.com>
2023-05-16 10:33:04 +03:00
Travis Staloch
8bbc906b59
Package: support gitlab tarball urls
...
Allows the package manager to download gitlab tarballs from urls such as
https://gitlab.com/ <namespace>/<project>/-/archive/<sha>/<project>-<sha>.tar.gz
Such http requests have headers Content-Type=application/octet-stream
and Content-Disposition='attachment; filename="<project>-<sha>.tar.gz"'.
The package manager doesn't yet support these headers. This patch
doesn't attempt to properly parse the content-disposition header.
Instead it checks that it starts with 'attachment;' and ends with
'.tar.gz"'.
2023-05-15 22:44:32 -07:00
Andrew Kelley
4ba61a2191
Merge pull request #15704 from Vexu/fix-memcpyset
...
`@mem{cpy,set}` fixes
2023-05-15 22:39:45 -07:00
David CARLIER
b677b36278
std.c: add netbsd's accept_filter_data for ACCEPT_FILTER sock opt.
2023-05-16 04:31:15 +03:00
Roman Frołow
21b7c48043
Add wasi_ prefix to wasm files
2023-05-15 23:34:43 +03:00
Ali Chraghi
6fca3f8b72
spirv: lower ptrtoint & ignore dbg_inline instructions
2023-05-15 22:04:42 +03:30
Andrew Kelley
2286c19c20
Merge pull request #15628 from jacobly0/x86_64-behavior
2023-05-15 09:51:57 -07:00
Ali Chraghi
f8de4db873
spirv: implement arithmeticTypeInfo for Enum (@intToEnum)
2023-05-15 14:22:40 +03:30
Tristan Ross
de6cafa80f
std: expose fmt methods and structs for parsing
2023-05-15 12:11:11 +03:00
Veikka Tuominen
0bc5e7b523
Sema: use elemPtrOneLayerOnly in zirMemCpy
...
Closes #15633
2023-05-15 10:31:24 +03:00
Veikka Tuominen
2703db3b40
Sema: add more type checks to @mem{cpy,set}
...
Closes #15634
Co-authored-by: Dima Afanasyev <dimaafanasev@example.com>
2023-05-15 10:31:24 +03:00
Veikka Tuominen
ab5a72f6ca
Sema: ensure dest ptr of memcpy has length
...
Closes #15513
2023-05-15 10:31:24 +03:00
Jacob Young
cea9ac772a
x86_64: implement integer vector min/max
2023-05-15 03:07:51 -04:00
Jacob Young
40457a3696
x86_64: implement integer vector bitwise operations
2023-05-15 03:07:51 -04:00
Jacob Young
f39ff6cc68
x86_64: implement integer vector mul
2023-05-15 03:07:51 -04:00
Jacob Young
bd771bec49
x86_64: implement integer vector add/sub
2023-05-15 03:07:51 -04:00
Jacob Young
42d9789f46
x86_64: fix sysv vector argument passing
2023-05-15 03:07:51 -04:00
Jacob Young
77a8cb5728
x86_64: fix @clz and @ctz of u8
2023-05-15 03:07:51 -04:00
Jacob Young
37ccf35ff2
x86_64: fix struct_field_val crash
2023-05-15 03:07:51 -04:00
Jacob Young
037bf1a580
x86_64: enable integer vector registers
2023-05-15 03:07:51 -04:00
Jacob Young
6c6d8d67cf
x86_64: redo movement, float negation, and @fabs
2023-05-15 03:07:51 -04:00
Jacob Young
b6d6102850
x86_64: reimplement @floatToInt
2023-05-15 03:07:51 -04:00
Jacob Young
e08eab6648
x86_64: add missing encoding feature requirements
2023-05-15 03:07:51 -04:00
Jacob Young
72b4657053
Dwarf: fix overflow write byte_size
2023-05-15 03:07:51 -04:00
Jacob Young
904ffb41de
x86_64: implement calling function references
2023-05-15 03:07:51 -04:00
Jacob Young
57c38f6433
x86_64: implement global payload pointers
2023-05-15 03:07:51 -04:00
Jacob Young
2cbd442a9d
x86_64: implement integer vector movement
2023-05-15 03:07:51 -04:00
Jacob Young
f83ebd8e6c
x86_64: implement stack probing
2023-05-15 03:07:51 -04:00
Jacob Young
3681da25f8
x86_64: remove scratch data tags
2023-05-15 03:07:51 -04:00
Jacob Young
c23e80e671
x86_64: implement @splat
2023-05-15 03:07:51 -04:00
Jacob Young
1336619979
x86_64: fix field_ptr nonsense
2023-05-15 03:07:51 -04:00
Jacob Young
81664f17d5
codegen: implement global enum_numbered
2023-05-15 03:07:51 -04:00
Jacob Young
e36e9323f4
x86_64: implement union_init
2023-05-15 03:07:51 -04:00
Jacob Young
1667e831cf
x86_64: fix issues with getting float fields
2023-05-15 03:07:51 -04:00
Jacob Young
e98e58691f
x86_64: fix crash with logging enabled
2023-05-15 03:07:51 -04:00
Jacob Young
019c884481
x86_64: add missing multply of f16
2023-05-15 03:07:51 -04:00
Eric Joldasov
6f3dacc107
CMakeLists.txt and build.zig: remove deprecated options
...
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-05-14 23:02:01 -07:00
wrongnull
2516d8671f
correct error note and check type of extern variables
2023-05-15 04:52:02 +03:00