Commit graph

162 commits

Author SHA1 Message Date
kai
a4f5213d8b Yet another LLVM 3.6 change.
There are some changes to pass initialization:
- initializeDebugIRPass() is gone
- initializeRewriteSymbolsPass() is new
2014-11-30 15:42:07 +01:00
David Nadlinger
e794bfa547 Demote some more LLVM-internal flags to -help-hidden.
Based on LLVM 3.5.0 on OS X built for x86 only.
2014-11-14 22:23:12 +01:00
kai
1e8fcfd5d9 Fix compiler error introduced with 6661054399. 2014-10-29 22:11:29 +01:00
kai
2a8b92060f Better dumping of predefined version identifiers.
Also count spaces in order to limit line length to 80.
2014-10-29 21:57:21 +01:00
kai
6661054399 Linux/PPC64: Statically define ELFv1 for Big Endian and ELFv2 for Little Endian Systems.
This is in preparation for the missing `--with-abi=` command line switch.
ELFv1 and ELFv2 are reserved version identifiers starting with DMD 2.067.
2014-10-29 21:31:41 +01:00
kai
2f1fd0d902 Fix yet another LLVM 3.6 compile error with the llvm::Linker class.
The value llvm::Linker::DestroySource was removed.
2014-10-29 20:53:14 +01:00
kai
e5745f5bb1 Fix compile error with LLVM 3.6.
The llvm::Linker class now uses diagnostic messages.
2014-10-25 18:11:49 +02:00
kai
332480460c Revert "Fix compile error with LLVM 3.6."
This reverts commit cc829485cc.
2014-10-25 18:02:26 +02:00
kai
cc829485cc Fix compile error with LLVM 3.6.
The llvm::Linker class now uses diagnostic messages.
2014-10-25 17:39:42 +02:00
David Nadlinger
3d1be20470 Remove availableExternally logic and extra inlining semantic passes.
Turns out that since the change to use DMD's symbol emission
logic a few releases back we didn't actually ever emit code
for the extra modules. Thus, all the effort for the extra
semantic passes went to waste.

If we want to implement DMD-style cross-module inlining, we
need to add the extra semantic3s back in, and then iterate
over all the non-root modules with a codegen visitor that
only emits symbols as available_externally.

We probably won't need the availableExternally members if
we start with a clean design in the new symbol emission
framework. Thus, remove everything in the meantime. This
will make some release builds a bit faster, and should not
negatively affect generated code.
2014-10-04 20:02:13 +02:00
David Nadlinger
e1ffd58732 Merge branch 'master' into merge-2.066
Conflicts:
	gen/functions.cpp
2014-09-14 15:29:43 +02:00
David Nadlinger
3ec1a01e8a [cleanup] Fix a couple of typos. 2014-09-14 14:54:17 +02:00
Kai Nacke
382ad184d8 Merge branch 'master' into merge-2.066
Conflicts:
	dmd2/builtin.c
	gen/classes.cpp
	gen/functions.cpp
	gen/llvmhelpers.cpp
	gen/statements.cpp
	gen/toir.cpp
	runtime/druntime
	runtime/phobos
2014-09-13 23:11:54 +02:00
Alexey Prokhin
a81c6c6f48 Add -enable-color/-disable-color switches 2014-09-06 20:30:19 +04:00
kai
fc4821ac7e More name clash fixes 2014-09-04 07:55:03 +02:00
kai
df0d302d5b Fix MingW build with LLVM 3.5
Starting with LLVM 3.5 it is better/required to use Triple.isWindowsGNUEnvironment().
Reported by Daniel N.
2014-08-26 18:57:12 +02:00
kai
aa35307f54 Fix LLVM 3.6 build 2014-08-23 20:02:43 +02:00
Alexey Prokhin
4be264848e Initialize traits string table 2014-08-22 16:26:16 +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
6aebfbdd0a Fix LLVM 3.6 build 2014-08-11 12:37:54 +02:00
kai
b73e5fb5ef Fix LLVM 3.6 build 2014-08-06 07:18:00 +02:00
Andreas Hollandt
6702954cda llvm API changes 2014-07-31 18:18:06 +02:00
Andreas Hollandt
a1b42f28ae fix for llvm trunk 2014-07-17 00:11:09 +02:00
David Nadlinger
b40099d96b driver: Emit __bss_start/_end as weak symbols to work around linker bug.
A similar problem as in upstream issue 13025 has been
observerd for LDC on Arch Linux (GNU ld 2.24) as well. This
is essentially the same workaround as Martin came up with in
D-Programming-Language/druntime#889. Because the linker
defines the symbols anyway as part of the default linker
script, the weak linkage actually makes no difference.
2014-07-14 02:36:42 +02:00
David Nadlinger
3503206ccc Do not try to verify/emit LLVM module on codegen error. 2014-07-11 18:11:16 +02:00
David Nadlinger
7ac8e17e2d Do not emit ModuleInfo for the implicit __entrypoint module.
This is in line with what DMD does, if of course with a
different implementation.
2014-07-10 01:20:43 +02:00
David Nadlinger
4abdec752e driver: Support code for shared library collision detection. 2014-07-10 00:45:10 +02:00
David Nadlinger
36e9465b7a driver: Factor out entry point module emission code. 2014-07-09 15:35:06 +02:00
David Nadlinger
3563225a5e Paste flags from config file in front of command line arguments.
This way, the user can override any defaults defined in the
config file.
2014-07-04 18:54:28 +02:00
David Nadlinger
d895c7f26d Make -defaultlib/-debuglib override instead of append; deprecate -nodefaultlib.
This is necessary as the only point of having -defaultlib
and -debuglib is to enable the user to customize the defaults
set in the configuration, for example to avoid linking to
Phobos.

