Commit Graph

738 Commits

Author SHA1 Message Date
Christian Kamm
0e5d9f970b Add explicit uint->char cast to get rid of warning. 2008-10-30 10:15:42 +01:00
Christian Kamm
07f35424f1 Fix debug path. 2008-10-27 17:42:38 +01:00
Tomas Lindquist Olsen
6b9e85df48 Attempt at getting LLVM to provide a proper target data layout. Should assert now if things are borked.
Added untested support for Thumb target.
2008-10-27 17:37:34 +01:00
Christian Kamm
29dfacde9a Fold in mandel's patch for ARM from #106 2008-10-27 16:36:59 +01:00
Tomas Lindquist Olsen
f89592b354 Nested access to with statement should work now. fixes #105 2008-10-27 01:40:47 +01:00
Tomas Lindquist Olsen
fdc172377e Fixed tuple fields, thanx downs 2008-10-27 01:11:41 +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
4c12540497 Always add trailing slash to source path for debug info. 2008-10-26 17:31:05 +01:00
Christian Kamm
cfcda83291 Change _d_newclass into _d_allocclass. Add initialization to ClassInfo.create. 2008-10-26 14:12:03 +01:00
Christian Kamm
b8bd953dcf Change default to not using inreg. 2008-10-26 14:11:14 +01:00
Christian Kamm
2885e645d1 Add test for broken ClassInfo.create method. Thanks MrSunshine. 2008-10-26 13:41:03 +01:00
Christian Kamm
4d7af01374 Fix double field toObjFile for structs with AttribDecls. 2008-10-25 22:07:20 +02:00
Tomas Lindquist Olsen
80e29f86e4 Disabled parameter reversing by default, it broke mini/typeinfo10.d
Fixed 'inreg' property placement for functions with reversed parameters.
Made parameter reversal and inreg passing of first arg configurable in premake.lua
2008-10-25 18:12:07 +02:00
Tomas Lindquist Olsen
3c3a5dda14 Implemented correct parameter order according to x86-32 ABI documentation.
Changed AA types to just a void* .
2008-10-25 06:03:28 +02:00
Tomas Lindquist Olsen
5ed0ab3ab8 Commented that codegen: <modulename> printf ... 2008-10-23 19:42:55 +02:00
Tomas Lindquist Olsen
4b82b7a729 Make extern(System) configure the calling convention on LDC runtime, not when building LDC. 2008-10-23 19:38:01 +02:00
Tomas Lindquist Olsen
f71b7ac284 Added inreg attribute where appropriate on x86 to follow ABI docs.
Removed now unnecessary temporary variable in StringExp.
2008-10-23 00:34:46 +02:00
Tomas Lindquist Olsen
a52f0330d0 Implemented first class delegates. closes #101 2008-10-22 21:50:08 +02:00
Christian Kamm
42ae090eaf Make sure debug info has correct file name and path. 2008-10-22 20:00:57 +02: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
7be6ac6b36 Turned unimplemented align error into a warning instead. 2008-10-22 15:35:46 +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
Tomas Lindquist Olsen
50484db204 Updated Rebuild profile to use correct linker switches 2008-10-22 13:48:54 +02:00
Christian Kamm
773b15ba5e Use malloc instead of alloca. 2008-10-21 20:46:12 +02:00
Christian Kamm
742ffd88a3 Fix -of with multiple input files. 2008-10-21 18:15:34 +02:00
Tomas Lindquist Olsen
9d2853f7be Changed premake script to write target triple to a file, then read that, instead of using popen 2008-10-20 23:33:59 +02:00
Christian Kamm
7c7ed3ec12 Make align(n), n != 1 an error. 2008-10-18 14:33:11 +02:00
Christian Kamm
0fe7297fba Add missing case to DtoAssign for T[n] = T[]. Fixes downs' initializer bug. 2008-10-16 22:36:26 +02:00
Christian Kamm
6c532ac149 Hopefully sensible command switch handling. Changed default ext to .o on Windows. 2008-10-16 22:07:02 +02:00
Christian Kamm
8f14246bef Fixed bug with generated functions having wrong calling conventions. Thanks downs. 2008-10-15 20:22:18 +02:00
Christian Kamm
c2c156f9a0 Remove pthread_darwin from common runtime makefile. 2008-10-14 19:48:45 +02:00
Tomas Lindquist Olsen
379bd9c330 Fixed weird struct problem from downs, see mini/compile_structs1.d
Rewrote DtoIndexStruct/Class , the old implementation were way too complex for what we really need now - since the DotVar changes.
2008-10-14 15:35:49 +02:00
Tomas Lindquist Olsen
180487b614 Fixed issue with accessing a WithStatement context from inside a nested function. see mini/with2.d
Renamed some LLVM uses of ::create statics to ::Create , lower case ones will be deprecated soon.
2008-10-14 13:21:14 +02:00
Tomas Lindquist Olsen
202c4f7bc2 Changed premake.lua to work with mingw.
Implemented array operations, not perfect but ok for tonight. closes #89
2008-10-13 23:19:32 +02:00
Christian Kamm
e76d8f25b4 changed uint to unsigned int, thanks Elrood 2008-10-13 21:08:11 +02:00
Christian Kamm
881a141a1a Guess exe name from first object name if none specified. 2008-10-13 19:02:03 +02:00
Tomas Lindquist Olsen
1757e2e1de Updated rebuild profile for .o output as default, compiler needs to be fixed still.
Fixed segfault with ' ldc foo.o -offoo '.
2008-10-13 18:19:43 +02:00
Tomas Lindquist Olsen
f15b115ee9 Started changing target triple stuff, part of fixing #97 2008-10-13 17:28:39 +02:00
Christian Kamm
0a5179990a Merge darwin patch for Tango. 2008-10-13 16:51:38 +02:00
Christian Kamm
73c58119e5 Missing include added. 2008-10-13 14:09:24 +02:00
Christian Kamm
cdeaefa63c Fix issues with gradual underflow and strtof, strtod on Mac. 2008-10-13 14:01:18 +02:00
Christian Kamm
ee8dd42c1d Some cleanups in command line argument descriptions. 2008-10-13 11:13:20 +02:00
Christian Kamm
bc39d73425 Allow output of only bc, ll, or s by making -of set the output type depending
on the extension.
2008-10-13 10:58:00 +02:00
Christian Kamm
6c19259c68 Trivial change to test auth. 2008-10-12 20:22:51 +02:00
Christian Kamm
98f764b5f7 Trivial change, just checking pushing auth. 2008-10-12 18:11:30 +02:00
Christian Kamm
c8ef274074 Update tests readme. 2008-10-12 18:10:19 +02:00
Christian Kamm
a455186f28 Homepage rename. 2008-10-12 18:03:34 +02:00
Christian Kamm
d82c8068a3 Always run SimplifyCFG to workaround LLVM bug 2613. 2008-10-12 15:33:14 +02:00
Christian Kamm
be85b09854 Pass flags ADD_DFLAGS to build of runtime/internal. 2008-10-12 15:31:24 +02:00