Andrew Kelley
9f957184a1
Merge remote-tracking branch 'origin/master' into llvm16
2023-04-06 13:58:54 -07:00
Andrew Kelley
ef5afbfcf4
zig.h: f16 fix for compiler_rt
...
See #15092
2023-04-06 08:40:02 -07:00
Andrew Kelley
fc9ab4144c
update libcxx to LLVM 16.0.1
2023-04-05 23:22:29 -07:00
alion02
8853005672
Fix crash on some Windows machines
2023-04-06 07:26:07 +02:00
Andrew Kelley
f289277599
Merge remote-tracking branch 'origin/master' into llvm16
2023-04-05 22:05:31 -07:00
Jacob Young
5870ffeb82
compiler_rt: change the abi of f16 on mac to depend on the other type
2023-04-05 22:05:10 -07:00
Jacob Young
243848167b
compiler_rt: attempt to fix f16 abi on mac with llvm 16
2023-04-05 22:05:06 -07:00
jim price
3487514626
std.os: add mincore syscall
...
The mincore syscall is available on some UNIX like operating systems
and allows a user to determine if a page is resident in memory.
2023-04-06 00:57:23 -04:00
David CARLIER
3e467c778a
std: add os_log/signpost api (sort of linux's perf event equivalent)
...
subset.
2023-04-06 07:31:06 +03:00
Nikita Ronja
d92b5fcfb0
Add NetBSD termios constants to std.c.netbsd
2023-04-06 03:46:44 +03:00
David CARLIER
080136e4ad
std: add madvise flags to freebsd
2023-04-05 13:54:01 +03:00
David CARLIER
f86f531e9c
std: add a subset of the apple's QOS api
2023-04-05 09:01:35 +02:00
Jacob Young
ad5fb4879b
std: fix memory bugs
...
This fixes logged errors during CI based on the new GPA checks.
2023-04-05 08:23:07 +02:00
Jakub Konka
5ea6e78943
Merge pull request #15162 from jacobly0/x86_64-start
...
x86_64: get enough things working to enable full `start.zig` logic
2023-04-05 03:02:42 +02:00
Ganesan Rajagopal
49b56f88b9
GPA: Catch invalid frees
...
* GPA: Catch invalid frees
Fix #14791 : Catch cases where an invalid slice is passed to free().
This was silently ignored before but now logs an error. This change
uses a AutoHashMap to keep track of the sizes which seems to be an
overkill but seems like the easiest way to catch these errors.
* GPA: Add wrong alignment checks to free/resize
Implement @Inkryption's suggestion to catch free/resize with the wrong
alignment. I also changed the naming to match large allocations.
2023-04-04 13:11:25 +03:00
David CARLIER
771d07268f
std: freebsd MAP* constants update, MAP_ALIGNED_SUPER and the MAP_ALIGNED macro.
2023-04-04 12:57:16 +03:00
Jacob Young
c91929090d
start: disable extra start logic on various x86_64 subtargets
2023-04-03 15:19:07 -04:00
Jacob Young
f0d13489f8
Elf: add program headers for the program header table
2023-04-03 17:45:17 +02:00
Jacob Young
fde1ec5d0e
x86_64: remove returns from naked functions
2023-04-03 17:45:16 +02:00
Veikka Tuominen
a31450375e
Merge pull request #15134 from castholm/reverse-iterator
...
std.mem.reverseIterator: misc improvements
2023-04-02 18:06:55 +03:00
Jacob Young
83a208c355
x86_64: implement large cmp
2023-04-02 04:49:53 -04:00
Jakub Konka
a88c0b4d08
link: handle -u flag in all linkers
...
Also clean up parsing of linker args - reuse `ArgsIterator`.
In MachO, ensure we add every symbol marked with `-u` as undefined
before proceeding with symbol resolution. Additionally, ensure those
symbols are never garbage collected.
MachO entry_in_dylib test: pass `-u _my_main` when linking executable
so that it is not incorrectly garbage collected by the linker.
2023-04-01 14:22:44 +02:00
Jakub Konka
381dc2d950
Merge pull request #15139 from ziglang/macos-13-fixes
...
Fixes for latest macOS 13.3 SDK release
2023-04-01 14:22:29 +02:00
Jakub Konka
a0a854b1fc
libc: update macOS libSystem.13.tbd
2023-04-01 08:33:13 +02:00
Jakub Konka
575a98a081
Merge pull request #15130 from ziglang/macos-13.3
...
macos: update to latest libc headers macOS SDK 13.3
2023-04-01 08:23:13 +02:00
Carl Ã…stholm
3cd72951c0
std.mem.reverseIterator: add nextPtr()
2023-03-31 22:50:31 +02:00
Carl Ã…stholm
0bbc1ec206
std.mem.reverseIterator: accept pointer to array
2023-03-31 22:48:32 +02:00
Jakub Konka
f6845bbbc6
std: bump max macOS version to 13.3
2023-03-31 21:22:30 +02:00
Jakub Konka
26c88e4f45
libc: update macOS libc headers to latest SDK 13.3
2023-03-31 21:20:47 +02:00
Loris Cro
9cb2919d50
Merge pull request #15127 from der-teufel-programming/autodoc_newbuiltins
...
autodoc: Add new builtins to Autodoc
2023-03-31 17:30:09 +02:00
Loris Cro
ab2c602f34
Merge pull request #14823 from der-teufel-programming/autodoc-quickfixes
...
autodoc: Add struct to tryResolveRefPath
2023-03-31 17:26:55 +02:00
Jakub Konka
23cf44c227
libc: add missing sys/timex.h to macOS libc headers
2023-03-31 12:36:38 +02:00
Krzysztof Wolicki
b69578e19c
autodoc: add new builtins
2023-03-31 11:47:14 +02:00
Jakub Konka
349349fa01
std: simplify VirtualProtectEx and fix ntdll signature
2023-03-30 21:08:31 +02:00
Jakub Konka
ba5302c4f8
std: move ntdll wrappers to std.os.windows
2023-03-30 21:08:31 +02:00
Jakub Konka
5d387742fd
coff: reimplement VirtualProtectEx using our own ntdll wrapper
2023-03-30 21:08:31 +02:00
bing
64214b1ca6
Change ordering of prep provide buffers args
2023-03-30 16:51:57 +00:00
Jacob Young
9c3bea8482
zig.h: fix non-msvc warnings in msvc code
2023-03-30 12:07:12 +03:00
Jakub Konka
2b80552603
Merge pull request #14771 from kcbanner/coff_dynamicbase
...
Allow dynamicbase to be disabled by CompileStep
2023-03-28 20:18:25 +02:00
Tw
5d63d1115f
bpf: add missing *const for helper functions
...
Signed-off-by: Tw <tw19881113@gmail.com>
2023-03-28 14:30:12 +03:00
Jacob Young
0e5e001278
std.MultiArrayList: add set and get to Slice
2023-03-27 05:58:00 -04:00
David CARLIER
1de64dba23
std: add the VM_MAKE_TAG macro for darwin.
2023-03-26 23:56:27 +02:00
Jakub Konka
32591c1d99
Merge pull request #15076 from jacobly0/x86_64-backend
...
x86_64: implement things
2023-03-26 17:31:42 +02:00
Jacob Young
65f77878b4
std: remove temporary workarounds for stage2_x86_64
...
These seem to work great now.
2023-03-25 21:32:55 -04:00
Jakub Konka
59a67e9a43
libc: update macOS libSystem stubs
2023-03-25 21:38:35 +01:00
kcbanner
4569a28ea3
build: fixes from review
2023-03-25 16:33:25 -04:00
Jakub Konka
1b97881e38
libc: update macOS libc headers
2023-03-25 21:27:47 +01:00
kcbanner
113f80bcf7
coff: change dynamicbase to default to true (to match lld), change it to pass the negation to lld, and add --no-dynamicbase
...
build: expose linker_dynamicbase on CompileStep and map it to emit --no-dynamicbase
2023-03-25 16:26:48 -04:00
Marc Tiehuis
37f6f7990e
enable more float-parsing tests
...
Since removing the stage1 backend we no longer have a disagreement here.
2023-03-25 14:09:00 +02:00
Jay Petacat
fcc86832d6
std.enums.IndexedSet: Add initOne and initMany
2023-03-25 13:28:25 +02:00