Commit Graph

2111 Commits

Author SHA1 Message Date
Alexey Prokhin
fdead0d154 Fixed #21 — Added -lib switch 2011-12-06 17:24:49 +04:00
Alexey Prokhin
859ae8481f That was committed by mistake 2011-12-06 14:43:05 +04:00
Alexey Prokhin
8b50928636 Fixed #37 — ICE: llvm::GlobalVariable::setInitializer assert failed 2011-12-06 13:55:01 +04:00
Alexey Prokhin
f8bf70ff7a Fixed an assert when compiling derelict.
The assert was triggered by a line similar to this:
   extern(C) void func(float[4] a1, float[4] a2, float[4] a3, float[4] a4, float[4] a5);
2011-12-06 13:14:57 +04:00
Alexey Prokhin
7da47c4ee8 Restored old behavior of initialization of llvm targets.
LDC initializes only a llvm host target and targets that were explicitly
requested when building the program.
2011-12-05 21:41:37 +04:00
Alexey Prokhin
bb3908f290 Fixed #36 — ICE: DValue::getLVal(): Assertion '0' failed 2011-12-05 13:19:33 +04:00
Alexey Prokhin
2980f703b1 Fixed #35 — ICE: postfix operation on typedef'd value 2011-12-05 13:09:10 +04:00
Alexey Prokhin
4b22221eb9 Fixed #34 - StructType::setBody assert isOpaque() failed 2011-12-05 13:07:13 +04:00
David Nadlinger
f5182abca3 Pull in FreeBSD druntime build fix. 2011-12-05 00:01:07 +01:00
David Nadlinger
b0dd2e336d ldc/bitop.d no longer exists.
This fixes the install target broken after the big merge.
2011-12-04 20:58:26 +01:00
David Nadlinger
0b18b346f9 Renamed ldruntime back to druntime-ldc, as the name is hardcoded in the source.
Also took the opportunity to rename liblphobos2 to libphobos2-ldc as discussed on IRC, because this highlights the relationship to DMD's libphobos2 better e.g. when browsing through the file system.
2011-12-04 20:45:31 +01:00
David Nadlinger
74d7562a59 Moved druntime and Phobos submodules to runtime.
This makes much more sense since the subdirecotry also contains the build system for them, and reduces clutter.
2011-12-04 20:37:21 +01:00
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