aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
AgeCommit message (Collapse)Author
2019-07-21simple async function call workingAndrew Kelley
2019-07-19remove coroutines implementation and promise typeAndrew Kelley
2019-07-16libc headers before C language headers, and disable libunwind on arm32Andrew Kelley
2019-07-16update bundled musl source to 1.1.23Andrew Kelley
2019-07-16update musl headers to musl v1.1.23Andrew Kelley
2019-07-15fix result location alignment in ir_render_callAndrew Kelley
2019-07-12mingw libc: solve the segfault having to do with destructorsAndrew Kelley
* fixed --verbose-cc printing an extra "zig" before the rest of the command line * windows-gnu targets use libfoo.a, foo.o extensions to match mingw conventions.
2019-07-11add -Wno-pragma-pack when targeting windows-gnuAndrew Kelley
windows.h has files such as pshpack1.h which do #pragma packing, triggering a clang warning. So for this target, this warning is disabled. this commit also improves the error message printed when no libc can be used, printing the "zig triple" rather than the "llvm triple".
2019-07-10mingw: building and linking mingw32.libAndrew Kelley
2019-07-07expose glibc version in builtinAndrew Kelley
2019-07-07ability to target any glibc versionAndrew Kelley
2019-07-03add -ffunction-sections arg when building C objectsAndrew Kelley
the other changes in this commit are minor tidying up
2019-07-03Merge branch 'function-sections' of https://github.com/timonkruiper/zig into ↵Andrew Kelley
timonkruiper-function-sections
2019-07-03Merge branch 'comptime-union-init' of https://github.com/rbscott/zig into ↵Andrew Kelley
rbscott-comptime-union-init
2019-07-02Merge branch 'has-field' of https://github.com/shawnl/zig into shawnl-has-fieldAndrew Kelley
2019-07-02print dir name on failure to write to cache dirAndrew Kelley
closes #2429
2019-07-02improved logic on whether to include start filesAndrew Kelley
2019-07-02Added ZigLLVMCreateTargetMachine and pass function-sections flagTimon Kruiper
Also added extra cache line Added the ZigLVVMCreateTargetMachine to self hosted zig code
2019-07-01Added function-section functionalityTimon Kruiper
2019-06-28rename std/special/bootstrap.zig to std/special/start.zigAndrew Kelley
2019-06-27fixupsAndrew Kelley
* better detection for already seen packages * "root" instead of "@root"
2019-06-27Merge branch 'root-import' of https://github.com/emekoi/zig into ↵Andrew Kelley
emekoi-root-import
2019-06-26fix incorrectly omitting variable declarationsAndrew Kelley
in non-debug modes
2019-06-26Merge remote-tracking branch 'origin/master' into copy-elision-3Andrew Kelley
2019-06-26all tests passing on linuxAndrew Kelley
2019-06-25fix union init with void payloadAndrew Kelley
all std lib tests passing now
2019-06-24align (vector -> array) store to result locationMichael Dusan
2019-06-22elide redundant safety check when switching on tagged unionsAndrew Kelley
2019-06-22stage1: add @sin @cos @exp @exp2 @ln @log2 @log10 @fabs @floor @ceil @trunc ↵Shawn Landden
@round and expand @sqrt This revealed that the accuracy of ln is not as good as the current algorithm in musl and glibc, and should be ported again. v2: actually include tests v3: fix reversal of in and out arguments on f128M_sqrt() add test for @sqrt on comptime_float do not include @nearbyInt() until it works on all targets.
2019-06-21fix extern functions returning byval structsAndrew Kelley
2019-06-20fix coroutinesAndrew Kelley
2019-06-19fix double getelementptr of runtime globalAndrew Kelley
2019-06-19Merge remote-tracking branch 'origin/master' into copy-elision-3Andrew Kelley
2019-06-19fix optional pointer to size zero structAndrew Kelley
2019-06-19fix comptime test error for empty error setAndrew Kelley
2019-06-19fix extraneous nested union field instructionAndrew Kelley
2019-06-19fix comptime modification of const struct fieldAndrew Kelley
2019-06-19stage1: add support for @mulAdd fused-multiply-add for floats and vectors of ↵Shawn Landden
floats Not all of the softfloat library is being built.... Vector support is very buggy at the moment, but should work when the bugs are fixed. (as I had the same code working with another vector function, that hasn't been merged yet).
2019-06-18back to many behavioral tests passingAndrew Kelley
2019-06-17Remove duplicate exe name with zig runJonathan Marler
2019-06-17inferred comptime values rather than elided scopesAndrew Kelley
because of this example: ```zig export fn entry(b: bool) usize { var runtime = [1]i32{3}; comptime var i: usize = 0; inline while (i < 2) : (i += 1) { const result = if (i == 0) [1]i32{2} else runtime; } comptime { return i; } } ``` The problem is that the concept of "resetting" a result location, introduced in the previous commit, cannot handle elision scopes. This concept is inherently broken with inline loops.
2019-06-15better result location handling of inline loopsAndrew Kelley
2019-06-15better result location semantics with optionals and return locationsAndrew Kelley
somewhere along this branch, #1901 has been fixed.
2019-06-15Merge remote-tracking branch 'origin/master' into copy-elision-3Andrew Kelley
2019-06-14standard library integrates with knowledge of stripped debug infoAndrew Kelley
2019-06-14expose builtin.strip_debug_infoAndrew Kelley
zig code now can be made aware that it will not have any debug information available at runtime.
2019-06-14fix `@export` for arrays not respecting the symbol nameAndrew Kelley
Previously, the symbol name parameter of `@export` would be ignored for variables, and the variable name would be used for the symbol name. Now it works as expected. See #2679
2019-06-14fix peer result location with error code and payloadAndrew Kelley
2019-06-11fixed infinite loop when caching packagesemekoi
2019-06-11made root package available to itselfemekoi