Commit Graph
2072 Commits
Author SHA1 Message Date
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
Robert Clipsham 4add11b78f Fix bug #22. 2011-11-13 14:14:19 +00: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
David Nadlinger 4be8f37119 Install D1 runtime files only if building LDC1.
Previously, some D2 runtime files were overwritten by them (notably ldc.intrinsics, see #18).
2011-11-12 11:52:17 +01:00
David Nadlinger 235fed831d Search for LDC-specific modules first.
This commit flips the order of the import paths so that the directories we install our stuff to are searched first. This avoids problems if DMD's has been installed to the same directory.
2011-11-12 11:33:04 +01:00
David Nadlinger 9800346e50 Avoid double slashes in installation paths. 2011-11-12 11:21:03 +01:00
David Nadlinger 714f15d64a Print message when libconfig++ is not found.
I only made it a warning for now, because there is presumably a reason why the package isn't marked required (pkgconfig-less installations maybe?).
2011-11-11 18:05:30 +01:00
David Nadlinger 6aab340ca4 Merge pull request #16 from SiegeLord/master
Define version Tango in the installed config file
2011-11-11 08:30:30 -08:00
SiegeLord 22679fe844 Define version Tango in the config file 2011-11-11 11:15:20 -05:00
David Nadlinger 3cf958a1b0 Added new config files missing from 4703232.
These will be picked for (and renamed on) installation and contain absolute paths for the directories involved.
2011-11-09 21:15:14 +01:00
David Nadlinger 28b1d7f5de Update druntime for OS X x86_64 build fix. 2011-11-09 20:50:47 +01:00
Jonathan MERCIER 392482dc2d remove useless dir 2011-11-09 20:41:10 +01:00
David Nadlinger 470323233a Merged build system patches by Jonathan Mercier.
In detail, this commit:
 - Changes the default version that is built to D2, use D_VERSION to override.
 - Reverts back to building static libs by default until we are certain shared libs work fine everywhere.
 - Fixes installation pathes so that CMAKE_INSTALL_PREFIX is respected; /etc as sysconf dir for /usr prefix is special-cased.
 - Fixes out-of-source builds again, and causes temporary files (idgen, …) not to be written to the source directory anymore.

This is a slightly cleaned up version of the changes from https://github.com/ldc-developers/ldc/pull/12.
2011-11-09 20:40:39 +01:00
David Nadlinger 5e18625266 Define MinGW in addition to mingw32 for consistency with GDC.
When we get Win64 support, it should be defined there as well.
2011-11-08 21:27:02 +01:00
Alexey Prokhin 4ab6869c50 Fix a crash which occurs when compiling std/conv.d with unittests 2011-11-01 17:06:13 +04:00
Alexey Prokhin 6ef7ee6d32 Unimplemented toConstElem is not a fatal error if errors are gagged.
Because ldc uses gagging to check whether an expression is constant.
2011-11-01 14:35:28 +04:00
Alexey Prokhin 22d0f00027 Rewritten DtoArrayInit().
It does not create calls to runtime functions and generates a faster code, especially if optimizations are on.
2011-11-01 14:31:00 +04:00
Alexey Prokhin 40fa7653e2 Sync TypeInfoClass flags with dmd 2011-11-01 12:07:59 +04:00
Alexey Prokhin b52c224d57 Merge v2.056 2011-11-01 11:44:03 +04:00
Alexey Prokhin 7431d58702 Rewritten initialization of global variables. 2011-10-25 15:43:49 +04:00
Alexey Prokhin 66a30803f3 Fixed an assert in DtoNewClass when initializing an inner-class outer reference 2011-10-25 15:43:49 +04:00
Alexey Prokhin bf463d61da Readded 'relocation-model' and 'code-model' options 2011-10-25 15:43:49 +04:00
Alexey Prokhin 45426ca60d Implemented atomic intrinsics for llvm 3.0
Unline older versions, llvm 3.0 provides atomic instructions, not intrinsics.
The patch wraps the instructions into intrinsics, so they will be accessible
from d code.
2011-10-25 15:43:49 +04:00
Alexey Prokhin 81426b8cc8 Fix DelegateExp::toElem return type 2011-10-25 15:43:49 +04:00
Alexey Prokhin 0b159f635d Fix an assert in IrStruct::getClassInfoInterfaces() due to mismatched types 2011-10-25 15:43:49 +04:00
Alexey Prokhin b97b32759e Use LLVM Machine Code (MC) to emit object files. Finilize debug info 2011-10-25 15:43:49 +04:00
Alexey Prokhin aee896f85b Port exceptions to llvm 3.0 2011-10-25 15:43:49 +04:00
Alexey Prokhin 629f13929e WIP: port to llvm 3.0 2011-10-25 15:43:39 +04:00
Jonathan MERCIER 52c6347ef7 now conf files have right value 2011-10-12 03:27:23 +02:00
Jonathan MERCIER 350d4a0629 By default buils as shared lib 2011-10-12 03:07:42 +02:00