David Nadlinger
9fd1e8d2a6
Merge frontend tag v2.068.0
...
Kept idgen as C++ program for now. We'll tackle build system integration
once we actually switch to DDMD.
2015-08-29 03:09:17 +02:00
Kai Nacke
4e1e381fec
Merge branch 'master' into merge-2.067
2015-05-24 19:21:58 +02:00
Kai Nacke
2331889669
MIPS: Implement ABI handling.
...
Adds a new command line option -mabi= and uses the value to compute
the ABI to use. Adds the ABI to linker and assembler invocation, too.
Allows consistent invocation of the whole tool chain.
2015-05-24 18:11:24 +02:00
Kai Nacke
ef6b4809e0
Fix boundcheck command line option.
...
Merging master introduced a problem which I fixed in the wrong way.
2015-04-26 00:31:50 +02:00
Kai Nacke
1920d40acd
Remove deprecated -enable-boundscheck/-disable-boundscheck option.
...
Instead use -boundscheck=on|off.
2015-04-25 23:40:13 +02:00
Kai Nacke
94a3995426
Merge branch 'master' into merge-2.067
...
Conflicts:
driver/cl_options.cpp
2015-04-25 23:38:35 +02:00
kai
4db0123bb7
Implement FlagParser using llvm: 🆑 :generic_parser_base.
...
This approach is easier and requires less code. With some template foo
the BoolOrDefaultAdapter is not required.
This solutions applies to previous LLVM versions, too.
2015-04-25 21:47:30 +02:00
kai
a1dfbabdee
Fix variable name (again)
2015-04-09 23:55:11 +02:00
kai
eb570a8c60
Add new command line switch -dip25
2015-04-09 23:23:48 +02:00
kai
279c7c5e10
Don't do work twice
2015-04-09 21:21:14 +02:00
kai
e93b057b7c
Make variable names unique
2015-04-09 21:01:58 +02:00
kai
77cac3acec
Add options -vcolumns and -vgc
2015-04-09 20:59:21 +02:00
Kai Nacke
ac7f8c70f8
Merge branch 'master' into merge-2.067
...
Conflicts:
dmd2/mars.h
driver/ldmd.cpp
gen/module.cpp
2015-04-08 22:23:50 +02:00
Johan Engelen
505f18ca2a
Add coverage analysis ("-cov=...") to ldc2
2015-04-07 22:11:02 +02:00
Dan Olson
1c9329deb8
Add new dmd -verrors option
2015-04-05 23:53:20 -07:00
Kai Nacke
a473a2aa2c
LLVM 3.7: Do not declare -boundscheck twice
2015-03-21 19:09:31 +01:00
Alexey Prokhin
a81c6c6f48
Add -enable-color/-disable-color switches
2014-09-06 20:30:19 +04:00
Alexey Prokhin
892ecb79c4
Fix description of vcolumns
2014-08-24 21:01:45 +04:00
Alexey Prokhin
097d8ad0b3
Add -vgc and -vcolumns
2014-08-22 16:26:03 +04:00
Alexey Prokhin
4d39ed89b4
Implement -boundscheck=on|safeonly|off
2014-08-22 16:01:35 +04:00
Alexey Prokhin
76dec46df5
WIP: merge dmdfe 2.066
2014-08-22 16:01:28 +04:00
kai
a22518a7a6
Create parameter for maximum number of template instantiations.
...
Currently, the maximum number is hard coded. This PR creates a command line parameter for it.
Requested by bearophile: http://forum.dlang.org/post/tsphogrgyjeqyeadqkds@forum.dlang.org
2014-07-01 20:38:43 +02:00
David Nadlinger
d8a7ae1841
Use --gc-sections on Linux.
...
This was painful.
2014-06-30 16:18:15 +02:00
Alexey Prokhin
29af1d4664
DMD Issue 11284 - add -allinst compiler switch
2014-06-27 19:40:19 +04:00
David Nadlinger
28cd8b0ad2
Capitalize option decriptions.
2013-10-15 01:50:44 +02:00
David Nadlinger
257da5afe5
Bring back -disable-fp-elim.
...
It was moved to llvm/CodeGen/CommandLineFlags.h.
GitHub: Fixes #502 .
2013-10-13 20:26:19 +02:00
David Nadlinger
422715fc89
Add -float-abi switch and auto-detection for ARM.
...
This is based on the implementation that was reverted in
fc8e0c4c20
.
2013-10-06 07:39:12 +02:00
David Nadlinger
235bb94878
Make -release only disable bounds checking in non-@safe code.
2013-06-17 13:31:21 +02:00
David Nadlinger
46b6fdd531
Implement '-main'.
2013-06-15 23:09:59 +02:00
David Nadlinger
fc8e0c4c20
Revert -float-abi implementation.
...
The new command line option conflicted with a builtin LLVM 3.0
one. The functionality will be added back in after the 0.11.0
release branch has been created.
This reverts commit 6a1bc70bd7
and
subsequent fixes.
2013-05-12 00:18:44 +02:00
David Nadlinger
6a1bc70bd7
Added -float-abi and auto-detection logic for ARM.
...
Even though this argument design conflates two separate concepts
(ABI and hardware/software implementation), I chose to go
with it since users are liekly know it from GCC and the
combination of softloat operations with hardfloat ABI makes
no sense.
I didn't implement it for old LLVM versions, as ARM EABI
exception handling requires LLVM 3.3+ anyway, without which
LDC would be useless anyway.
2013-05-11 21:07:54 +02:00
David Nadlinger
32eb24eebf
Added '-Hkeep-all-bodies' switch.
...
The same behavior is triggered by the '-inline' switch for
DMD, but this doesn't quite translate to LDC.
2013-03-16 11:52:19 +01:00
kai
aa4fe6a748
Remove DMDV1 and DMDV2.
2013-03-06 18:18:00 +01:00
David Nadlinger
0a96aea868
Sort includes according to style guidelines:
...
1. Main include corresponding to .cpp file, if any.
2. DMD and LDC includes.
3. LLVM includes.
4. System includes.
Also updated a few include guards to match the default format.
2013-02-07 21:20:55 +01:00
David Nadlinger
28a65ff689
Fix D1 build.
2013-02-07 00:49:52 +01:00
David Nadlinger
30caa4bfe6
Merge branch 'master' into merge-2.061-2
2013-01-12 01:27:02 +01:00
kai
a11459bc31
"The Great Renaming" continues.
...
More changes to match the renamed files of LLVM 3.3.
2013-01-06 17:17:30 +01:00
David Nadlinger
5c518a16ec
Merged 2.061 frontend.
2013-01-04 06:22:53 +01:00
David Nadlinger
2988bc46e0
Removed long obsolete (and broken) LLVM IR annotation code.
...
If someone wants to redo this properly, an idea that actually works
would be to use a custom llvm::AssemblyAnnotationWriter.
2012-12-19 01:50:48 +01:00
kai
ca2cc75567
Mark LDC changes and remove unused debug? switches.
...
The Param struct is very different between DMD and LDC. This is a start
to mark the differences. This also includes identifying unused switches
- like the debug? switches.
2012-12-17 00:08:46 +01:00
David Nadlinger
1bb14c45d2
Removed trailing whitespace.
2012-12-16 17:19:15 +01:00
David Nadlinger
9458911839
Added LLVM-style license headers to all our files.
2012-12-16 17:19:14 +01:00
kai
a7c7b514c0
Add changes for LLVM 3.2
...
- The Attributes class was changed again
- TargetData was renamed to DataLayout
Compiles again with LLVm 3.0, 3.1 and trunk(3.2).
2012-10-13 18:54:42 +02:00
kai
e6a07ffdfe
Several changes to optimizer related code.
...
- New functions codeGenOptLevel() and verifyModule() to remove code duplication
- Hidden option no-verify renamed to disable-verify and moved to optimizer (like opt tool)
- Removed global.params.noVerify
2012-08-16 23:26:52 +02:00
Eldar Insafutdinov
feefad412c
Move cl_options out of LDCShared
2012-04-02 14:53:52 +01:00