Skip to content

[pull] master from ziglang:master#592

Merged
pull[bot] merged 13 commits intoAlan-love:masterfrom
ziglang:master
Feb 26, 2021
Merged

[pull] master from ziglang:master#592
pull[bot] merged 13 commits intoAlan-love:masterfrom
ziglang:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Feb 25, 2021

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

LemonBoy and others added 12 commits February 25, 2021 22:20
Re-enable the clear-on-free step, it was previously disabled due to
translate-c using freed memory.
When two pointers are subtracted, both shall point to elements of the
same array object, or one past the last element of the array object;
the result is the difference of the subscripts of the two array elements.

The size of the result is implementation-defined, and its type
(a signed integer type) is ptrdiff_t defined in the <stddef.h> header.
If the result is not representable in an object of that type,
the behavior is undefined.

See C Standard, §6.5.6 [ISO/IEC 9899:2011]

Fixes #7216
Add a new allocated_registers bitmap to keep track of all callee-saved
registers allocated during generation of this function.

Function(.arm).gen uses this data to generate instructions in the
function prologue and epilogue to push and pop these registers
respectively.
* remove unused definitions
* setup os specific blocks
* add cpu count
* use haiku find_directory
* add definitions and exports for building in haiku
 * no isHaiku() function since there is not more than one os tag that
   this applies to.
 * clean up some control flow into a switch
 * add some TODO comments to investigate panics that suspiciously look
   like they should be compile errors (see #363)
* add error_union value tag.
* add analyzeIsErr
* add Value.isError
* add TZIR wrap_errunion_payload and wrap_errunion_err for
  wrapping from T -> E!T and E -> E!T
* add anlyzeInstUnwrapErrCode and analyzeInstUnwrapErr
* add analyzeInstEnsureErrPayloadVoid:
* add wrapErrorUnion
* add comptime error comparison for tests
* tests!
This is an accident from a merge conflict introduced in
7edb204.

The new pipe2 code I believe is supposed to work for all posix-like
systems. If haiku needs special handling here, it should be
re-introduced.
@pull pull bot added the ⤵️ pull label Feb 26, 2021
@pull pull bot merged commit fd208d9 into Alan-love:master Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants