aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler_rt/emutls.zig
AgeCommit message (Collapse)Author
2025-07-07compiler-rt: Export __emutls_get_address for OpenHarmonyAlex Rønne Petersen
2025-03-05Remove uses of deprecated callconv aliasesLinus Groh
2024-09-24std.Target: Introduce Abi.androideabi to distinguish the soft float case.Alex Rønne Petersen
Abi.android on its own is not enough to know whether soft float or hard float should be used. In the C world, androideabi is typically used for the soft float case, so let's go with that. Note that Android doesn't have a hard float ABI, so no androideabihf. Closes #21488.
2024-08-27lib,test,tools,doc: update usages of @exportmlugg
2024-03-20bsd: followup to std.posix extraction from std.osMichael Dusan
netbsd fix: - `Futex.zig:542:56: error: expected error union type, found 'c_int'` openbsd fix: - `emutls.zig:10:21: error: root struct of file 'os' has no member named 'abort'` - `Thread.zig:627:22: error: expected 6 argument(s), found 5`
2024-03-15bsd: debitrot AtomicOrder renamesMichael Dusan
- complete std.builtin.AtomicOrder renames that were missed from 6067d39522f
2024-03-14chore: Fix some typosAhmed
2023-11-19lib: correct unnecessary uses of 'var'mlugg
2023-10-28compiler_rt/emutls: remove unnecessary `@ptrCast` (#17755)XXIV
2023-09-19compiler_rt: fight off `@as` invasionJacob Young
Importantly, fixes incorrectly annotated types in `__aeabi_?2h`.
2023-07-24Use builtin inference over @as where possibleZachary Raineri
2023-06-24all: migrate code to new cast builtin syntaxmlugg
Most of this migration was performed automatically with `zig fmt`. There were a few exceptions which I had to manually fix: * `@alignCast` and `@addrSpaceCast` cannot be automatically rewritten * `@truncate`'s fixup is incorrect for vectors * Test cases are not formatted, and their error locations change
2023-06-16migration: std.math.{min, min3, max, max3} -> `@min` & `@max`r00ster91
2023-04-25change semantics of `@memcpy` and `@memset`Andrew Kelley
Now they use slices or array pointers with any element type instead of requiring byte pointers. This is a breaking enhancement to the language. The safety check for overlapping pointers will be implemented in a future commit. closes #14040
2022-12-28compiler-rt: Set the symbol visibilityLuuk de Gram
When we're compiling compiler_rt for any WebAssembly target, we do not want to expose all the compiler-rt functions to the host runtime. By setting the visibility of all exports to `hidden`, we allow the linker to resolve the symbols during linktime, while not expose the functions to the host runtime. This also means the linker can properly garbage collect any compiler-rt function that does not get resolved. The symbol visibility for all target remains the same as before: `default`.
2022-12-20compiler_rt: Remove errdefer in ObjectArray.initzenith391
These errdefer where never executed, while this didn't bother the stage1 compiler, it caused an error in stage2. The fix is just removing those errdefer which doesn't change any behaviour because they were never executed in the first place.
2022-10-21Support compiling for the android NDK (#13245)Louis Pearson
2022-10-17emutls: add const to default_value fieldJacob Young
Commit f14cc75 accidentally added a const when grepping for assignments to `std.builtin.Type.StructField.default_value`, however when looking into it further, I noticed that even though this default_value field is emitted into the .data section, the value it points to is actually emitted into the .rodata section, so it seems correct to use const here.
2022-09-27use @ptrCast to assigned generic type to default_valueJacob Young
If the type happens to be a pointer, then the double pointer will not coerce implicitly.
2022-06-17compiler-rt: finish cleanupsAndrew Kelley
Finishes cleanups that I started in other commits in this branch. * Use common.linkage for all exports instead of redoing the logic in each file. * Remove pointless `@setRuntimeSafety` calls. * Avoid redundantly exporting multiple versions of functions. For example, if PPC wants `ceilf128` then don't also export `ceilq`; similarly if ARM wants `__aeabi_ddiv` then don't also export `__divdf3`. * Use `inline` for helper functions instead of making inline calls at callsites.
2022-06-17compiler_rt: compile each unit separately for improved archivingJakub Konka
2022-05-06flatten lib/std/special and improve "pkg inside another" logicAndrew Kelley
stage2: change logic for detecting whether the main package is inside the std package. Previously it relied on realpath() which is not portable. This uses resolve() which is how imports already work. * stage2: fix cleanup bug when creating Module * flatten lib/std/special/* to lib/* - this was motivated by making main_pkg_is_inside_std false for compiler_rt & friends. * rename "mini libc" to "universal libc"