Andrew Kelley
472ee18486
stage2: infer --name in more ways
2020-09-09 09:28:05 -07:00
Andrew Kelley
f064f0564f
stage2: improve log message format
2020-09-09 09:28:05 -07:00
Andrew Kelley
71687b30a2
work around stage1 invalid LLVM IR
2020-09-09 09:28:05 -07:00
Andrew Kelley
503ba7b27c
start moving zig cc to stage2
...
* build.zig: repair the ability to link against llvm, clang, and lld
* move the zig cc arg parsing logic to stage2
- the preprocessor flag is still TODO
- the clang arg iterator code is improved to use slices instead of
raw pointers because it no longer has to deal with an extern
struct.
* clean up error printing with a `fatal` function and use log API
for messages rather than std.debug.print
* add support for more CLI options to stage2 & update usage text
- hooking up most of these new options is TODO
* clean up the way libc and libc++ are detected via command line
options. target information is used to determine if any of the libc
candidate names are chosen.
* add native library directory detection
* implement the ability to invoke clang from stage2
* introduce a build_options.have_llvm so we can comptime branch
on whether LLVM is linked in or not.
2020-09-09 09:28:05 -07:00
Vexu
749417a1f3
translate-c: check for builtin typedef macro identifiers
...
Closes #6292
2020-09-09 16:29:16 +03:00
Lachlan Easton
601331833a
Add passing test. close #5343
2020-09-09 21:54:42 +10:00
Lachlan Easton
283d441c19
zig fmt: fix #3978 , fix #2748
2020-09-09 21:54:42 +10:00
Jakub Konka
7d487a4162
Merge pull request #6289 from kubkon/macho
...
macho: fix bug where __text section would get overwritten
2020-09-09 09:00:24 +02:00
Zachary Meadows
edc40157eb
Switch type of HashMap's count from usize to u32 ( #6262 )
2020-09-09 00:33:14 -04:00
Jakub Konka
edbfd04ec1
Do not pad out text blocks
...
It seems MachO does not like padding between text block in __text
section. Unlike in Elf, there is no size information in symbol
struct `nlist_64`.
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-09-08 22:00:31 +02:00
Jakub Konka
9306dbd619
Fix bug where __text section would get overwritten
...
Fixes a bug where the last written load command would accidentally
override the beginning of the __text section. Also defines missing
MachO constants and relocation structs/enums.
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-09-08 20:55:06 +02:00
Mark Barbone
42b1b6be90
Add resize for arena allocator
2020-09-08 13:04:14 -04:00
Jens Goldberg
5bf3e54018
Add the Linux TCP socket options
2020-09-08 13:00:07 -04:00
Andrew Kelley
f6f0e09456
Merge pull request #6267 from mattnite/btf
...
BPF: add BTF
2020-09-08 12:59:31 -04:00
xackus
b8b68cb279
std: clean up bitrotten imports in crypto
2020-09-08 12:54:28 -04:00
Andrew Kelley
8716fde7bc
ci: skip non native builds on windows to save time
2020-09-08 09:53:41 -07:00
Timon Kruiper
61cd9099e2
Zlib: Make deinit function public
2020-09-08 12:21:49 -04:00
Bas van den Berg
44f877d18b
change socklen_t to u32 and add appropriate casts when calling WSA
2020-09-08 12:24:39 +02:00
Bas van den Berg
857613fb65
add unreachable
2020-09-08 12:16:03 +02:00
Bas van den Berg
9094d6cbb8
fix identation with zig-fmt
2020-09-08 12:15:44 +02:00
Bas
4a6ca735d9
Merge branch 'master' into improve-windows-networking
2020-09-08 11:56:59 +02:00
Andrew Kelley
389c260252
Merge branch 'LemonBoy-zlib-cool'
...
closes #6277
closes #213
2020-09-07 15:16:32 -07:00
Andrew Kelley
c15f39212e
build.zig: ignore the compression test files
2020-09-07 15:15:48 -07:00
LemonBoy
2328f40b7a
std: Add DEFLATE and zlib decompressors
2020-09-07 14:59:46 -07:00
Matt Knight
a496f94be9
added map create, update, delete, and prog load
2020-09-07 15:42:41 -04:00
Matthew Knight
db7a238297
BPF: add some more documentation ( #6268 )
...
* added documentation for ringbuffers, which context type maps to which program type, and added some formatting
2020-09-07 15:41:29 -04:00
Andrew Kelley
f96f3265b5
Merge pull request #6265 from mattnite/bpf-finish-insns
...
BPF: Implement rest of pseudo instructions
2020-09-07 15:39:42 -04:00
Matt Knight
b878a64a5f
added license comments
2020-09-07 12:26:41 -07:00
Andrew Kelley
52b8239a22
Merge remote-tracking branch 'origin/master' into llvm11
2020-09-07 11:17:42 -07:00
Vincent Rischmann
533bfc68bf
big int: fix Managed.dump()
2020-09-07 20:44:01 +03:00
Peter Spiess-Knafl
eca20b5e03
Fix compile when using EFI target ( Fixes #6275 )
2020-09-07 20:40:11 +03:00
Matt Knight
cf3194804e
changed enums to lower case
2020-09-07 07:17:21 -07:00
Tadeo Kondrak
acdf1f0bde
@Type for union fixes
2020-09-07 06:23:50 -06:00
Tadeo Kondrak
771f35c593
Use less inefficient method of replacing TypeInfo.UnionField.enum_field
2020-09-07 06:23:27 -06:00
Tadeo Kondrak
ac19ccf595
Update standard library for removal of TypeInfo.UnionField.enum_field
2020-09-07 06:23:26 -06:00
Tadeo Kondrak
ff2ed966bb
Implement @Type for Union
...
This removes TypeInfo.UnionField.enum_field, which is redundant with
TypeInfo.Union.tag_type.
2020-09-07 06:23:24 -06:00
Matt Knight
e7547eeefa
fixed missing 'packed' keyword
2020-09-06 22:31:35 -07:00
Matt Knight
caaa9ad2af
added btf
2020-09-06 21:44:16 -07:00
Matt Knight
67817b230f
fixed improper builtin import
2020-09-06 17:09:25 -07:00
Matt Knight
cf06817768
improved compile error message
2020-09-06 16:21:05 -07:00
Andrew Kelley
d7268cbb24
Merge pull request #6232 from LemonBoy/fix-readall
...
std: Don't trust stat() size in readAllAlloc fns
2020-09-06 19:19:57 -04:00
Matt Knight
a993c7dd1b
removed redundant pseudo insn
2020-09-06 16:19:49 -07:00
Matt Knight
295f09eadc
implemented and testing op codes for instructions documented in the unofficial bpf insn reference
2020-09-06 16:12:27 -07:00
Daniel Ludwig
a8a806e925
std.ChildProcess: use "\Device\Null" on Windows
2020-09-06 18:25:33 -04:00
dec05eba
ff58f09b68
Use better haystack size and needle size for cutoff between linear and BMH
2020-09-06 16:23:18 +02:00
Andrew Kelley
32a77a6047
Merge pull request #6239 from pfgithub/patch-1
...
Support allocating 0 bit types
2020-09-06 01:16:33 -04:00
dec05eba
8af1f8ba1a
Add comment to clearify why the first/last element in preprocess is
...
skipped
2020-09-05 21:15:44 +02:00
dec05eba
0a016e8fc2
Fix indexOf and lastIndexOf with empty needle
2020-09-05 16:55:32 +02:00
dec05eba
f93498d2d8
Fix start index if @sizeOf(T) > 1
2020-09-05 15:31:22 +02:00
dec05eba
3a6e6bd538
Check if the type has unique bit representation to see if it can be compared byte-wise
2020-09-05 15:20:48 +02:00