aboutsummaryrefslogtreecommitdiff
path: root/src-self-hosted
AgeCommit message (Collapse)Author
2020-04-15translate-c: correct invalid shortcutVexu
2020-04-14Translate C: Redo Add comment containing c source location for failed decls. Lachlan Easton
2020-04-11ArrayList: remove old (before span) APIxackus
2020-04-11revert Translate C: Add comment containing c source location for failed declsAndrew Kelley
This reverts 0db108101a30a2ac5ec4dc9911d488f9036256b8. Unfortunately this caused a regression. Closes #5007.
2020-04-11fix compilation under mingwemekoi
2020-04-10Merge pull request #4711 from leroycep/feature-file-locksAndrew Kelley
Add lock option to File.OpenFlags and File.CreateFlags
2020-04-10Merge branch 'master' into nameless-fieldsAuguste Rame
2020-04-08Translate C: Allow casting literal ints to pointersLachlan Easton
2020-04-08Translate C: Put an alignCast in c style pointer casts to allow opaque types ↵Vexu
to cast properly in C macros Translate C: add test case for aligning opaque types in pointer casts
2020-04-07more fixesSuperAuguste
2020-04-07Merge pull request #4684 from LakeByTheWoods/comment_failed_declsVexu
Translate C: Add comment containing c source location for failed decls
2020-04-07msvc fixSuperAuguste
2020-04-07remove debug statementSuperAuguste
2020-04-07Nameless struct field consistencySuperAuguste
2020-04-06Merge branch 'master' into feature-file-locksLeRoyce Pearson
2020-04-06libc_installation.zig: don't special-case based on C ABIAndrew Kelley
Whether the C ABI is mingw-w64 or msvc, detection of native libc paths should be the same. In the future we may want to allow passing a C ABI parameter to detectNativeCPaths() but for now we have the same behavior regardless.
2020-04-06Merge pull request #4939 from SuperAuguste/masterVexu
translate-c: Properly translate C multicharacter literals
2020-04-05fixesSuperAuguste
2020-04-05Merge pull request #4901 from phase/feature/translate-c-remassignVexu
translate-c: RemAssign and DivAssign
2020-04-05translate-c: remove unneeded semicolonJadon Fowler
Signed-off-by: Jadon Fowler <j@jadon.io>
2020-04-04fix multichar literals in translate_cSuperAuguste
2020-04-04rename mem.separate to mem.splitxackus
2020-04-04detect an endless loop when trying to detect native libc installationAndrew Kelley
closes #4810
2020-04-04zig cc looks for native include directories unless -nostdincAndrew Kelley
closes #4938
2020-04-04translate-c: account for signedness when translating div & modJadon Fowler
Signed-off-by: Jadon Fowler <j@jadon.io>
2020-04-03Merge pull request #4868 from xackus/new-arraylist-apiAndrew Kelley
new ArrayList API
2020-04-02Fix compile errors in stage2LeRoyce Pearson
2020-04-02Merge branch 'master' into feature-file-locksLeRoyce Pearson
2020-04-02Merge branch 'master' into feature-file-locksLeRoyce Pearson
2020-04-02zig cc: fix ambiguity with -MTAndrew Kelley
In an MSVC context, `-MT` means "Use static run-time" and it is a flag with no parameter. On POSIX it means "Specify name of main file output in depfile" and it is "joined or separate". The former was interfering with the latter. Now, the MT flag is required to be specified with a `/` to disambiguate: `/MT`.
2020-04-02zig cc: support -F and -frameworkAndrew Kelley
2020-04-02zig cc: respect -MF -MV -MD optionsAndrew Kelley
Zig disables its caching and forwards these args when any are provided. see #4784
2020-04-02new ArrayList API: fix everything elsexackus
2020-04-01zig cc: detect -mcpu, -march, -mtuneAndrew Kelley
However these are all treated like zig's -mcpu parameter. See #4784
2020-04-01zig cc: add support for -L linker argumentsRejean Loyer
2020-04-01zig cc properly handles -S flag and .ll, .bc extensionsAndrew Kelley
2020-04-01fix regressions from previous commitAndrew Kelley
2020-04-01translate-c: translate DivAssign & RemAssignJadon Fowler
Closes #4790 Signed-off-by: Jadon Fowler <j@jadon.io>
2020-04-01(breaking) std.Buffer => std.ArrayListSentineled(u8, 0)Andrew Kelley
This new name (and the fact that it is a function returning a type) will make it more clear which use cases are better suited for ArrayList and which are better suited for ArrayListSentineled. Also for consistency with ArrayList, * `append` => `appendSlice` * `appendByte` => `append` Thanks daurnimator for pointing out the confusion of std.Buffer.
2020-04-01fixups and revert a few thingsAndrew Kelley
2020-04-01Use length field as passed in stage2 libc_installation instead of relying on ↵daurnimator
zero termination
2020-04-01std: use std.ArrayList(u8).OutStream instead of std.Buffer.OutStreamdaurnimator
2020-04-01std: use std.ArrayList(u8) instead of std.Buffer in ↵daurnimator
src-self-hosted/translate_c.zig
2020-04-01Tidy up some mem.spanZ use-sites now that null is accepteddaurnimator
2020-03-31fixes to 32-bit handling, to support 32-bit armAndrew Kelley
2020-03-30revert detection of rtti and exceptionsAndrew Kelley
This caused link errors in c++ code because it was not correct to pass these flags to child codegens. And that was the only reason to detect these flags. Otherwise we can safely rely on non-explicitly-detected flag forwarding.
2020-03-30std lib API deprecations for the upcoming 0.6.0 releaseAndrew Kelley
See #3811
2020-03-28Conv macro string concat to ++Layne Gustafson
2020-03-28Merge branch 'master' into feature-file-locksLeRoyce Pearson
2020-03-28Sync clang_options_data.zig with update_clang_optionsRyan Liptak
Some of the recent c++ related options were added to update_clang_options but didn't make it into clang_options_data.zig