GitHub: Fixes #416.
GitHub: Fixes #601.
2014-07-04 18:54:28 +02:00
David Nadlinger
407adffa9e Hide '-disable-debug-info-verifier'. 2014-06-30 18:15:37 +02:00
David Nadlinger
d8a7ae1841 Use --gc-sections on Linux.
This was painful.
2014-06-30 16:18:15 +02:00
David Nadlinger
5e5e25a1ce Hide some more LLVM-internal command line args. 2014-06-30 00:32:39 +02:00
kai
e62bbc97a2 Add more cpu architectures for LLVM 3.5
ppc64le, amd64, amd64_eb and armeb have been added to LLVM 3.5.
2014-06-28 18:15:46 +02:00
kai
8abfc2f35c Merge branch 'release-0.13.0' 2014-06-27 23:38:03 +02:00
kai
57419a59b4 Fix build with LLVM 3.5
Method codegenModule() used a FunctionPassManager instead of a PassManager. This results in an assertion failure.
Also initialize one more pass.
2014-06-27 22:26:33 +02:00
kai
b7615f6a28 Merge branch 'master' into merge-2.065
Conflicts:
	dmd2/declaration.h
	dmd2/dsymbol.h
	dmd2/func.c
	gen/functions.cpp
	gen/toir.cpp
	runtime/druntime
2014-06-23 07:57:30 +02:00
kai
7c289fd673 Introduce needsCodegen.
This is a backport of the code from 2.065.
2014-06-19 13:20:28 +02:00
Kai Nacke
92c06dede0 Merge branch 'merge-2.064' into merge-2.065
Conflicts:
	runtime/druntime
2014-05-10 21:38:37 +02:00
kai
e2a0b93645 Add binary and version information to verbose output.
The same information is printed by DMD. Also format list of predefined version identifiers to (roughly) 80 columns.
2014-04-29 07:07:52 +02:00
kai
456924116b Merge branch 'merge-2.064' into merge-2.065 2014-04-05 22:37:27 +02:00
Kai Nacke
38ab450c56 Print target information, version identifiers and linker commands in verbose output (-v). 2014-04-05 22:13:39 +02:00
Kai Nacke
a1e73fa609 Merge branch 'merge-2.064' into merge-2.065 2014-03-30 22:59:15 +02:00
Kai Nacke
38c98c3584 Add version identifiers of MIPS ABI.
Parses the feature string and appends the required ABI feature.
Uses the feature string to define the version identifier.
2014-03-30 22:39:05 +02:00
Kai Nacke
fa289d9e0c Remove long deprecated version identifiers 2014-03-29 23:33:15 +01:00
Kai Nacke
87d07a8f32 Merge branch 'merge-2.064' into merge-2.065 2014-03-29 23:14:28 +01:00
Kai Nacke
f85d2e071f Fix an annoying warning 2014-03-29 23:14:03 +01:00
Kai Nacke
7669191636 Merge branch 'merge-2.064' into merge-2.065 2014-03-23 15:38:46 +01:00
Kai Nacke
3eda031fe8 Dump all predefined version identifiers if logger is enabled. 2014-03-23 15:36:14 +01:00