Christian Kamm
07649678db
_d_delarray also had one of the array consistency asserts mentioned in #184
...
and dmd2632.
2009-01-30 07:51:50 +01:00
Christian Kamm
d958535969
Remove asserts on array consistancy in arraysetlength. Fixes #184 , thanks Deewiant.
2009-01-29 17:45:12 +01:00
Christian Kamm
921a326865
Applied doob's patch to port GDC's Dyld data segment tracking for Mac.
2009-01-24 00:33:06 +01:00
Christian Kamm
783ec2799d
Further Solaris data segment detection fixes. Thanks BlueZeniX!
2009-01-23 10:13:27 +01:00
Christian Kamm
ab9b9cc2e9
Solaris compatibility and proc map parsing #183 , thanks BlueZeniX!
2009-01-22 18:53:32 +01:00
Christian Kamm
f4f5c58a44
Add wilsonk's static data segment finding code for x86-64 from #181 . Thanks!
2009-01-22 18:23:30 +01:00
Christian Kamm
ba9eb478dd
Add headers for HP's libunwind, currently unused though.
2009-01-22 17:57:38 +01:00
Christian Kamm
bbf21853b4
Fix x86-64 exception handling #180 . Thanks pcwalton!
2009-01-22 17:50:38 +01:00
Christian Kamm
8ac2aecf42
Apply pcwalton's eh runtime portability fix.
2009-01-19 19:42:00 +01:00
Christian Kamm
33fe431ffe
Don't use /proc/self/map for finding the static data segment on x86-64 for
...
now. Probably breaks shared libraries. Parsing the file needs to be rewritten!
2009-01-19 19:34:51 +01:00
Christian Kamm
e7f750aee1
Apply BlueZeniX's patch for OpenSolaris compatibility. Fixes #158 .
2009-01-04 15:49:28 +01:00
Christian Kamm
68de00f6c4
Backed out changeset 1fcba307fd28
...
Wasn't the right thing to do.
2008-12-27 16:07:23 +01:00
Christian Kamm
20b85089a7
Changed bswap intrinsic definition in compiler specific runtime to actually
...
implement a linkable bswap.
2008-12-27 15:54:24 +01:00
Christian Kamm
a272b01df6
Apply fix for #151 .
2008-12-15 21:09:33 +01:00
Tomas Lindquist Olsen
b6781a8eae
Added proper "need 'this' to access member foo" errors instead of "variable foo not resolved" for some cases, added FIXME for the old error!
...
Added a bit more information to the runtime's cyclic dependency detection exception.
2008-12-09 01:56:39 +01:00
Christian Kamm
cdbc4f84d2
Fix warnings on x86-64. By fvbommel.
2008-11-28 21:24:08 +01:00
Christian Kamm
437aa0d4aa
Fix bug in array_cast_len. Makes tango.text.Regex work.
2008-11-02 18:36:28 +01:00
Christian Kamm
891d17e4b5
Applied easy part from wilsonk's x86-64 patch in #107
2008-10-30 11:08:34 +01:00
Christian Kamm
0e5d9f970b
Add explicit uint->char cast to get rid of warning.
2008-10-30 10:15:42 +01:00
Christian Kamm
b3b98c3284
Fix broken indentation from last commit.
2008-10-26 21:18:24 +01:00
Christian Kamm
d3bb0b74bd
Enable arg reversal on x86 by default. Make change to TypeInfo_Struct.compare to accomodate for it.
2008-10-26 21:16:21 +01:00
Christian Kamm
cfcda83291
Change _d_newclass into _d_allocclass. Add initialization to ClassInfo.create.
2008-10-26 14:12:03 +01:00
Tomas Lindquist Olsen
5ad345646a
Merged DMD 1.036.
...
Improved comments a little in the runtime source code.
2008-10-22 17:06:17 +02:00
Tomas Lindquist Olsen
f7ea1da010
Removed TypeOpaque from DMD.
...
Changed runtime functions taking opaque[] to void[].
Implemented proper type painting, to avoid "resizing" array casts in runtime calls that previously took opaque[].
Implemented dynamic arrays as first class types, this implements proper ABI for these types on x86.
Added dwarf region end after call to assert function, fixes some problems with llvm not allowing this to be missing.
Reverted change to WithStatement from rev [704] it breaks MiniD, mini/with2.d needs to be fixed some other way...
Fixed tango bug 1339 in runtime, problem with _adReverseChar on invalid UTF-8.
Disabled .bc generation in the compiler runtime part, genobj.d triggers some llvm bug when using debug info. the .o seems to work fine.
2008-10-22 14:55:33 +02:00
Christian Kamm
e1283d80d2
Updates to makefiles. It's not robust with regard to the .bc files, but it works.
2008-10-12 10:42:54 +02:00
Christian Kamm
6d1768967e
Fix makefile for runtime/internal.
2008-10-11 21:23:41 +02:00
Christian Kamm
45fc733717
Renames.
2008-10-06 22:56:54 +02:00
Christian Kamm
a3a418150e
Some missed LLVMDC -> LDC.
2008-10-06 22:54:08 +02:00
Christian Kamm
6eeeafdba6
First part of rename to LDC.
2008-10-06 22:46:55 +02:00
Tomas Lindquist Olsen
1165edee29
One more update of Tango Rebuild profile.
...
Made the inp/outp intrinsics throw exceptions instead of doing nothing silently.
2008-10-06 16:39:47 +02:00
Christian Kamm
40d0df8769
Portability changes to dmain2.d
2008-10-04 23:28:49 +02:00
Christian Kamm
35f6672bb6
Adjust dmain catch to print exception trace info.
2008-10-04 13:35:27 +02:00
Tomas Lindquist Olsen
d0c5df393c
Applied the FreeBSD patch from Ralith, closes ticket #95 , slightly changed but basically the same. Thanx Ralith :)
2008-10-02 03:25:46 +02:00
Tomas Lindquist Olsen
14e9384b23
Removed dmdintrinsic.d from the runtime, we already have llvmdc.bitmanip.
...
Updated tango patch to import tango.core.BitManip instead of std.intrinsic.
2008-09-18 21:14:37 +02:00
Christian Kamm
441253b416
Add implementations for dmd intrinsics. Fixes #92 .
2008-09-17 19:54:37 +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
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
Tomas Lindquist Olsen
d474fa027a
Fixed most regressions from last commit.
2008-09-10 12:33:33 -07: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
3779b7c7d1
Split runtime into three parts again.
2008-09-03 22:07:04 +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
Tomas Lindquist Olsen
fc08ace210
missing || __APPLE__ in monitor.c
2008-08-24 18:11:08 +02:00
Christian Kamm
ef80c904dc
Make class invariants work.
2008-08-21 15:19:45 +02:00
Tomas Lindquist Olsen
148534637e
Removed debug info per default from the runtime makefiles, since llvm 2.4svn is currently buggy.
2008-08-12 00:20:04 +02:00