Dominic
e1f5ad3cc8
Fix parsing of hexadecimal literals
2023-05-07 08:05:53 +00:00
dweiller
4d296debef
test: disable by-length slice test on wasm backend
2023-05-07 15:55:21 +10:00
dweiller
e507f0c0aa
test: add behavior tests for pointer slice-by-length
2023-05-07 15:55:21 +10:00
dweiller
7c8d60e814
test: add behavior tests for slice-by-length
2023-05-07 15:55:20 +10:00
Nameless
1b3ebfefd8
fix keepalive and large buffered writes
2023-05-06 21:35:16 -05:00
Nameless
5f219a2d11
std.http.Server: give Response access to their own allocator
...
* This makes it easier for threaded servers to use a different allocator
for each request.
2023-05-06 21:35:16 -05:00
Nameless
533049fdd8
std.http.Server: use enum for reset state instead of bool
2023-05-06 21:35:15 -05:00
Nameless
71c228fe65
std.http: add simple standalone http tests, add state check for http server
2023-05-06 21:35:15 -05:00
r00ster91
3485a0e7fb
Sema: fix and improve errors for for loop objects and non-indexables
...
Operands to @memcpy and @memset were being called "for loop operands" in
the error.
2023-05-06 09:32:34 +02:00
r00ster91
743976ef48
Sema: add some missing apostrophes to error messages
2023-05-06 09:32:34 +02:00
Motiejus Jakštys
3eaca9bbc6
glibc hacks: also add a few dn_* functions
2023-05-04 10:36:05 +03:00
Veikka Tuominen
3f3b1a6808
std.Build: use Step.* instead of *Step
...
Follow up to 13eb7251d37759bd47403db304c6120c706fe353
2023-05-03 20:55:29 -07:00
Jacob Young
a19faa2481
x86_64: implement movement of more types
...
* f16
* f128
* vector
2023-05-03 04:25:14 -04:00
Jacob Young
36a39267b8
x86_64: fix feature confusion
2023-05-03 04:25:14 -04:00
Jacob Young
9ccdbca635
x86_64: implement fabs
2023-05-03 04:25:14 -04:00
Jacob Young
31429a4e86
codegen: handle variable and decl_ref_mut consistently
2023-05-03 04:25:14 -04:00
Jacob Young
f894ec264b
codegen: fix global nested field_ptr
2023-05-03 04:25:14 -04:00
Jacob Young
3a30b82741
x86_64: implement fieldParentPtr
2023-05-03 04:25:14 -04:00
Jacob Young
3f5592c114
x86_64: implement slice elem ptr for more MCValue tags
2023-05-03 04:25:14 -04:00
Jacob Young
f56f5af403
x86_64: fix global slices
2023-05-03 04:25:14 -04:00
mlugg
152c7b1885
Implement multi-argument @min/@max and notice bounds
...
Resolves : #14039
2023-05-02 16:46:27 -07:00
Jacob Young
db88b41472
x86_64: fix switch multi-prongs and mul/div flags clobber
2023-05-01 19:22:53 -04:00
Jakub Konka
5e7f3d5daa
x86_64: disable advanced memset tests on Windows
2023-05-01 19:22:53 -04:00
Jacob Young
47a34d038d
x86_64: implement tagName
2023-05-01 19:22:52 -04:00
Jacob Young
10a4c2269d
x86_64: enable normal start/test_runner logic on more targets
2023-05-01 19:22:52 -04:00
Jacob Young
c388960042
x86_64: fix large not and atomicrmw
2023-05-01 19:22:52 -04:00
Jacob Young
50f96c2949
x86_64: fix stack realignment
2023-05-01 19:22:52 -04:00
Jacob Young
db76ae8260
x86_64: fix emitting f80 globals
2023-05-01 19:22:52 -04:00
Jacob Young
6de457211f
behavior: update affected tests for the x86_64 backend
2023-05-01 19:22:52 -04:00
kcbanner
ec6ffaa1e4
sema: improve the error message when coercing to []anyopaque
2023-04-30 16:40:06 -07:00
Andrew Kelley
c83ab7cc6a
Merge pull request #15503 from r00ster91/noinline
...
Sema: emit error for always_inline call of noinline function
2023-04-29 11:13:51 -07:00
Andrew Kelley
7baf0de807
Merge pull request #15458 from koachan/sparc64-codegen
...
stage2: sparc64: Yet another patchset for the selfhosted backend
2023-04-29 10:55:50 -07:00
r00ster91
dff6efe369
Sema: disallow indexing non-tuple struct
...
Fixes #15497
2023-04-29 14:28:36 +03:00
r00ster91
bd8b5c25ec
Sema: emit error for always_inline call of noinline function
...
Fixes #15489
This also lays the groundwork for exposing the whether or not a function is
noinline in std.builtin.Fn as an `is_noinline: bool` field if we ever want to do that.
2023-04-29 04:19:58 +02:00
Koakuma
d339e86fb1
stage2: sparc64: Skip unimplemented tests
2023-04-28 16:45:37 -07:00
Andrew Kelley
85ffb8f18f
disable 2 failing behavior tests with x86 backend
2023-04-28 13:29:39 -07:00
Andrew Kelley
73d3fb9883
C backend: fix ptr comparison of array ptrs when one is null-terminated
2023-04-28 13:24:43 -07:00
Andrew Kelley
a67dec1c9f
disable not yet passing new behavior tests from this branch
2023-04-28 13:24:42 -07:00
Andrew Kelley
9295355985
LLVM backend: optimize memset with comptime-known element
...
When the element is comptime-known, we can check if it has a repeated
byte representation. In this case, `@memset` can be lowered with the
LLVM intrinsic rather than with a loop.
2023-04-28 13:24:42 -07:00
Andrew Kelley
00b690540e
llvm backend: fix lowering of memset
...
The bitcast of ABI size 1 elements was problematic for some types.
2023-04-28 13:24:42 -07:00
Andrew Kelley
fd6200eda6
Merge pull request #15431 from kcbanner/fix_decl_value_arena
...
sema: Rework Decl.value_arena to fix another memory corruption issue
2023-04-28 11:43:57 -07:00
Andrew Kelley
011bc59e8a
Merge pull request #15435 from jacobly0/x86_64-frame
...
x86_64: add frame indices
2023-04-27 15:45:01 -07:00
Andrew Kelley
aa3405aabc
Merge pull request #15474 from Luukdegram/wasm-atomics
...
wasm: implement atomic instructions
2023-04-27 08:26:35 -07:00
xEgoist
1a455b2dd8
test: Fix windows_spawn tmp directory cleanup
...
On Windows, a directory that's set as the current working directory is
not allowed to be removed. This can cause error on `deleteTree` if the
CWD is set to the file to be removed and will cause `error.FileBusy`.
However, due to `tmp.cleanup()` ignoring the errors, the folder removal error will
be ignored. The only test violating this is `windows_spawn`. As a
solution, setting the parent directory to be the CWD before deletion
will allow the cleanup to pass.
2023-04-27 11:01:02 +03:00
kcbanner
2b592d7e3c
sema: Rework Decl.value_arena to fix another memory corruption issue
...
This fixes a bug where resolveStructLayout to was promoting from stale
value_arena state which was then overwrriten when another ArenaAllocator
higher in the call stack saved its state back. This resulted in the memory
for struct_obj.optmized_order overlapping existing allocations.
My initial fix in c7067ef wasn't sufficient, as it only checked if the struct being
resolved had the same owner as the current sema instance. However, it's
possible for resolveStructLayout to be called when the sema instance
has a different owner, but the struct decl's value_arena is currently in
use higher up in the callstack.
This change introduces ValueArena, which holds the arena state as well as tracks
if an arena has already been promoted from it. This allows callers to use the
value_arena storage without needing to be aware of another user of this same storage
higher up in the call stack.
2023-04-27 01:11:57 -04:00
Jakub Konka
bc69d5a00f
macho: invalidate GOT/stub relocs after segment shift in memory
2023-04-26 19:08:38 -04:00
Jacob Young
b5b0b55582
x86_64: fix tlv references
2023-04-26 19:05:17 -04:00
Jacob Young
a8842b6cbf
cases: disable broken backends
...
Disable backends that don't support the new liveness format.
2023-04-26 19:05:17 -04:00
Jacob Young
894406b9d3
behavior: update passing cbe tests
2023-04-26 19:05:17 -04:00
Andrew Kelley
3c66850e42
Merge pull request #15278 from ziglang/memcpy-memset
...
change semantics of `@memcpy` and `@memset`
2023-04-26 10:01:54 -07:00