David Nadlinger
8a27c94ce8
Merge pull request #137 from alexrp/master
...
Define ARM even in Thumb mode.
2012-07-09 05:25:54 -07:00
alexrp
b12784aa4e
Define ARM even in Thumb mode.
2012-07-08 03:25:49 +02:00
David Nadlinger
c630ab56ff
Fix #136 - return static arrays as sret parameters on non-x86.
...
This should eventually be done on x86 and x86_64 as well, but as
discussed in GitHub issue #110/pull request #120 , the ABI there needs a
closer look: at least on x86_64, we need to treat static arrays exactly
like if they were a struct containing T.length members of the same type
to be compatible with DMD (as soon as the ABI is correctly implemented
there, that is).
While for this reason I want to avoid a ABI change which could silently
break some code only to change the x86 ABI again shortly after, this
commit only touches the "default" ABI for unknown targets and thus
should be safe (as we give absoultely no ABI guarantees there anyway).
2012-07-07 23:53:46 +02:00
David Nadlinger
279f64a08d
Merged druntime.
2012-07-07 21:33:00 +02:00
David Nadlinger
f6d07ba0b3
Fix #135 – -o- broken with LDMD.
2012-07-06 21:55:19 +02:00
kai
0d7c0869a5
Replace find-alt-triple.sh with CMake regular expressions.
...
This has the advantage that it works on Windows, too.
2012-06-25 23:42:58 +02:00
David Nadlinger
cef19fb225
Fix #125 – Nested class context pointer invalid (D1).
...
Patch originally by Alexey Prokhin, thanks.
2012-06-24 16:18:47 +02:00
David Nadlinger
67f12fe8b5
Fixed DSource #330 – Many-at-a-time nested context crash (D1).
2012-06-24 11:30:32 +02:00
David Nadlinger
1480501f43
Just use -lib now that we have it.
2012-06-24 11:29:26 +02:00
David Nadlinger
05bf3dbaec
Updated druntime (cas for classes).
2012-06-24 00:09:10 +02:00
David Nadlinger
c84ce8044e
Merged druntime.
2012-06-23 23:38:54 +02:00
David Nadlinger
fa6af6341a
Fix #121 - merged druntime fix.
2012-06-23 18:43:33 +02:00
David Nadlinger
70384cc05f
Fix #125 - merged druntime fix.
2012-06-23 17:29:38 +02:00
David Nadlinger
61e61e47f0
Fix #125 - fix generation of nested context chains.
...
Just declaring the type of the parent is obviously not enoguh, we need to have run this very code for determining level and context type (if the parent is also nested, that is).
2012-06-23 17:05:59 +02:00
kai
0c6fcc12ec
Revert "Fix some parameter lists." because it breaks Linux build.
...
This reverts commit 0c5bd04aab .
2012-06-22 06:59:12 +02:00
kai
0c5bd04aab
Fix some parameter lists.
...
With this commit it is possible to build LDC/LDC2 with MSVC via CMake.
2012-06-21 06:44:52 +02:00
David Nadlinger
6f236518b5
Fixes #123 – Linking of pre/post-condition in interface fails when interface implemented in separate module.
2012-06-19 22:37:46 +02:00
David Nadlinger
e7afd77313
Merge pull request #128 from redstar/cmake_libconfig
...
New CMake module to locate libconfig++
2012-06-19 12:31:05 -07:00
kai
79c02f2a79
Remove some old variables which are unused now.
2012-06-19 18:08:42 +02:00
kai
eb008fac44
Fixed wrong default value for LIBCONFIG++_FOUND
2012-06-19 06:52:46 +02:00
kai
51256b8c82
Fixed a wrong variable reference.
2012-06-19 06:44:36 +02:00
kai
6dd643608a
Fix for review comments.
2012-06-18 21:26:18 +02:00
kai
c5eba4a98b
New CMake module to locate libconfig++
...
The current code to locate libconfig++ has some trouble:
- It is located in the main CMakeList file but should be a module of its own
- It depends on pkg-config which is not available on Windows
- The returned values are not really useful therefore the library name is hard coded
This commit tries to solve these problems. For a Unix-like system there should be no difference.
Additionally, you can override the variables on the command line which is useful for builds on Windows.
2012-06-18 19:50:11 +02:00
kai
920c563c7e
More MSVC related changes to CMakeLists.txt.
...
- Added new variable for MSVC specific compiler flags
- Added custom target for MASM support
2012-06-18 19:21:58 +02:00
kai
93b2334803
Add more MSVC stuff to CMake files.
2012-06-15 12:20:02 +02:00
kai
9824a3a1f8
2nd attempt to compile ldmd with MSVC.
...
This reverts the previous commits and reduces MSVC odditites to a single place.
2012-06-15 12:13:27 +02:00
kai
3eef7b7d55
First attempt to create build files for MSVC.
2012-06-13 18:23:39 +02:00
kai
15ed853402
Add code to compile ldmd with MSVC.
2012-06-13 18:23:07 +02:00
kai
95cb8af435
No need to exclude non-existing file root/win32.c from build.
2012-06-13 07:14:29 +02:00
David Nadlinger
27349f3589
Add LLVM_LDFLAGS twice to the LDMD link command to work around build problems.
2012-06-11 00:31:55 +02:00
David Nadlinger
7652fb8015
Explicitly include <unistd.h>.
2012-06-11 00:31:54 +02:00
David Nadlinger
295798877c
Avoid NULL/0 conversion warning.
2012-06-11 00:01:15 +02:00
David Nadlinger
53018c76f8
And climits.
...
Sorry for the noise.
2012-06-10 22:52:11 +02:00
David Nadlinger
6ddf84b61e
Explicitly include cstdarg in LDMD.
...
Hopefully compiles everywhere now.
2012-06-10 22:20:13 +02:00
David Nadlinger
9489508046
Write LDMD executable to bin/.
2012-06-10 22:19:54 +02:00
alexrp
22302f5f45
Correctly define D_PIC version identifier when relocation model is PIC.
2012-06-10 21:29:28 +02:00
David Nadlinger
98261321d8
Merge pull request #117 from alexrp/master
...
Return 0 immediately after printing -version/--version.
2012-06-10 09:56:03 -07:00
alexrp
00926c5654
Return 0 immediately after printing -version/--version.
2012-06-09 20:43:50 +02:00
David Nadlinger
fdee1fc725
Add back support for -C, for backwards compatibility.
2012-06-07 11:17:40 +02:00
David Nadlinger
f131647709
Pass through unknown switches to LDC.
2012-06-07 11:17:39 +02:00
David Nadlinger
b549edd60c
Removed now obsolote bin/ directory.
2012-06-07 11:17:39 +02:00
David Nadlinger
6ced6dae77
Fix #45 , fix #100 : LDMD rewrite for more sophisticated emulation of DMD command line behavior.
...
It ain't pretty. I know.
2012-06-07 11:17:39 +02:00
David Nadlinger
62bfda0259
Fix #113 - promotion of small static array arguments to registers.
2012-06-06 22:55:59 +02:00
David Nadlinger
ba9fb721ed
Removed trailing whitespace.
2012-06-06 20:41:46 +02:00
David Nadlinger
d5084d9051
Factored out x86 ABI code to separate file.
2012-06-06 20:39:38 +02:00
David Nadlinger
1c301aabcd
Fix #105 - don't randomly overwrite di files with thread.di.
...
DI_CMD is the CMake equivalent of a global variable, so it needs to be set in any case.
2012-06-06 17:54:07 +02:00
kai
175810bdab
Consolidate all MSVC related files for LDC/LDC2 in 1 folder.
2012-06-06 17:32:47 +02:00
kai
086e0d251b
Latest changes to compile LDC with MSVC.
2012-06-06 17:29:21 +02:00
David Nadlinger
04ea9ceefc
Merge pull request #112 from svenstaro/master
...
Fix typos: MUTILIB to MULTILIB
2012-06-06 07:19:02 -07:00
David Nadlinger
260faae6ec
Remove inreg attribute from static arrays when enregistering them.
2012-06-06 15:44:54 +02:00