Justas Zabulionis
24d718e7eb
std.valgrind.callgrind: fix string type
...
Fixes the error when using std.vallgrind.callgrind:
error: expected type '[2]u8', found '*const [2:0]u8'
2022-08-22 13:55:00 +03:00
Veikka Tuominen
62ff8871ed
stage2+stage1: remove type parameter from bit builtins
...
Closes #12529
Closes #12511
Closes #6835
2022-08-22 11:19:20 +03:00
Veikka Tuominen
b55a5007fa
Sema: fix parameter of type 'T' must be comptime error
...
Closes #12519
Closes #12505
2022-08-22 11:16:36 +03:00
Jakub Konka
6c020cdb76
Merge pull request #12557 from Luukdegram/wasm-archive
...
wasm-linker: Improve archive linking
2022-08-22 08:38:41 +02:00
John Schmidt
9cf667a21b
Enable unexpectedErrno error tracing for stage2 LLVM
...
Stage2 seems to be able to handle this now.
2022-08-21 23:41:01 +03:00
Luuk de Gram
d4c56804df
std: fix EmulatableRunStep
...
Fixes a compilation error when using the `EmulatableRunStep`
that is being generated from a step directly using `runEmulatable`.
2022-08-21 16:42:11 +02:00
Der Teufel
76c9ee9b30
autodoc: Fixed compileError case in exprName
2022-08-21 06:32:26 +02:00
Der Teufel
a022157956
autodoc: compileError now uses index into exprs instead of a []const u8
2022-08-21 05:29:39 +02:00
Luuk de Gram
7fe2a3d104
test/link: add wasm linker-test for archives
...
Adds a test case that will pull-in compiler-rt symbols,
and therefore link with the compiler-rt archive file.
2022-08-20 15:46:39 +02:00
Ryan Liptak
9740bb2423
autodoc: Fix border color around field docs in light mode
...
Follow up to https://github.com/ziglang/zig/pull/12305
2022-08-19 19:06:01 -07:00
Andrew Kelley
4a27d2aac6
std.os.linux.bpf: fix compile error
2022-08-19 16:45:16 -07:00
Jakub Konka
10b95d89f8
coff: change improperly used packed struct into extern struct
2022-08-19 16:45:16 -07:00
Andrew Kelley
445b33cfc0
fix std.os.windows.PathSpace.span
...
it was returning a pointer to a parameter.
2022-08-19 16:45:16 -07:00
Andrew Kelley
507aae4a1a
make self-hosted the default compiler
...
stage1 is available behind the -fstage1 flag.
closes #89
2022-08-19 16:45:15 -07:00
Andrew Kelley
cee82c7ce4
improved ABI alignment/size for >= 128-bit integers
...
* riscv64: adjust alignment and size of 128-bit integers.
* take ofmt=c into account for ABI alignment of 128-bit integers and
structs.
* Type: make packed struct support intInfo
* fix f80 alignment for i386-windows-msvc
2022-08-18 20:34:36 -07:00
Andrew Kelley
b975f7a56f
std.Target gains ObjectFormat field
2022-08-18 18:58:28 -07:00
Andrew Kelley
6e313eb110
stage2: agree with LLVM that @alignOf(u128) is 8
...
on x86_64 and similar targets.
2022-08-18 17:11:32 -07:00
Ben Fiedler
7d674d5fb6
build: Allow comptime_int in OptionsStep.addOption
2022-08-18 23:00:44 +02:00
Ali Chraghi
51b2aa1643
docs: add padding between functions list
2022-08-18 22:02:02 +04:30
Sage Hane
f6459721e5
std.build: Fix typo in LibExeObjStep.runEmulatable's assertion
2022-08-18 20:08:25 +03:00
Eric Joldasov
b97ae88898
std.zig.system.NativeTargetInfo: look for a shebang line in /usr/bin/env, if any
2022-08-18 19:57:50 +03:00
zooster
4055e6055b
AstGen: disallow leading zeroes in int literals and int types
...
This makes `0123` and `u0123` etc. illegal.
I'm now confident that this is a good change because
I actually caught two C header translation mistakes in `haiku.zig` with this.
Clearly, `0123` being octal in C (TIL) can cause confusion, and we make this easier to read by
requiring `0o` as the prefix and now also disallowing leading zeroes in integers.
For consistency and because it looks weird, we disallow it for integer types too (e.g. `u0123`).
Fixes #11963
Fixes #12417
2022-08-18 19:54:51 +03:00
Loris Cro
53e971226d
autodoc: minor pr cleanup
2022-08-18 18:02:19 +02:00
der-teufel-programming
3ed9cdc1cc
Merge branch 'ziglang:master' into master
2022-08-18 14:10:47 +02:00
Der Teufel
656b9429d0
autodoc: An attempt at generating HTML files from all imported source
...
files. Files generated from the standard library could be considered
for placing with main.js and index.html in lib/docs. Paths should
reflect packages in the future.
2022-08-18 14:03:42 +02:00
Andrew Kelley
df507edffe
Merge pull request #12461 from ziglang/fix-12421
...
Fixes link-tests and `atomicSymLink` on Windows
2022-08-18 00:50:14 -04:00
Techatrix
79757f233d
fix memory leak in NativePaths.zig
2022-08-17 19:05:39 -04:00
Jakub Konka
515ee5b2fa
libstd: do not follow symlinks in renameatW
...
This correctly mimicks POSIX behavior.
2022-08-17 23:13:58 +02:00
Jakub Konka
070282a96e
libstd: fix off-by-one error in def of ProcSym in pdb
...
Make sure `ProcSym` includes a single element byte-array which delimits
the start of the symbol's name as part of its definition. This makes
the code more elegant in that accessing the name is equivalent to taking
the address of this one element array.
2022-08-17 16:36:02 -04:00
r00ster91
4ea3a9ba9f
fix: comments
2022-08-17 20:08:13 +02:00
r00ster91
37880f2385
api: deprecate lowercase control_code consts
2022-08-17 20:07:58 +02:00
Andrew Kelley
a12abc6d6c
Merge pull request #12456 from Vexu/stage2
...
Stage2 namespacing fixes
2022-08-16 19:57:22 -04:00
r00ster91
298062897d
docs: fixes and improvements
2022-08-16 21:37:02 +02:00
Andrew Kelley
9d85335de9
Merge pull request #12427 from r00ster91/nicelexer
...
tokenizer: cleanups
2022-08-16 14:08:31 -04:00
Veikka Tuominen
9d4561ef00
AstGen: detect declarations shadowing locals
...
Closes #9355
2022-08-16 20:35:03 +03:00
Loris Cro
7f7d58ee89
Merge branch 'master' into autodoc-links
2022-08-16 16:52:26 +02:00
Loris Cro
5929da37a1
autodoc: absolute line numbers in decl [src] links
2022-08-16 16:51:32 +02:00
Loris Cro
0a0b3dda03
autodoc: remove reference to github, replace with placeholder link
2022-08-16 16:19:54 +02:00
r00ster91
83909651ea
test: simplify testTokenize
...
What this does is already done by `expectEqual`.
Now the trace seems to be shorter and more concise so the errors should be easier to read now.
2022-08-16 00:20:19 +02:00
r00ster91
5490688d65
refactor: use std.ascii functions
2022-08-16 00:20:19 +02:00
r00ster91
e3b3eab840
test(names): some renamings
2022-08-16 00:20:19 +02:00
r00ster91
f07cba10a3
test(names): remove unnecessary "tokenizer - " prefix
2022-08-16 00:20:19 +02:00
Loris Cro
aefb091973
Merge pull request #12445 from r00ster91/noresults
...
autodoc: better No Results Found page and other improvements
2022-08-15 20:50:34 +02:00
Ryan Liptak
764cf4e53f
std.fs: Fix WalkerEntry.dir not always being the containing dir
...
Before this commit, the modified test would fail with `FileNotFound` because the `entry.dir` would be for the entry itself rather than the containing dir of the entry. That is, if you were walking a tree of `a/b`, then (previously) the entry for `b` would incorrectly have an `entry.dir` for `b` rather than `a`.
2022-08-15 11:25:51 +03:00
Yujiri
2279f27e0f
Fix #12423 : auto_hash not hashing arrays of slices uniquely
2022-08-14 23:12:48 +03:00
r00ster91
ee97fbc199
api: deprecate isPunct too
...
See https://github.com/ziglang/zig/issues/8419#issuecomment-843719898
2022-08-14 22:04:13 +02:00
r00ster91
846dbf2745
docs: remove some hyphens
2022-08-14 21:49:21 +02:00
r00ster91
8890190857
fix: add missing 'o'
2022-08-14 21:46:26 +02:00
r00ster91
028134055c
fix: remove outdated TODO
...
It was supposed to be removed: 490654c332 (r47643278)
2022-08-14 21:43:40 +02:00
r00ster91
9b79c6ae52
test: update and add more tests
2022-08-14 21:42:24 +02:00