Commit Graph

2099 Commits

Author SHA1 Message Date
David Nadlinger
38d1bf4cc8 Removed two (!) D1/Tango runtime build systems.
As discussed on IRC, Bob has been the default (and recommended) way to build Tango for LDC for quite some time now. Support for it in the CMake-based build system just created a big maintenance burden for (almost) no benefits. Besides, the build system was currently broken anyway.

The makefiles seemed to support building *.bc libs for Tango though, which Bob probably doesn't, which might be worth keeping in mind.
2011-12-04 20:21:56 +01:00
David Nadlinger
018c47762e Removed demos/.
These were last touched before the name change to LDC. Rest in peace.
2011-12-04 19:39:40 +01:00
David Nadlinger
6559246669 Don't needlessly copy over druntime/Phobos to build directory.
This reapplies d57637a0a1, which was lost in merging.
2011-12-04 18:53:20 +01:00
David Nadlinger
3916835380 Merge remote-tracking branch 'AlexeyProkhin/master' into merge-3.0
Conflicts:
	CMakeLists.txt
	druntime
	runtime/CMakeLists.txt
2011-12-04 18:38:09 +01:00
David Nadlinger
fe19ee84f5 Merge branch 'llvm3.0' into merge-3.0
Conflicts:
	gen/configfile.cpp
2011-12-04 18:16:36 +01:00
David Nadlinger
5458ebb0b2 Merge branch 'master' into merge-3.0 2011-12-04 18:15:21 +01:00
David Nadlinger
16cdb0c252 Whitespace cleanup. 2011-12-04 18:13:42 +01:00
David Nadlinger
d0ea856024 Emit all D inline asm labels as local labels.
On OS X, there is an actual significance to the distinction, which before lead e.g. to exception throwing in the below example being broken:

---
import core.exception;

void main() {
  asm {
    jmp Lfoo;
Lfoo:
    ;
  }
  throw cast(OutOfMemoryError)cast(void*)OutOfMemoryError.classinfo.init;
  assert(0);
}
---
2011-12-04 18:13:33 +01:00
Alexey Prokhin
cd732537e8 Fixed atomic_store and atomic_load instrinsics 2011-12-04 16:05:48 +04:00
Alexey Prokhin
784e3f1542 Fixed cases when debug info of a variable was emitted several times 2011-12-04 15:34:41 +04:00
Alexey Prokhin
91f4e5d015 Added emission of dwarf lexical blocks.
Also, dropped support for DISABLE_DEBUG_INFO definition.
2011-12-04 15:34:35 +04:00
Alexey Prokhin
cdeca718fc Merge branch 'master' of github.com:ldc-developers/ldc 2011-12-04 00:16:30 +04:00
Alexey Prokhin
b8721a8515 Emit debug info for variables that are used in nested functions 2011-12-03 23:45:58 +04:00
David Nadlinger
5701c32d8f Merge pull request #33 from quaker66/master
Fix LDC build on non-Linux unix-like OSes
2011-12-03 03:24:35 -08:00
q66
04ce6bbe45 Build system fix. 2011-12-03 12:21:12 +01:00
Alexey Prokhin
cedb4c0e68 When generating debug info, handle recursive types properly 2011-12-03 14:35:55 +04:00
Alexey Prokhin
1f3d9b98d0 Removed old hack for llvm 2.8, it is not required anymore 2011-12-03 14:20:54 +04:00
Alexey Prokhin
6357c421ac Updated ldc version and homepage 2011-12-03 13:52:05 +04:00
Alexey Prokhin
1f4de64360 Fixed appending to an array 2011-12-03 12:24:53 +04:00
Alexey Prokhin
b559805b7c Fixed path to generated *.di files 2011-12-02 22:16:08 +04:00
Alexey Prokhin
014d6bdd4d Merged 2.056 2011-12-02 21:50:52 +04:00
Alexey Prokhin
7d74a801bb Fixed #17 and #23 — added 'MULTILIB' option to cmake script and fixed 'make install' 2011-12-02 21:40:31 +04:00
Alexey Prokhin
250d8ed214 Sanity check — can't create a directory with an empty path 2011-12-02 13:59:49 +04:00
Alexey Prokhin
5e0a2b7761 Merge branch 'llvm3.0' into master 2011-12-02 13:26:31 +04:00
David Nadlinger
eda643da11 Merge pull request #31 from redstar/obj
Stream for object files must have binary flag.
2011-11-28 16:18:38 -08:00
kai
8db112dd68 Stream for object file must have binary flags. 2011-11-27 21:26:44 +01:00
David Nadlinger
1c623594c1 Merge pull request #30 from redstar/warnings
Fix some warnings arising in some compilers (e.g. Visual C++)
2011-11-24 13:06:23 -08:00
kai
a5b3dd29b5 Fixes 2 kinds of warnings.
1) The last parameter of getGetElementPtr() has type bool. In some instances, a 2 is used as parameter. This is converted to true.
2) Several loops use int instead of unsigned. This causes warning about signed/unsigned mismatch.

