Martin Kinkelin
6f5730049b
Merge remote-tracking branch 'origin/master' into merge-2.094
...
Conflicts:
gen/tocall.cpp
runtime/phobos
2020-09-30 19:46:43 +02:00
Martin Kinkelin
4b7f14f58d
Hide new LLVM 11 CLI options
2020-09-26 01:04:50 +02:00
Martin Kinkelin
eb64be821a
Adapt to llvm: 🆑 :parser<bool> being final for LLVM < 9
2020-09-25 03:04:19 +02:00
Martin Kinkelin
4be4501227
Re-add support for -HC without value
2020-09-23 21:32:46 +02:00
Martin Kinkelin
4431f6744f
Add support for -vtemplates=list-instances
2020-09-23 21:02:59 +02:00
Martin Kinkelin
47b25ca6ab
Add support for -cov=ctfe
...
Incl. making sure `-cov=N ... -cov[=ctfe]` doesn't reset the required
percentage to 0.
Use a dummy *bool* option for a better help output (displaying `--cov`,
not `--cov=<value>`).
2020-09-23 20:57:06 +02:00
Martin Kinkelin
f202c851ae
Upgrade frontend & libs to v2.094.0-beta.1
2020-09-22 00:06:19 +02:00
Martin Kinkelin
877ce6fe4c
Add -gdwarf
CLI option to emit DWARF debuginfos for MSVC targets ( #3533 )
...
Analogous to clang.
2020-08-11 10:30:31 +02:00
Martin Kinkelin
834f666ce5
Raise min LLVM version to 6.0 ( #3493 )
2020-07-13 20:42:50 +02:00
Martin Kinkelin
e3a1096e44
Merge upstream stable ( dlang/dmd@bafab33f27 )
2020-07-03 22:20:29 +02:00
Martin Kinkelin
9725dcd5de
Add CLI option -vtemplates
2020-06-21 05:31:40 +02:00
Hiroki Noda
b8b7615696
Add --fno-plt option to avoid PLT external calls ( #3443 )
...
This patch gives new option which avoids the PLT and lazy binding while
making external calls.
Implementation inspired by `-fno-plt` support to Clang.
Clang's patch: https://reviews.llvm.org/D39079
2020-05-24 22:31:07 +02:00
Roberto Rosmaninho
6274217c39
Add -output-mlir and prepare for MLIR emission ( #3313 )
2020-05-22 12:31:24 +02:00
Martin Kinkelin
26678a1631
Support new CLI switches -verror-style and -HC, -HCd, -HCf
2020-02-27 01:54:28 +01:00
Martin Kinkelin
2d86e49fba
Finalize support for LLVM 10 ( #3323 )
2020-02-14 17:53:40 +01:00
Martin Kinkelin
4d167b09f3
Merge upstream stable (47874e5b37)
2019-11-17 15:14:41 +01:00
Martin Kinkelin
fbfbdf3503
Hide command-line options leaking from LLVM 9
2019-10-27 00:12:13 +02:00
Guillaume Piolat
1f9ce7e613
Disambiguate that -link-defaultlib-shared can take a parameter ( #3169 )
2019-10-09 21:43:38 +02:00
Martin Kinkelin
e52199469f
Upgrade front-end & libs to v2.087.0-beta.1
2019-06-21 15:39:45 +02:00
Martin Kinkelin
b5fda2e59c
Clean up front-end diff some more
2019-04-14 15:47:16 +02:00
Martin Kinkelin
9624834ccf
Hide a few new LLVM 8 cmdline options
2019-03-02 19:54:36 +01:00
Martin Kinkelin
0530f08e9a
Hide legacy cmdline options -dip<N>
2019-03-01 18:19:00 +01:00
Martin Kinkelin
b8dc871e81
Add cmdline options -preview and -revert
...
Reusing parsing and usage functionality from DMD, as the number of these
is likely to grow.
2019-03-01 18:19:00 +01:00
Martin Kinkelin
6c3d8b952e
Add cmdline option -extern-std=c++{98,11,14,17}
2019-03-01 18:19:00 +01:00
Martin Kinkelin
40ca840560
Add cmdline option -verrors-context (-verrors=context for LDMD)
2019-03-01 18:19:00 +01:00
Martin Kinkelin
ef6bab0389
Add cmdline option -checkaction=context
2019-03-01 18:19:00 +01:00
Martin Kinkelin
8db8780a81
Re-sync LDMD cmdline usage help with upstream
2018-12-21 23:18:30 +01:00
Martin Kinkelin
d33b827f96
Don't let -d-debug (without arg) override previous asserts, contracts etc.
...
This is what DMD does AFAICT and fixes
https://github.com/ldc-developers/ldc/issues/599 .
2018-12-21 22:30:00 +01:00
Martin Kinkelin
25dd4007e7
Don't let -release cmdline option override previous -{enable,disable}-{invariants,preconditions,postconditions,contracts}
...
This is a breaking change, conforming to new DMD semantics.
The previous semantics were inconsistent, as -{enable,disable}-asserts
and -boundscheck (as well as new -{enable,disable}-switch-errors)
weren't overridden.
2018-12-21 22:15:04 +01:00
Martin Kinkelin
2d539fa63d
Add new cmdline option -checkaction=<D|C|halt>
2018-12-21 21:36:42 +01:00
Martin Kinkelin
40fcc3fd70
Add new cmdline option -{enable,disable}-switch-errors
2018-12-21 21:05:20 +01:00
Martin Kinkelin
389977d084
Add new cmdline option -mixin=<filename>
2018-12-21 20:17:50 +01:00
Martin Kinkelin
32ecbdd266
Upgrade front-end & libs to v2.084.0-beta.1
2018-12-18 02:31:57 +01:00
Andrey Penechko
7bcd6d34dd
Add option '-fvisibility=<hidden|default>' able to hide symbols not marked as 'export' on non-Windows targets. Resolves #2431 ( #2894 )
2018-11-09 20:55:57 +01:00
Martin Kinkelin
4a23399236
Aim for consistent #includes (order + dir prefix)
...
I surely missed a few.
2018-10-20 16:19:46 +02:00
Martin Kinkelin
61a7e407ab
Add new command-line option -transition=<dtorfields|14246>
2018-10-20 16:19:46 +02:00
Martin Kinkelin
5c24f60cf9
Raise min LLVM version to 3.9 ( #2872 )
2018-10-15 22:31:59 +02:00
Martin Kinkelin
3460eed679
Hide 3 new cmdline options introduced in LLVM 7 ( #2871 )
2018-10-06 21:20:23 +02:00
Martin Kinkelin
40cf784cbe
Misc. merge fixes, minor adaptions
2018-08-17 21:31:53 +02:00
Martin
6812e0bcd4
Merge branch 'master' into merge-2.079
...
Conflicts:
driver/cl_options.h
driver/configfile.h
ldc2.conf.in
ldc2_phobos.conf.in
2018-04-22 14:31:31 +02:00
Martin
891234bbe4
Only set rpath when linking against shared default libs
2018-04-21 18:23:59 +02:00
Martin
fb7fd86d97
Merge branch 'master' into merge-2.079
...
Conflicts:
runtime/druntime
runtime/phobos
2018-04-21 16:01:26 +02:00
Martin
b64da9f056
Hide 4 new LLVM 6 cmdline options
...
-cost-kind, -import-all-index, -print-module-scope and
-stack-size-section.
2018-04-16 23:00:35 +02:00
Martin
3d0f5c28ac
Implement (undocumented) cmdline option -Xi=<JSON field name>
2018-03-30 00:54:15 +02:00
Martin
49f4200946
Implement cmdline option -i[=<pattern>] (include imports)
2018-03-30 00:02:02 +02: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
Martin Kinkelin
6b462b1018
Generalize defaultlibs cmdline help category to linking options ( #2496 )
2018-01-14 00:03:27 +01:00
Martin Kinkelin
4cdca83b19
Slightly extend list of LLVM options to be hidden ( #2498 )
2018-01-13 16:05:06 +00: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
614bf4100f
Fix -boundscheck regression
2018-01-06 05:09:08 +01:00