Commit graph

465 commits

Author SHA1 Message Date
Martin
b144fe1123 Merge branch 'master' into merge-2.079
Conflicts:
	runtime/druntime
	runtime/phobos
2018-03-30 00:06:01 +02:00
Martin
49f4200946 Implement cmdline option -i[=<pattern>] (include imports) 2018-03-30 00:02:02 +02:00
Radu Racariu
eebd2d4519 add MIPS32 predefined identifier 2018-03-26 17:59:59 +01:00
Radu Racariu
42ef1dd676 fixup abi for uclibc (#2606) 2018-03-24 16:19:23 +01:00
joakim-noah
04cd029bb9 Pull in Musl's assert function for betterC mode. (#2604) 2018-03-04 20:48:07 +01:00
Martin
5608825f6f Merge branch 'master' into merge-2.079 2018-02-25 18:37:22 +01:00
Radu Racariu
af4ff423a1 Add the CRuntime_UClibc version identifier (#2597)
Enable the `uclibc` in triple, example usage  `arm-linux-uclibc`
2018-02-25 18:35:15 +01:00
Martin
df4f854dd5 Upgrade to D v2.079.0-beta.1 2018-02-20 02:04:41 +01:00
Johan Engelen
16ecb3e79f
Add LLVM-pass plugin support to LDC. Commandline flag: -plugin=.... (#2554)
This adds functionality to load plugins such as the AFL llvm-mode plugin: https://github.com/mirrorer/afl/blob/master/llvm_mode/afl-llvm-pass.so.cc
Note that such plugins developed for Clang should also work for LDC !
2018-02-13 20:22:48 +01:00
David Nadlinger
68d3c64318
Merge pull request #2373 from kinke/musl
Add predefined version CRuntime_Musl
2018-01-31 00:05:47 +00:00
Martin
1b860e70d7 Merge branch 'master' into merge-2.078 2018-01-26 18:52:49 +01:00
Johan Engelen
8e0e688f5b
Explicitly pass triple to option initialization routine. [NFC] (#2533)
This removes the dependency on the global parameter / makes the dependency much more explicit.
2018-01-22 21:45:51 +01:00
Martin
197e65efde Merge branch 'master' into merge-2.078
Conflicts:
	driver/main.cpp
	gen/cl_helpers.h
	gen/declarations.cpp
	runtime/druntime
	tests/d2/dmd-testsuite
2018-01-20 11:20:17 +01:00
Johan Engelen
e8e28b33b2 PGO: Add IR-based PGO. 2018-01-16 00:02:49 +01:00
Martin Kinkelin
6b462b1018
Generalize defaultlibs cmdline help category to linking options (#2496) 2018-01-14 00:03:27 +01:00
Martin Kinkelin
0bfd332915
Forward user-specified shared libs to linker (issue #2445) (#2485) 2018-01-13 00:03:17 +01:00
Martin Kinkelin
1572c91fc0
Add -link-defaultlib-shared and rename -link-debuglib (#2443)
... to -link-defaultlib-debug (with alias for backwards compatibility).

-link-defaultlib-shared is to be used for switching between static and
shared default libs to be linked with.

It defaults to true when generating shared libraries (if shared
druntime/Phobos are supported for the target, i.e., not for Windows).
This is a benign breaking change!
2018-01-12 18:26:19 +01:00
Martin
d82b4a65e2 Add new switches -dip1008 and -transition=<intpromote|16997> 2018-01-06 03:20:36 +01:00
Martin
cfad799f48 Merge 2.078.0 front-end and stdlibs 2018-01-06 01:39:18 +01:00
Johan Engelen
7e7de7a69e
Move instrumentation options into their own .h/.cpp files. (#2472) 2017-12-28 11:44:51 +01:00
Nicholas Wilson
baf3654868
Fix compilation with most recent LLVM (#2428)
Fix LDC compilation with latest LLVM (Mostly renaming and moving headers).
2017-12-03 18:25:43 +08:00
Ivan
33c6cbb807 Renaming 2017-11-09 21:29:32 +03:00
Ivan
cd5ba386d7 Rename module 2017-11-09 21:19:35 +03:00
Ivan
ae4db7d3b3 Merge remote-tracking branch 'origin/master' into runtime_compile_v5 2017-11-01 22:24:27 +03:00
kinke
c1f921e583
Merge pull request #2365 from kinke/betterC
-betterC
2017-10-31 16:58:45 +01:00
kinke
d53bf3e04d
Merge pull request #2362 from ldc-developers/merge-2.076
Merge 2.076.1 front-end and stdlibs
2017-10-30 20:50:51 +01:00
Martin
b08179a8d6 Don't error out if target OS is unknown 2017-10-27 13:53:05 +02:00
Martin
5d68cd1627 Add predefined version CRuntime_Musl 2017-10-27 13:33:01 +02:00
Johan Engelen
fa3a78174f Add "D_betterC" version. (#2385)
Cherry-pick from upstream DMD, https://github.com/dlang/dmd/pull/7132
2017-10-26 21:46:42 +02:00
Martin
fbbbeecaca Ignore -defaultlib/-debuglib for -betterC
Analogous to DMD.
2017-10-25 00:38:05 +02:00
Ivan
afae2f296b remove isRuntimeCompileEnabled() function 2017-10-15 23:24:36 +03:00
Ivan
dc78564bf4 Merge remote-tracking branch 'origin/master' into runtime_compile_v5 2017-10-14 12:28:32 +03:00
Martin
1c2a7ac231 LDMD: Support new options -gf, -mcpu=avx2 and - 2017-10-08 00:41:02 +02:00
Martin
f8158c9ef8 LDC command line: Support - as stdin input 2017-10-08 00:41:02 +02:00
Martin
d7f68dbeb3 Merge branch 'master' into merge-2.075
Conflicts:
	runtime/druntime
2017-10-01 18:28:44 +02:00
Ivan
808f36b2d2 Merge remote-tracking branch 'origin/master' into runtime_compile_v5 2017-10-01 17:02:50 +03:00
Martin
4515474bc5 Fix Objective-C initialization regression 2017-09-27 21:37:18 +02:00
kinke
ae9d43c167 Use LLVM headers for shared codegen command-line options (#2148)
I.e., llvm/CodeGen/CommandFlags.h which in turn includes
llvm/MC/MCTargetOptionsCommandFlags.h.

This gets rid of a few duplicates on our side and includes about 35
(depending on LLVM version) new command-line options. LLVM provides a
helper function to set up the TargetOptions according to (most of) these
options.
Newer LLVM versions may add new options and we'll automatically inherit
them, including setting up the TargetOptions accordingly.

I did my best (TM) to remove a few unused/undesirable options and hide all
remaining new ones except for `-fp-contract`. The lists will need to be
tweaked from time to time.
2017-09-20 01:04:43 +02:00
Martin
41aae46b91 Merge branch 'master' into merge-2.075
Conflicts:
	runtime/druntime
2017-09-12 19:44:53 +02:00
Ivan
ccc87bdb9d opts::isRuntimeCompileEnabled() helper function 2017-09-06 21:20:49 +03:00
Ivan
a9f6875494 Do not use exteranl storage for enableRuntimeCompile flag 2017-09-05 21:23:39 +03:00
Ivan
81532cdcc9 Merge remote-tracking branch 'origin/master' into runtime_compile_v5 2017-09-03 15:29:35 +03:00
Ivan
482b822d73 Export LDC_RuntimeCompilation version when runtime compilation is enabled 2017-08-27 17:42:57 +03:00
Martin
923e30ec50 Merge branch 'master' into merge-2.075 2017-08-21 01:23:18 +02:00
Martin
d63efba2e7 Add post-switches to config file sections
For switches to be appended after the user switches (or right before the
first `-run` switch).

The sections inherit it (as well as `switches`) from the `default` section
if it isn't overridden explicitly.

Fixes issue #2186.
2017-08-20 14:25:05 +02:00
Martin
5111bbd4d2 Slightly refactor ConfigFile interface 2017-08-20 14:10:47 +02:00
Nicholas Wilson
f27109c8e8 New spirv and 6.0 compilation fixes (#2276)
Update to a new SPIRV-LLVM and fix compilation issues for LLVM6.0
2017-08-18 15:23:56 +08:00
Johan Engelen
307606384c LLVM reverted the change that required these version specific changes. (#2265)
https://llvm.org/viewvc/llvm-project?view=revision&revision=309286
2017-08-14 21:39:04 +02:00
Martin
2616261fd2 Revise all LDC-specific errors/warnings/deprecs and insert backticks
For DMD's new syntax highlighting. I grepped in all .{h,cpp} files only.
2017-08-03 22:53:49 +02:00
Martin
c51c2c0d55 Merge 2.075.0 front-end and stdlibs 2017-07-30 03:03:28 +02:00