Commit Graph

  • cfcda83291 Change _d_newclass into _d_allocclass. Add initialization to ClassInfo.create. Christian Kamm 2008-10-26 14:12:03 +01:00
  • b8bd953dcf Change default to not using inreg. Christian Kamm 2008-10-26 14:11:14 +01:00
  • 2885e645d1 Add test for broken ClassInfo.create method. Thanks MrSunshine. Christian Kamm 2008-10-26 13:41:03 +01:00
  • 4d7af01374 Fix double field toObjFile for structs with AttribDecls. Christian Kamm 2008-10-25 22:07:20 +02:00
  • 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 Tomas Lindquist Olsen 2008-10-25 18:12:07 +02:00
  • 3c3a5dda14 Implemented correct parameter order according to x86-32 ABI documentation. Changed AA types to just a void* . Tomas Lindquist Olsen 2008-10-25 06:03:28 +02:00
  • 5ed0ab3ab8 Commented that codegen: <modulename> printf ... Tomas Lindquist Olsen 2008-10-23 19:42:55 +02:00
  • 4b82b7a729 Make extern(System) configure the calling convention on LDC runtime, not when building LDC. Tomas Lindquist Olsen 2008-10-23 19:38:01 +02:00
  • f71b7ac284 Added inreg attribute where appropriate on x86 to follow ABI docs. Removed now unnecessary temporary variable in StringExp. Tomas Lindquist Olsen 2008-10-23 00:34:46 +02:00
  • a52f0330d0 Implemented first class delegates. closes #101 Tomas Lindquist Olsen 2008-10-22 21:50:08 +02:00
  • 42ae090eaf Make sure debug info has correct file name and path. Christian Kamm 2008-10-22 20:00:57 +02:00
  • 5ad345646a Merged DMD 1.036. Improved comments a little in the runtime source code. Tomas Lindquist Olsen 2008-10-22 17:06:17 +02:00
  • 7be6ac6b36 Turned unimplemented align error into a warning instead. Tomas Lindquist Olsen 2008-10-22 15:35:46 +02:00
  • 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. Tomas Lindquist Olsen 2008-10-22 14:55:33 +02:00
  • 50484db204 Updated Rebuild profile to use correct linker switches Tomas Lindquist Olsen 2008-10-22 13:48:54 +02:00
  • 773b15ba5e Use malloc instead of alloca. Christian Kamm 2008-10-21 20:46:12 +02:00
  • 742ffd88a3 Fix -of with multiple input files. Christian Kamm 2008-10-21 18:15:34 +02:00
  • 9d2853f7be Changed premake script to write target triple to a file, then read that, instead of using popen Tomas Lindquist Olsen 2008-10-20 23:33:59 +02:00
  • 7c7ed3ec12 Make align(n), n != 1 an error. Christian Kamm 2008-10-18 14:33:11 +02:00
  • 0fe7297fba Add missing case to DtoAssign for T[n] = T[]. Fixes downs' initializer bug. Christian Kamm 2008-10-16 22:36:26 +02:00
  • 6c532ac149 Hopefully sensible command switch handling. Changed default ext to .o on Windows. Christian Kamm 2008-10-16 22:07:02 +02:00
  • 8f14246bef Fixed bug with generated functions having wrong calling conventions. Thanks downs. Christian Kamm 2008-10-15 20:22:18 +02:00
  • c2c156f9a0 Remove pthread_darwin from common runtime makefile. Christian Kamm 2008-10-14 19:48:45 +02:00
  • 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. Tomas Lindquist Olsen 2008-10-14 15:35:49 +02:00
  • 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. Tomas Lindquist Olsen 2008-10-14 13:21:14 +02:00
  • 202c4f7bc2 Changed premake.lua to work with mingw. Implemented array operations, not perfect but ok for tonight. closes #89 Tomas Lindquist Olsen 2008-10-13 23:19:32 +02:00
  • e76d8f25b4 changed uint to unsigned int, thanks Elrood Christian Kamm 2008-10-13 21:08:11 +02:00
  • 881a141a1a Guess exe name from first object name if none specified. Christian Kamm 2008-10-13 19:02:03 +02:00
  • 1757e2e1de Updated rebuild profile for .o output as default, compiler needs to be fixed still. Fixed segfault with ' ldc foo.o -offoo '. Tomas Lindquist Olsen 2008-10-13 18:19:43 +02:00
  • f15b115ee9 Started changing target triple stuff, part of fixing #97 Tomas Lindquist Olsen 2008-10-13 17:28:39 +02:00
  • 0a5179990a Merge darwin patch for Tango. Christian Kamm 2008-10-13 16:51:38 +02:00
  • 73c58119e5 Missing include added. Christian Kamm 2008-10-13 14:09:24 +02:00
  • cdeaefa63c Fix issues with gradual underflow and strtof, strtod on Mac. Christian Kamm 2008-10-13 14:01:18 +02:00
  • ee8dd42c1d Some cleanups in command line argument descriptions. Christian Kamm 2008-10-13 11:13:20 +02:00
  • bc39d73425 Allow output of only bc, ll, or s by making -of set the output type depending on the extension. Christian Kamm 2008-10-13 10:58:00 +02:00
  • 6c19259c68 Trivial change to test auth. Christian Kamm 2008-10-12 20:22:51 +02:00
  • 98f764b5f7 Trivial change, just checking pushing auth. Christian Kamm 2008-10-12 18:11:30 +02:00
  • c8ef274074 Update tests readme. Christian Kamm 2008-10-12 18:10:19 +02:00
  • a455186f28 Homepage rename. Christian Kamm 2008-10-12 18:03:34 +02:00
  • d82c8068a3 Always run SimplifyCFG to workaround LLVM bug 2613. Christian Kamm 2008-10-12 15:33:14 +02:00
  • be85b09854 Pass flags ADD_DFLAGS to build of runtime/internal. Christian Kamm 2008-10-12 15:31:24 +02:00
  • 1e825d057a Emit region.end debug calls before a throw. Christian Kamm 2008-10-12 15:30:58 +02:00
  • b413b9aa54 Emit stub debug info for generated functions to work around LLVM bug 2172. Christian Kamm 2008-10-12 14:38:55 +02:00
  • c2f17bda87 Adjust build-tango.sh for ldc. Christian Kamm 2008-10-12 11:23:27 +02:00
  • e1283d80d2 Updates to makefiles. It's not robust with regard to the .bc files, but it works. Christian Kamm 2008-10-12 10:42:54 +02:00
  • 6cb213badf Only allocate the module file name once. Fixes #90. Christian Kamm 2008-10-12 10:35:16 +02:00
  • 40f724234d Remove too strict type check for DotTypeExp. Fixes run/t/typedef_19_B. Christian Kamm 2008-10-11 22:44:17 +02:00
  • b4e57e83eb Another link order fix. Christian Kamm 2008-10-11 22:14:16 +02:00
  • 5a8716d539 Update dstress running script. Christian Kamm 2008-10-11 21:46:19 +02:00
  • 697e5830fc Fix remaining make files. Fix linking order for static libs. Christian Kamm 2008-10-11 21:40:44 +02:00
  • 6d1768967e Fix makefile for runtime/internal. Christian Kamm 2008-10-11 21:23:41 +02:00
  • ee407e597a Link using gcc instead. Christian Kamm 2008-10-11 21:21:21 +02:00
  • 1bfc0316aa Make ldc call gcc to assemble. Christian Kamm 2008-10-11 20:00:36 +02:00
  • 73d7a299c9 Disable bc output by default. Remove -dis. Add -output-bc, -output-ll, -output-s. Call to gcc to convert assembly to object file still required. Christian Kamm 2008-10-11 13:07:59 +02:00
  • 3e4bb69ef3 Move to separate function and cleanup. Christian Kamm 2008-10-11 11:41:56 +02:00
  • 7b20402e0b Add basics for direct assembly output. Christian Kamm 2008-10-11 11:07:53 +02:00
  • e8f8340ef8 Automated merge with http://hg.dsource.org/projects/llvmdc Christian Kamm 2008-10-08 22:43:38 +02:00
  • ed7dd481e5 Fixed dynamic array -> boolean. does (arr.ptr !is null) now instead of (arr.length != 0) Tomas Lindquist Olsen 2008-10-08 22:38:52 +02:00
  • 9499761131 When newing a struct, make sure the initializer is available. Christian Kamm 2008-10-08 20:41:43 +02:00
  • 4d610bcd7e Fix odd interfaceInfoType bug. Christian Kamm 2008-10-08 20:28:59 +02:00
  • 3506960765 Add tests. Christian Kamm 2008-10-07 20:22:04 +02:00
  • b90799a376 Add DotTypeExp Christian Kamm 2008-10-07 20:19:19 +02:00
  • ae9a2901df Implement BoolExp. Christian Kamm 2008-10-07 18:41:00 +02:00
  • 45fc733717 Renames. Christian Kamm 2008-10-06 22:56:54 +02:00
  • a3a418150e Some missed LLVMDC -> LDC. Christian Kamm 2008-10-06 22:54:08 +02:00
  • 6eeeafdba6 First part of rename to LDC. Christian Kamm 2008-10-06 22:46:55 +02:00
  • 1fe1354a8a Applied downs' latest Phobos patch Tomas Lindquist Olsen 2008-10-06 21:40:33 +02:00
  • 0bd282113b Simplify fp80 handling in DtoConstFP Christian Kamm 2008-10-06 21:27:29 +02:00
  • 1165edee29 One more update of Tango Rebuild profile. Made the inp/outp intrinsics throw exceptions instead of doing nothing silently. Tomas Lindquist Olsen 2008-10-06 16:39:47 +02:00
  • 1bc3aec560 Forgot a change from DMD update. Removed old Phobos rebuild profiles. Updated Tango rebuild profile slightly. Tomas Lindquist Olsen 2008-10-06 16:22:54 +02:00
  • 06a55194d7 Upgraded frontend to DMD 1.035 Tomas Lindquist Olsen 2008-10-06 16:22:11 +02:00
  • e109025c00 Removed some checks for abstract llvm types that were too strict, a 'opaque* null' is a valid initializer... when structs in D can be just a forward reference. Tomas Lindquist Olsen 2008-10-06 14:37:00 +02:00
  • ecd8a2ac07 Support structs that are merely a forward reference. See mini/forwdecl1.d Tomas Lindquist Olsen 2008-10-06 14:06:55 +02:00
  • f706098c56 Added -version=Tango in default llvmdc.conf Fixed problem with array casts, all DWT modules needed for HelloWorld1 samples now compile. Still some linking issues. Tomas Lindquist Olsen 2008-10-06 12:46:57 +02:00
  • 62603c6aaf Updated llvmdc-tango Rebuild profile, liblink was wrong Tomas Lindquist Olsen 2008-10-06 10:23:25 +02:00
  • 15e5f0e902 Fix x86_fp80 constants. Christian Kamm 2008-10-06 09:07:35 +02:00
  • 0de539868e Fix TryFinally without body or finalbody. Christian Kamm 2008-10-05 22:26:25 +02:00
  • 81b93325ca Added -nodefaultlib switch do disable implicitly linked standard lib modules Tomas Lindquist Olsen 2008-10-05 18:55:43 +02:00
  • 77e16a9302 Added test case for bug #100 Removed dubious check for not emitting static private global in other modules without access. This should be handled properly somewhere else, it's causing unresolved global errors for stuff that should work (in MiniD) Tomas Lindquist Olsen 2008-10-05 17:28:15 +02:00
  • f721aee1a4 Automated merge with http://hg.dsource.org/projects/llvmdc Christian Kamm 2008-10-05 11:47:59 +02:00
  • 2a999b72e8 Fix VarDecls for tuples. Closes #99. Christian Kamm 2008-10-05 11:47:47 +02:00
  • 60cb084af7 Updated the Tango patch to latest revision. Removed problematic (Jarrett) include <cassert> from gen/runtime.cpp Tomas Lindquist Olsen 2008-10-05 02:01:50 +02:00
  • 40d0df8769 Portability changes to dmain2.d Christian Kamm 2008-10-04 23:28:49 +02:00
  • 35f6672bb6 Adjust dmain catch to print exception trace info. Christian Kamm 2008-10-04 13:35:27 +02:00
  • 87d885f840 Don't let outer enclosing handlers propagate to nested function declarations. Christian Kamm 2008-10-04 12:32:09 +02:00
  • f4da5f4a89 Fix -oq, closes #96 Add value debug output to RealExp::toConstElem. Christian Kamm 2008-10-03 19:24:46 +02:00
  • 2f9b9dead7 Make default argument protection check not error for undefined protection. Fix symbol visibility issues in Tango. Christian Kamm 2008-10-03 17:31:16 +02:00
  • 920aa77e64 Fiber support: clobber the registers we want restored on a context switch. Christian Kamm 2008-10-03 09:11:41 +02:00
  • 8113935dea Made Fibers work with LLVMDC on x86 Posix. Christian Kamm 2008-10-03 00:42:17 +02:00
  • b3d4bc83f8 Move check for access of context for nested class from backend into frontend. Christian Kamm 2008-10-02 23:12:19 +02:00
  • e2a1394ae8 Added FreeBSD support to the -t switch Tomas Lindquist Olsen 2008-10-02 03:38:29 +02:00
  • d0c5df393c Applied the FreeBSD patch from Ralith, closes ticket #95 , slightly changed but basically the same. Thanx Ralith :) Tomas Lindquist Olsen 2008-10-02 03:25:46 +02:00
  • e77e235307 updated tango patch so it compiles again with the latests check for using privates as default args for public functions. Tomas Lindquist Olsen 2008-10-02 01:42:21 +02:00
  • efab6b8f2a added test case for last commit (taking delegate of nested function of current function) Tomas Lindquist Olsen 2008-10-02 01:38:00 +02:00
  • d0ff4494ac Fixed problem with taking the delegate of a nested function of the current function. Tomas Lindquist Olsen 2008-10-02 01:28:33 +02:00
  • daf14100ce merge Tomas Lindquist Olsen 2008-10-01 23:17:36 +02:00
  • bce9368514 Updated to latest LLVM trunk, function notes have been removed and merged with parameter attributes, which have been renamed to just attributes. Nothing seems to have broke! Tomas Lindquist Olsen 2008-10-01 23:17:14 +02:00
  • a9285162f3 Automated merge with http://hg.dsource.org/projects/llvmdc Christian Kamm 2008-10-01 21:14:20 +02:00
  • c4b523dc29 Nicer error message on some invalid default args. Christian Kamm 2008-10-01 21:14:15 +02:00
  • e7ad7296d0 Fixed issue with IsExpression and potential type mismatch for classes. Tomas Lindquist Olsen 2008-10-01 20:55:13 +02:00