kai
fb108eed12
More LLVM 3.2 changes.
2012-10-14 18:45:31 +02:00
kai
8519f448f8
Improve error message if gcc or other tools can not be found.
...
This fixes #192 .
2012-10-14 12:39:35 +02:00
David Nadlinger
95121115d3
gen_gccbuiltins cleanup.
2012-10-14 05:09:15 +02:00
David Nadlinger
b0878bf8ef
Fixed gccbuiltins module declaration.
2012-10-14 05:05:48 +02:00
David Nadlinger
4c3faa9a3d
Fixed GCC builtin header generation for out-of-source builds.
2012-10-14 05:02:42 +02:00
David Nadlinger
45365bb0ab
Merged pull request #196 from branch 'jerro/upstream-master2'.
2012-10-14 04:58:56 +02:00
David Nadlinger
3897b9331e
Travis: Directly invoke ctest for -proper -output-on-failure.
2012-10-14 04:35:23 +02:00
David Nadlinger
23e6720605
Build druntime/Phobos unit tests on make test.
2012-10-14 04:35:15 +02:00
David Nadlinger
247da8ea86
Phobos updates.
2012-10-14 04:34:17 +02:00
David Nadlinger
4b0e8d998d
Phobos updates.
2012-10-14 04:16:35 +02:00
David Nadlinger
6885f6a0f0
Phobos test suite workarounds.
2012-10-14 03:57:42 +02:00
David Nadlinger
11619e55a9
Fix miscompilation of some functions returning structs.
2012-10-14 03:41:15 +02:00
kai
b50c6a8026
Look for configuration file in folder etc relative to executable.
...
Fixes issue #195 .
2012-10-14 00:25:08 +02:00
kai
83d14c54da
Explicit call conversion operator on Setting class.
...
This fixes issue #196 .
2012-10-13 19:48:13 +02: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
David Nadlinger
d523be3010
Added explanation for commit 9b80037.
...
Such uncommented changes to the frontend are potentially a huge
source of confusion during merging new frontend versions
(especially if the piece of code gets changed again before the
next upstream release).
2012-10-13 18:20:56 +02:00
David Nadlinger
a9e151ee1f
Mitigate a nested unions crash/wrong code bug.
...
This fixes the std.format unit tests for assertion-enabled
LLVM builds.
What the actual solution for the problem should be depends
entirely on the outcome of the "Nested Unions?" discussion
on dmd-internals.
2012-10-13 18:15:13 +02:00
Kai Nacke
9772270f60
Merge pull request #190 from redstar/issue8675
...
Fix Issue 8675 - Nothrow can't throw Errors
2012-10-13 04:12:24 -07:00
Jernej Krempuš
f6cd185701
Generate gccbuiltins.di at build time.
...
Bug fixes.
Moved gen_gccbuiltins.cpp to util and renamed gccbuiltins.di to gccbuiltins_x86.di
Trying to fix Travis build.
Removed cstrVec.
2012-10-13 13:01:03 +02:00
Alexander Tankeev
34f6babcc3
Build LLVM bytecode libraries correctly
...
- BUILD_BC_LIBS option of CMake respects BUILD_SINGLE_LIB option.
- Build Phobos as LLVM bytecode as part of BUILD_BC_LIBS option.
2012-10-12 20:23:52 +04:00
Alexander Tankeev
bd0185ab1d
Refactoring feature of LDC runtime building as LLVM bytecode library
...
This refactoring required to make possible BUILD_BC_LIBS option work
together with options like BUILD_SINGLE_LIB and to build Phobos as
LLVM bytecode too.
- libdruntime-rt-ldc can be built as LLVM bytecode library. This feature
was commented out because of currently irrelevant reason.
- Removed irrelevant modifications of native code library content inside
BUILD_BC_LIBS logic.
- Decoupled BUILD_BC_LIBS logic from basic runtime building logic.
2012-10-12 20:22:53 +04:00
kai
9b80037f56
fix Issue 8675 - Nothrow can't throw Errors
...
- fixed by checking whether the thrown exception is derived
from Error before complaining about uncaught throws
2012-10-09 06:43:20 +02:00
David Nadlinger
0777102e9d
Workaround for --help output being truncated when redirecting to file.
2012-10-07 15:08:24 +02:00
David Nadlinger
9c3bb1ecd3
LDMD: Remove DMD-only options from help output.
2012-10-07 14:58:30 +02:00
David Nadlinger
8118c846af
Fixed unlisted contract parameter issue.
...
Thanks to alexrp for mentioning it.
2012-10-07 14:58:01 +02:00
David Nadlinger
051cd7302e
Fixed two issues with nested functions as template alias parameters.
...
Fixes #131 (GitHub).
2012-10-07 03:06:07 +02:00
David Nadlinger
da17b7c6b6
Only invoke mustDefineSymbol() once in DtoLinkage.
...
This is, of course, a microoptimization, but more importantly
makes stepping through the code easier.
2012-10-07 00:03:10 +02:00
David Nadlinger
c9e2fc34d1
Cleanup.
...
If ad would be null, the code above would have already crashed.
2012-10-06 20:40:14 +02:00
David Nadlinger
bb24f9bafe
Log messages: Fixed references to "toObjFile()".
2012-10-06 19:32:42 +02:00
David Nadlinger
5fa1a903e8
DtoResolveStruct cleanup.
...
irField is only set in DtoResolveStruct, so the comment was misleading.
2012-10-06 19:27:55 +02:00
David Nadlinger
7240fd69c3
Travis already fetches submodules by default.
2012-10-06 16:05:53 +02:00
David Nadlinger
ad793fd5a3
Run both LLVM 3.0 and 3.1 builds at Travis.
2012-10-06 15:08:50 +02:00
kai
3847471b0e
DMD defines Win32 and Win64 mutually exclusive. Now LDC does the same.
2012-10-06 14:30:26 +02:00
David Nadlinger
9d52cf6855
Workaround for LLVM bug 11479 in -singleobj mode.
...
This applies the same fix as in 88f08cf for multiple object file
builds.
Fixes std.socket unit test builds.
2012-10-06 13:27:54 +02:00
David Nadlinger
3e3fb2c323
Phobos updates.
2012-10-06 13:09:43 +02:00
David Nadlinger
2d54a02295
Use null instead of undef for unneeded nested context pointers.
2012-10-06 13:07:17 +02:00
David Nadlinger
0fb39ee912
druntime updates.
2012-10-06 00:50:52 +02:00
David Nadlinger
5759ee3e6f
dmd-testsuite updates.
2012-10-05 23:42:26 +02:00
David Nadlinger
ad977c33b6
Merge pull request #182 from jerro/upstream-master
...
Casts between vector types.
2012-10-05 14:21:35 -07:00
Jernej Krempuš
7966abeb5e
Bitcast the LLValue to the correct type.
2012-10-05 21:58:19 +02:00
Jernej Krempuš
39300283c0
Made casts between vector types work.
2012-10-05 19:38:43 +02:00
David Nadlinger
4e49814afb
Vector -> static array casts are by address.
...
Fixes #176 (GitHub).
2012-10-05 17:23:31 +02:00
David Nadlinger
579c522e52
Fix GitHhub #180 – "#ifdef defined(...)".
2012-10-05 17:07:21 +02:00
David Nadlinger
4f6ec96b27
Fixed vector initialization involving implicit conversions.
...
Fixes first part of GitHub #176 .
2012-10-03 19:51:04 +02:00
David Nadlinger
0c0e88dda1
Add missing LDMD option handling code.
...
Reusing the existing parsing code for DMD compatibility was a good
idea, copy-pasting the tool together in the middle of the night not
so much.
2012-10-03 19:51:04 +02:00
David Nadlinger
e37cb50999
Use -of for object name when building executable with -singleobj.
...
This is what DMD does, and arguably the expected behavior – otherwise,
there would be no way other than using -od to prevent races if two
compiler instances could ever compile the same file(s) at the same
time (e.g. for debug/release configurations).
Should we transition to assuming -singleobj by default?
2012-10-03 18:01:58 +02:00
David Nadlinger
b8e62b801b
Merge pull request #177 from jerro/extractelement
...
extractelement and insertelement pragmas.
2012-10-03 09:01:20 -07:00
Jernej Krempuš
fd3e79b7bb
Corrections.
2012-10-03 15:26:43 +02:00
Jernej Krempuš
047dcb5591
Fixed D1 build errors.
2012-10-03 04:13:21 +02:00
Jernej Krempuš
115bc7113e
Improved error messages.
2012-10-03 03:44:34 +02:00