Tomas Lindquist Olsen
4280a86bcf
Fixed .funcptr property of delegates, no longer uses the infamous DMD rewrites to pointer arithmetic, instead a GEPExp has been introduced.
2008-09-15 02:04:26 +02:00
Christian Kamm
431bc19d2f
To prevert source-overwriting in the future, forbit output files with the same
...
name as the source file.
2008-09-14 22:49:19 +02:00
Christian Kamm
151f86630c
Fix path handling, hopefully.
2008-09-14 22:08:39 +02:00
Christian Kamm
eaa4ebd7aa
Add broken .funcptr test.
2008-09-14 22:04:13 +02:00
Christian Kamm
cc568d6820
Fix output files being .d.bc. They're now .bc again.
2008-09-14 19:51:38 +02:00
Christian Kamm
857b89e3f4
Fix #88 : pragma(lib, "str") is now converted to -lstr in the linker command line.
2008-09-14 14:36:11 +02:00
Christian Kamm
9c514a7afe
Undid some of the previous changes: DtoArrayInit has issues with arrays
...
similar to T[n][].
2008-09-14 13:47:38 +02:00
Christian Kamm
d6e4f659e2
Allocate dynamic array literals on the heap.
2008-09-14 10:56:01 +02:00
Christian Kamm
30c9af1945
Add _d_newarrayvT and _d_newarraymvT to create arrays without initialization.
...
Adjust DtoNewDynArray to use DtoArrayInit for initialization of new arrays.
Make Type::tvoid->defaultInit() not error.
2008-09-14 10:13:50 +02:00
Christian Kamm
e0635f1707
Allow VarDecl inside AttributeDecl inside DeclExp.
...
Fixes run/e/extern_10_D
2008-09-12 13:11:32 +02:00
Christian Kamm
e4ee8907cb
Fix line number for error when trying to new a nested class without a context.
2008-09-12 12:48:16 +02:00
Christian Kamm
f0abdf860a
Constant fold structliteral.member again.
2008-09-12 12:39:06 +02:00
Tomas Lindquist Olsen
bba1994b05
Fixed a few mini tests issues.
...
Added 'darwin' and 'Posix' as versions user can't set.
Fixed #80 .
2008-09-11 21:10:15 +02:00
Tomas Lindquist Olsen
d474fa027a
Fixed most regressions from last commit.
2008-09-10 12:33:33 -07:00
Tomas Lindquist Olsen
8e9b957bce
Complex number should now follow the D ABI on x86. They're also treated as first class values now. Big change.
2008-09-09 16:49:47 -07:00
Christian Kamm
4e0b6b4bf0
Make sure functions containing inline asm are never inlined to avoid
...
duplicated labels.
2008-09-08 20:38:55 +02:00
Tomas Lindquist Olsen
f411df11e3
Fixed choosing default target machine without needing to link in targets.
2008-09-07 17:44:25 -07:00
Christian Kamm
88f9ca75ad
Don't link in any target code, was unnecessary.
2008-09-07 16:16:10 +02:00
Christian Kamm
640f21c493
Only link default native backend by default.
...
Use the new option --add-backend to link in additional targets.
2008-09-07 15:30:34 +02:00
Christian Kamm
d44f21687e
Restructure path handling a bit. Fixes #66 .
2008-09-06 12:27:27 +02:00
Christian Kamm
2f2987371f
Basic support for runtime in shared library.
...
Needs to be built with runtime/build-sharedlibs.sh and activated manually by
providing -defaultlib=llvmdc-runtime-shared -defaultlib=tango-cc-tango-shared
-defaultlib=tango-gc-basic-shared on llvmdc call at the moment.
To support D shared libraries in non-D code, we need to remove the main() from
libllvmdc-runtime-shared.
2008-09-05 23:02:18 +02:00
Christian Kamm
a27b5c5684
Fix (?) rt_stackBottom for Windows.
2008-09-04 20:58:25 +02:00
Christian Kamm
e3691ffa19
Merge Dynamic_Ranges and Data_Proc_Maps from GDC runtime.
2008-09-04 18:57:03 +02:00
Christian Kamm
dde98f16f9
Add test for GC scanning data segment.
2008-09-04 17:59:01 +02:00
Tomas Lindquist Olsen
3a8125b7c8
Pointer comparisons were being treated as signed integers. Now they are handled as unsigned integers.
2008-09-04 17:24:10 +02:00
Tomas Lindquist Olsen
ee29f29659
Fixed pointer comparisons with differing types.
2008-09-04 17:17:40 +02:00
Tomas Lindquist Olsen
6bcf3c5126
merge
2008-09-04 17:05:51 +02:00
Tomas Lindquist Olsen
ccfa5218c3
merge
2008-09-04 17:05:35 +02:00
Christian Kamm
7e39328af4
Typo in runtime makefile.
2008-09-04 16:14:07 +02:00
Christian Kamm
3779b7c7d1
Split runtime into three parts again.
2008-09-03 22:07:04 +02:00
Tomas Lindquist Olsen
f3b3db7fa9
Changed all '#if linux || __APPLE__' to '#if POSIX' so we can support other platforms too, thanx for the suggestion anders.
2008-09-02 23:10:12 +02:00
Christian Kamm
d6e7a65b69
Automated merge with http://hg.dsource.org/projects/llvmdc
2008-09-02 19:14:37 +02:00
Christian Kamm
877da230a3
Get rid of runtime path. Allow defaultlib and debuglib switches to be given multiple times.
2008-09-02 19:14:25 +02:00
Tomas Lindquist Olsen
9f0633a7dd
Added some sanity checks for target detection.
2008-08-31 18:51:14 +02:00
Tomas Lindquist Olsen
1565f00f85
Fixed toobj.cpp to compile with latest LLVM, seems a method overload was removed recently.
2008-08-31 18:38:16 +02:00
Tomas Lindquist Olsen
c44c04e004
merge
2008-08-31 17:29:52 +02:00
Christian Kamm
6916319f9f
Automated merge with http://hg.dsource.org/projects/llvmdc
2008-08-30 10:31:04 +02:00
Christian Kamm
7963800bd6
Introducing template instantiation traces for static asserts and errors within templates.
2008-08-30 10:30:57 +02:00
Tomas Lindquist Olsen
9310134dfc
Ok. last fix was wrong, PTHREAD_MUTEX_RECURSIVE_NP is only valid on linux...
2008-08-29 16:59:12 +02:00
Tomas Lindquist Olsen
6b423621d2
The latest patch broke things for non OS X
2008-08-29 16:35:46 +02:00
Christian Kamm
01b6538f6f
Make rt_stackBottom return the right fixed value for darwin.
2008-08-29 15:01:48 +02:00
Christian Kamm
3e5a20cf6b
Merge rest of patch from #72 .
2008-08-29 14:48:40 +02:00
Christian Kamm
ba21d60706
Enable unwind code on darwin.
2008-08-29 14:16:18 +02:00
Christian Kamm
8efe20f5f9
Link in pthread, dl and m on OS X.
2008-08-29 14:11:20 +02:00
Christian Kamm
0ccd7270fb
Add .DS_Store to .hgignore
2008-08-29 14:10:19 +02:00
Christian Kamm
b2b013d929
Always call finalizer for stack classes. Checking for the number of
...
destructors of the class type is not sufficient: we may be holding a derived
class with a destructor.
Fixes: run/auto_07
2008-08-28 20:17:21 +02:00
Christian Kamm
0f92afc5b9
Do not assert on non-existing supposed globals. (see nocompile/union_12,14)
2008-08-28 20:15:36 +02:00
Christian Kamm
7b07ddcbd8
Fix findregressions and makewebstatistics to adhere to our definition of
...
Improvement and Regression.
2008-08-28 08:37:47 +02:00
Tomas Lindquist Olsen
24de69fa76
removed use on removed switches in gc makefile
2008-08-26 21:06:12 +02:00
Tomas Lindquist Olsen
c65cd45966
Removed unimplemented switches.
2008-08-26 21:02:25 +02:00