Veikka Tuominen
8d1fdfc8ed
Sema: preserve volatileness when constructing field pointers
...
Closes #12928
2022-09-23 17:39:06 +03:00
Sage Hane
cae76d8293
langref: fix minor format error
2022-09-23 15:58:46 +02:00
Bill Nagel
eeeda53423
add missing darwin types
2022-09-23 12:25:40 +03:00
ノYuh
eaaaceaf3c
make fmt.formatAsciiChar
respect options
parameter
2022-09-23 12:20:38 +03:00
noiryuh
0be46866fe
use std.ascii
instead of defining ascii functions in std.fs.path
2022-09-23 12:19:09 +03:00
John Simon
246a39c10e
langref: remove uses of old function pointer syntax
2022-09-23 12:08:30 +03:00
Evin Yulo
dab5bb9247
Fix docstring for std.fs.path.extension
2022-09-22 20:13:09 -04:00
Andrew Kelley
0e4b04672c
CI: remove --fail-with-body option
...
I observed this error:
```
curl: option --fail-with-body: is unknown
```
2022-09-21 22:22:41 -07:00
Andrew Kelley
5dce9368d6
CI: update sourcehut oauth token
...
it expired after one year
2022-09-21 20:34:17 -07:00
Andrew Kelley
99b954b9ce
LLVM: remove purposeless const qualifiers
...
These const qualifiers on pointers to opaque types do not serve any
purpose. If anything they are misleading since the underlying pointers
very likely point to objects that are in fact mutated.
This commit does not change any behavior.
2022-09-21 13:27:23 -07:00
kkHAIKE
4961044ce8
AstGen: store void to ptr result loc when there is no else branch
2022-09-21 20:21:02 +03:00
kkHAIKE
183127733c
AstGen: make loop body's ResultLoc .none
...
Fixes #12555
Fixes #12551
Fixes #12455
2022-09-21 20:20:05 +03:00
Ali Chraghi
0799e98562
std: update NativeTargetInfo.detect doc comments
...
`detect` doesn't take allocator anymore
2022-09-21 20:14:39 +03:00
Jacob Young
14f4c73191
sema: fix typo
2022-09-21 11:29:20 +02:00
Andrew Kelley
85e3204344
stage2: free up 2 ZIR tags
...
cmpxchg_weak and cmpxchg_strong are not very common; demote them to
extended operations to make some headroom.
This commit does not change any behavior, only memory layout of the
compiler.
2022-09-21 03:54:37 -04:00
Andrew Kelley
902f6db67b
Merge pull request #12889 from ziglang/unwrap-error-switch
...
safety: show error return trace when unwrapping error in switch
2022-09-21 02:56:21 -04:00
Andrew Kelley
d7d21672b8
CI: update windows tarball
2022-09-20 19:05:00 -07:00
Veikka Tuominen
694fab4848
std: add return address parameter to panic fn
2022-09-20 19:05:00 -07:00
Veikka Tuominen
8f2e82dbf6
safety: show error return trace when unwrapping error in switch
2022-09-20 19:05:00 -07:00
Andrew Kelley
62ecc154d9
Merge pull request #12904 from Vexu/ptrcast
...
stage2: pointer casting fixes and improvements
2022-09-20 22:02:36 -04:00
Meghan
521c753fda
std: fix os.linux.S function signatures to use mode_t
2022-09-20 17:54:32 -04:00
Joachim Schmidt
1f50810733
Merge pull request #12912 from joachimschmidt557/stage2-arm
...
stage2 ARM: minor fixes
2022-09-20 21:51:02 +02:00
joachimschmidt557
f014de6456
stage2 ARM: fix debug info for arguments passed in registers
2022-09-20 17:14:31 +02:00
joachimschmidt557
258b058eec
stage2 ARM: make sub_sp_scratch MIR instruction use r4
...
r0 is used for argument passing, so this register is not available as
a scratch register upon function entry.
2022-09-20 17:14:27 +02:00
Veikka Tuominen
eef6539049
Sema: handle Value.slice
in beginComptimePtrLoad
2022-09-20 00:50:13 +03:00
Veikka Tuominen
3e80aa9079
Sema: validate @alignOf
type
2022-09-20 00:50:13 +03:00
Veikka Tuominen
540130650f
Sema: pass calculated offset to elemPtrType
in elemPtrSlice
2022-09-20 00:50:13 +03:00
Veikka Tuominen
541b3e3a31
Sema: check pointer qualifiers before implicit cast
...
Closes #12881
2022-09-20 00:50:13 +03:00
Motiejus Jakštys
4521456f66
zig cc: emit to a.out if outpath is unspecified
...
If `-o` is not specified for `zig cc` for linking, it should emit the
`a.out` (or equivalent) to the current directory. So then this:
$ zig cc test.c
Should result in `./a.out`.
If directory is omitted from `Compilation.EmitLoc`, it will default to
the cache directory later in the compilation chain, which will result
in `a.out` missing in the current directory.
If we specify the directory to `Compilation.EmitLoc`, it will be
handled, allegedly, correctly.
Fixes #12858
2022-09-19 15:05:37 -04:00
Veikka Tuominen
fb91483e48
Sema: do not use coerceCompatiblePtr for ptrCast
2022-09-19 18:34:53 +03:00
Veikka Tuominen
e584558bd8
Sema: do not use coerceCompatiblePtr for alignCast
...
Closes #12902
2022-09-19 18:34:52 +03:00
Jakub Konka
e42f83825f
Merge pull request #12893 from ziglang/macho-relocs-cleanup
...
macho: rewrite incremental linker, and init splitting of linking contexts
2022-09-18 23:19:33 +02:00
Loris Cro
2698cb346a
autodoc: don't collect tests, usingnamespace and comptime blocks
...
Previously we were collecting as autodoc decls everything that was a ZIR
decl in a rather naive way. Now we only collect decltests as part of the
data relative to the decl they refer to, and ignore everything else.
2022-09-18 20:00:44 +02:00
Jakub Konka
4474f8dd6e
macho: cleanup how we collect dyld data in incremental linker
2022-09-18 15:13:45 +02:00
Jakub Konka
f4706c23e9
macho: fix after sync with master
2022-09-18 11:01:29 +02:00
Jakub Konka
372acb8350
macho: ensure we extend section size when updating last atom
2022-09-18 10:00:04 +02:00
Jakub Konka
275abf7c57
macho: fix overlapping segments in file offset
2022-09-18 10:00:04 +02:00
Jakub Konka
66942cbc1a
macho: make sure both vmsize and filesize for segments match always
2022-09-18 10:00:04 +02:00
Jakub Konka
2c971f0085
fix code formatting
2022-09-18 10:00:04 +02:00
Jakub Konka
e35a16c7e0
macho: make sure both vmsize and filesize for segments match
2022-09-18 10:00:04 +02:00
Jakub Konka
7f7669a09e
macho: fix building on 32bit targets
2022-09-18 10:00:04 +02:00
Jakub Konka
dc6480dba5
macho: allow for add and ldr when resolving GOT_LOAD_* relocs
2022-09-18 10:00:04 +02:00
Jakub Konka
618c7a3546
macho: add logic for expanding segments in memory
2022-09-18 10:00:04 +02:00
Jakub Konka
e601969244
macho: rewrite how we allocate space in incremental context
2022-09-18 10:00:04 +02:00
Jakub Konka
79ab46ec91
macho: start separating linking contexts
2022-09-18 10:00:04 +02:00
Jakub Konka
53bd7bd044
macho: move to incremental writes and global relocs for incremental
2022-09-18 10:00:04 +02:00
Jakub Konka
34f9360ea2
macho: do not call populateMissingMetadata in full link mode
2022-09-18 10:00:04 +02:00
Jakub Konka
e5da251635
macho: clean up use of section ids
2022-09-18 10:00:04 +02:00
Jakub Konka
05d0c42894
macho: move main driver loop for one-shot into standalone zld module
2022-09-18 10:00:03 +02:00
Jakub Konka
26af8d254a
macho: separate in structure and logic incremental relocs and file relocs
2022-09-18 10:00:03 +02:00