Commit Graph

1925 Commits (137c8f5e8a6023db24f90555e968b592a4b843e4)

Author SHA1 Message Date
Andrea Orru 569cf286ff Fix for LLD on linker scripts with empty sections 2017-10-04 15:24:06 +02:00
Snorre 522b431057 fix isatty for macOS and libc (#523) 2017-10-03 09:33:30 -04:00
Andrew Kelley 3af35fc1df fix mingw build 2017-10-03 09:32:38 -04:00
Andrew Kelley f86684f410 fix duplicated symbols in compiler-rt tests 2017-10-03 01:26:07 -04:00
Andrew Kelley 8d4668231a compiler-rt tests pass with and without libc 2017-10-03 01:15:07 -04:00
Andrew Kelley 3c6eff465d fix tests on linux and macos 2017-10-03 01:14:29 -04:00
Andrew Kelley 402b03c4a9 Merge branch 'windows-alignment' 2017-10-03 00:58:57 -04:00
Andrew Kelley 6a0c428997 use __chkstk_ms compiler-rt functions for __chkstk
I had to revert the target native features thing because there
is still some incorrect behavior with f128.

Reopens #508
partially reverts b505462509

See #302
2017-10-03 00:57:02 -04:00
Andrew Kelley b505462509 replace __chkstk function with a stub that does not crash
Closes #508
See #302
2017-10-03 00:29:41 -04:00
Andrew Kelley f1bd02e6f4 add @setAlignStack builtin 2017-10-03 00:29:27 -04:00
Andrew Kelley c180ef86af fix travis 2017-10-02 10:48:20 -04:00
Andrew Kelley ec40542c44 windows: alignstack=16 on every function
See #302
2017-10-02 09:55:49 -04:00
Andrew Kelley 0a4283b38b support terminal colors for cmd.exe and msys pty
See #302
2017-10-02 01:37:05 -04:00
Andrew Kelley b3f3db46be compiler-rt: strong linkage for __chkstk
otherwise we get undefined symbol errors
2017-10-02 00:22:24 -04:00
Andrew Kelley 25ea8f7dbb fix typo in compiler-rt 2017-10-02 00:13:56 -04:00
Andrew Kelley 5cbae7b671 better compiler-rt linkage logic
now the compiler-rt tests are passing on windows. See #302
2017-10-02 00:11:45 -04:00
Andrew Kelley 8156e4f78f fix parse-c tests 2017-10-01 21:42:33 -04:00
Andrew Kelley e3ea0b652c still build compiler-rt when linking msvc CRT
because it's missing some things
2017-10-01 21:19:58 -04:00
Andrew Kelley 756d5c545d remove unused function 2017-10-01 21:07:02 -04:00
Andrew Kelley 4d865e355b support linking against MSVC libc 2017-10-01 21:05:08 -04:00
Andrew Kelley 1563574740 add git rev name to version string when available 2017-10-01 18:34:22 -04:00
Andrew Kelley 271d6f8bb2 fix regression from previous commit 2017-10-01 18:33:57 -04:00
Andrew Kelley 1962c8588f implement standard library path search
closes #463
See #302
2017-10-01 18:30:31 -04:00
Andrew Kelley 9636603a3b fix build when no cmake path args specified
broken by 0227becb56
2017-10-01 16:10:35 -04:00
Andrew Kelley 0975e37b16 fix implementation of --zig-std-dir
see #463
2017-10-01 15:51:55 -04:00
Andrew Kelley 0227becb56 build: escape backslashes in path arguments given to cmake 2017-10-01 14:01:18 -04:00
Andrew Kelley 4bf149795a update hello world examples
edge cases matter

See #510
2017-10-01 12:40:30 -04:00
Andrew Kelley a2e6ada1c6 travis: set -e on osx script 2017-10-01 11:59:21 -04:00
Andrew Kelley a458ec9998 travis: older wine only works with i386 builds 2017-10-01 11:50:53 -04:00
Andrew Kelley c42f7309b6 travis: fix typo in linux script 2017-10-01 11:27:42 -04:00
Andrew Kelley 6ae631d1a7 add windows 32 bit to test matrix
See #302
2017-10-01 11:11:38 -04:00
Andrew Kelley 5e6fc94b7f fix codegen on windows 2017-10-01 03:05:01 -04:00
Andrew Kelley 6f250f568a workaround llvm bug for windows alignment
See #302
2017-09-30 23:42:44 -04:00
Andrew Kelley 844e05f619 improve bit shift API in std.math
* `shl` moved to `shlExact`
 * added `shl` and `shr` which are truncating like `<<` and `>>`.

closes #403
2017-09-30 21:09:58 -04:00
Andrew Kelley c6295fe9ab remove zigrt
adds test case for #394

partially reverts a32b5929cc
2017-09-30 20:21:57 -04:00
Andrew Kelley 6db589fff5 don't try to use cold calling convention on windows
it just causes a segfault
2017-09-30 20:20:51 -04:00
Andrew Kelley 08708ea4dc fix typo in target_can_exec logic 2017-09-30 20:10:09 -04:00
Andrew Kelley cd58b40011 update C headers to clang 5.0.0 2017-09-30 18:20:55 -04:00
Andrew Kelley ba3d21ca67 better divTrunc codegen
branch and phi instead of select instruction

fixes division test for windows. See #302
2017-09-30 16:59:31 -04:00
Andrew Kelley 588d2862d9 workaround for invalid binary created on windows
when target native features are used.

See #508
2017-09-30 15:47:46 -04:00
Andrew Kelley 845f22101b zig test on 64-bit windows runs 32-bit tests 2017-09-30 14:40:16 -04:00
Andrew Kelley d43204c950 better output for cross platform zig test on windows 2017-09-30 14:07:26 -04:00
Andrew Kelley 5c4504e005 disable /W4 on MSVC 2017-09-30 14:00:27 -04:00
Andrew Kelley 9c6e12ac29 compiler-rt: add _aulldiv and _aullrem for i386 windows 2017-09-30 13:58:05 -04:00
Andrew Kelley b7a4f16cc4 fix previous commit 2017-09-30 13:40:55 -04:00
Andrew Kelley 53aa72b58a add ___chkstk_ms compiler-rt function 2017-09-30 13:39:37 -04:00
Andrew Kelley 09369b6a43 better implementation of os_spawn_process for windows
See #302
2017-09-30 00:43:22 -04:00
Andrew Kelley 3fe50cb13c simpler cmake for msvc 2017-09-28 10:48:13 -04:00
Andrew Kelley fb365e3952 fix build on mingw 2017-09-28 09:43:40 -04:00
Andrew Kelley 0cfeefbf15 Merge pull request #502 from zig-lang/f128-literals
Allow 128-bit hex float literals
2017-09-28 08:48:19 -04:00