Curiously, only Visual C++ complains about this. Nevertheless I think that the warnings should be fixed.
2011-11-23 19:01:04 +01:00
David Nadlinger
7753acf176 Merge pull request #27 from redstar/depre2
Replace deprecated LLVM functions.
2011-11-21 12:32:48 -08:00
kai
aa20673c72 Fix indentation (TAB -> SPACE in 2 cases). 2011-11-21 20:47:38 +01:00
kai
1ecd536f45 Replace deprecated LLVM functions.
Several functions regarding file handling are deprecated. This commit replaces these functions with the new one from llvm::sys::fs and llvm::sys::path. It also removes some warnings about signed/unsigned mismatches.
2011-11-16 19:05:23 +01:00
David Nadlinger
1afc01df72 Whitespace cleanup. 2011-11-14 21:25:56 +01:00
David Nadlinger
abd1d160f4 Tabs->spaces. 2011-11-14 20:10:45 +01:00
David Nadlinger
73bcb9bb2d Update druntime. 2011-11-14 15:47:57 +01:00
David Nadlinger
c4e5c7ad11 No longer omit core/bitop.d from being installed. 2011-11-14 15:46:49 +01:00
Robert Clipsham
4add11b78f Fix bug #22. 2011-11-13 14:14:19 +00:00
David Nadlinger
ef748a9de0 Include std/internal in Phobos build.
Previously, std.internal.processinit was missing, leading to linker errors on OS X. All platform-specific stuff is wrapped in version() blocks, so we should be fine.
2011-11-12 22:35:28 +01:00
David Nadlinger
2c7f77eabd Fixed leftover llvm::Type const qualifier. 2011-11-12 20:17:29 +01:00
David Nadlinger
9384df17ae Removed stray DMD GC files to fix build.
They are currently unused by DMD, and are in the dmd2/root/gc directory there.
2011-11-12 20:15:40 +01:00
David Nadlinger
b560e752f3 LLVM 3.0 is now required. 2011-11-12 19:51:40 +01:00
David Nadlinger
ffe37c4a62 Merge remote-tracking branch 'upstream/llvm3.0' 2011-11-12 19:51:30 +01:00
David Nadlinger
dc46ae547c Merge remote-tracking branch 'upstream/ldc-merge-2.056'. 2011-11-12 19:31:19 +01:00
David Nadlinger
23f360c988 Use llvm::InitializeNativeTargetAsmPrinter() now that it is available.
This enables us to remove the whole ugly config file parsing hack.

Also includes some minor CMake beautifications (nobody should really be at 2.4 anymore, 2.6 is more than three years old now).
2011-11-12 18:42:01 +01:00
David Nadlinger
bafe9c8e03 Factored out LLVM detection into separate CMake module. 2011-11-12 17:48:28 +01:00
David Nadlinger
6e714f999e Remove code for building runtime separatly, it was broken in the current form anyway. 2011-11-12 15:17:42 +01:00
David Nadlinger
1c92511d3c Removed unused config.guess script. 2011-11-12 15:10:59 +01:00
David Nadlinger
7eda270d6b Search for config next to the binary before trying global dirs.
This solves the problem of LDC picking up a pre-existing system-wide config when druntime and Phobos are compiled as part of the build process.

This order was intended by Christian in 919f8d6, but then backed out again in eb3cd887 with no comment as to why – I hope this doesn't have any unwanted implications.
2011-11-12 14:35:30 +01:00
David Nadlinger
aa5e5728e7 Build druntime and Phobos by default.
This fixes »make install« – if you want to build only the compiler, the »ldc2« target can be used.
2011-11-12 13:31:54 +01:00
David Nadlinger
d57637a0a1 Don't needlessly copy over druntime/Phobos to build directory. 2011-11-12 13:30:07 +01:00
David Nadlinger
d9da8723d1 Remove ancient druntime patching helpers.
We are using our own forks and Git submodules now.
2011-11-12 13:08:03 +01:00