Commit Graph

  • 32c4f92334 Detect a missing global before trying to const init it. Christian Kamm 2008-10-01 20:32:12 +02:00
  • 656b89db0f Tango patch: xml document fixes and symbol visibility in gc Christian Kamm 2008-10-01 19:19:26 +02:00
  • 271012bcfc Fix import visibility bugs 313 and 314. Christian Kamm 2008-10-01 19:16:10 +02:00
  • cd99e773f0 Make typedef'ed complex types work. Christian Kamm 2008-10-01 19:15:17 +02:00
  • 77b5e841dd Make invalid compile time casts an error instead of asserting. Christian Kamm 2008-10-01 19:15:01 +02:00
  • 04dd0ce3a7 merge Tomas Lindquist Olsen 2008-10-01 18:33:21 +02:00
  • bcafbe169d Wrapped all the most potentially expensive logging calls in a conditional to only do work when actually requested. Commented some logging calls that could potentially write out many megabytes of type dumps. Tomas Lindquist Olsen 2008-10-01 18:32:31 +02:00
  • 7453182e49 Automated merge with http://hg.dsource.org/projects/llvmdc Christian Kamm 2008-10-01 17:54:50 +02:00
  • 5ab9350ab8 Fix downs' raytracer demo to use new intrinsics. Christian Kamm 2008-10-01 17:54:44 +02:00
  • 7b18b7a633 Implemented constant pointer casts (like casting function pointer to void* as a constant global initializer) Tomas Lindquist Olsen 2008-09-28 21:09:21 +02:00
  • 04f7c18f95 Removed some excessive llvm type logging Tomas Lindquist Olsen 2008-09-28 15:22:39 +02:00
  • 8645e103ef Simplify complex number handling. Fixes bug with complex substraction. Christian Kamm 2008-09-22 20:29:18 +02:00
  • 9ce414c174 Fix NegExp not to use substraction. Christian Kamm 2008-09-21 19:28:57 +02:00
  • 2f479df1b2 Fix atomicIncr and atomicDecr. Probably. The unittest for tango.core.Atomic now passes. Christian Kamm 2008-09-21 18:41:27 +02:00
  • 12c81a2ee3 Don't delete the header file after it has been generated! Christian Kamm 2008-09-21 17:35:27 +02:00
  • 4f7f53fa04 Add bool-special cases in tango.core.Atomic. Christian Kamm 2008-09-21 17:23:17 +02:00
  • 16c32afa18 Fix issue with EH table indices and nested try-catch. Christian Kamm 2008-09-21 17:18:35 +02:00
  • bb47b7c4ce Backed out changeset 1b62222581fb Do not use i8 for bool. Instead rely on the target to store i1 as i8. Christian Kamm 2008-09-21 14:45:41 +02:00
  • 4b02533745 Change bool type to i8 Christian Kamm 2008-09-20 10:13:15 +02:00
  • a81a6367b4 Tango rev 3939 fixed the std.intrinsic issue. Christian Kamm 2008-09-19 21:45:05 +02:00
  • 14e9384b23 Removed dmdintrinsic.d from the runtime, we already have llvmdc.bitmanip. Updated tango patch to import tango.core.BitManip instead of std.intrinsic. Tomas Lindquist Olsen 2008-09-18 21:14:37 +02:00
  • 6c5c7ee1c1 Fixed the optimizer thing, since llvm PR 2800 is already fixed, users need to upgrade LLVM to latest svn. Tomas Lindquist Olsen 2008-09-18 21:07:35 +02:00
  • 441253b416 Add implementations for dmd intrinsics. Fixes #92. Christian Kamm 2008-09-17 19:54:37 +02:00
  • 1daa67ba50 Removed useless assert in ArrayLiteralExp::toConstElem Added second verification pass after optimization Commented an optimization pass out from lvl2, it turns the IR invalid, see llvm PR 2800 Tomas Lindquist Olsen 2008-09-16 16:06:39 +02:00
  • 713a734d58 Make creating and deleting of doc and hdr files dependent on whether doc and hdr files are to be generated. Christian Kamm 2008-09-16 09:00:05 +02:00
  • 310cdb14bf Fix typo in ArrayLiteralExp::toConstElem. Christian Kamm 2008-09-16 08:42:40 +02:00
  • 56fed01c88 Fixed ArrayLiteralExp::toConstElem for dynamic arrays, tango-user library should now be possible to build. It seems to be related to DMD bug 2356, which must have been introduced recently, as we already handled this fine for ArrayInitializers, just not ArrayLiterals... Kinda annoying to have to do this work due to DMD bugs ... Tomas Lindquist Olsen 2008-09-15 15:48:59 +02:00
  • c9242e3fbe Fixed DLRValue::getLType did not handle the lvalue being a LRValue itself properly. Tomas Lindquist Olsen 2008-09-15 15:17:41 +02:00
  • be651d97b7 Fixed AddrExp might silently change the type of its value, but we weren't casting to compensate ... why doesn't DMD insert a cast? Tomas Lindquist Olsen 2008-09-15 02:39:55 +02:00
  • 4280a86bcf Fixed .funcptr property of delegates, no longer uses the infamous DMD rewrites to pointer arithmetic, instead a GEPExp has been introduced. Tomas Lindquist Olsen 2008-09-15 02:04:26 +02:00
  • 431bc19d2f To prevert source-overwriting in the future, forbit output files with the same name as the source file. Christian Kamm 2008-09-14 22:49:19 +02:00
  • 151f86630c Fix path handling, hopefully. Christian Kamm 2008-09-14 22:08:39 +02:00
  • eaa4ebd7aa Add broken .funcptr test. Christian Kamm 2008-09-14 22:04:13 +02:00
  • cc568d6820 Fix output files being .d.bc. They're now .bc again. Christian Kamm 2008-09-14 19:51:38 +02:00
  • 857b89e3f4 Fix #88 : pragma(lib, "str") is now converted to -lstr in the linker command line. Christian Kamm 2008-09-14 14:36:11 +02:00
  • 9c514a7afe Undid some of the previous changes: DtoArrayInit has issues with arrays similar to T[n][]. Christian Kamm 2008-09-14 13:47:38 +02:00
  • d6e4f659e2 Allocate dynamic array literals on the heap. Christian Kamm 2008-09-14 10:56:01 +02:00
  • 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. Christian Kamm 2008-09-14 10:13:50 +02:00
  • e0635f1707 Allow VarDecl inside AttributeDecl inside DeclExp. Christian Kamm 2008-09-12 13:11:32 +02:00
  • e4ee8907cb Fix line number for error when trying to new a nested class without a context. Christian Kamm 2008-09-12 12:48:16 +02:00
  • f0abdf860a Constant fold structliteral.member again. Christian Kamm 2008-09-12 12:39:06 +02:00
  • bba1994b05 Fixed a few mini tests issues. Added 'darwin' and 'Posix' as versions user can't set. Fixed #80 . Tomas Lindquist Olsen 2008-09-11 21:10:15 +02:00
  • d474fa027a Fixed most regressions from last commit. Tomas Lindquist Olsen 2008-09-10 12:33:33 -07:00
  • 8e9b957bce Complex number should now follow the D ABI on x86. They're also treated as first class values now. Big change. Tomas Lindquist Olsen 2008-09-09 16:49:47 -07:00
  • 4e0b6b4bf0 Make sure functions containing inline asm are never inlined to avoid duplicated labels. Christian Kamm 2008-09-08 20:38:55 +02:00
  • f411df11e3 Fixed choosing default target machine without needing to link in targets. Tomas Lindquist Olsen 2008-09-07 17:44:25 -07:00
  • 88f9ca75ad Don't link in any target code, was unnecessary. Christian Kamm 2008-09-07 16:16:10 +02:00
  • 640f21c493 Only link default native backend by default. Use the new option --add-backend to link in additional targets. Christian Kamm 2008-09-07 15:30:34 +02:00
  • d44f21687e Restructure path handling a bit. Fixes #66. Christian Kamm 2008-09-06 12:27:27 +02:00
  • 2f2987371f Basic support for runtime in shared library. Christian Kamm 2008-09-05 23:02:18 +02:00
  • a27b5c5684 Fix (?) rt_stackBottom for Windows. Christian Kamm 2008-09-04 20:58:25 +02:00
  • e3691ffa19 Merge Dynamic_Ranges and Data_Proc_Maps from GDC runtime. Christian Kamm 2008-09-04 18:57:03 +02:00
  • dde98f16f9 Add test for GC scanning data segment. Christian Kamm 2008-09-04 17:59:01 +02:00
  • 3a8125b7c8 Pointer comparisons were being treated as signed integers. Now they are handled as unsigned integers. Tomas Lindquist Olsen 2008-09-04 17:24:10 +02:00
  • ee29f29659 Fixed pointer comparisons with differing types. Tomas Lindquist Olsen 2008-09-04 17:17:40 +02:00
  • 6bcf3c5126 merge Tomas Lindquist Olsen 2008-09-04 17:05:51 +02:00
  • ccfa5218c3 merge Tomas Lindquist Olsen 2008-09-04 17:05:35 +02:00
  • 7e39328af4 Typo in runtime makefile. Christian Kamm 2008-09-04 16:14:07 +02:00
  • 3779b7c7d1 Split runtime into three parts again. Christian Kamm 2008-09-03 22:07:04 +02:00
  • f3b3db7fa9 Changed all '#if linux || __APPLE__' to '#if POSIX' so we can support other platforms too, thanx for the suggestion anders. Tomas Lindquist Olsen 2008-09-02 23:10:12 +02:00
  • d6e7a65b69 Automated merge with http://hg.dsource.org/projects/llvmdc Christian Kamm 2008-09-02 19:14:37 +02:00
  • 877da230a3 Get rid of runtime path. Allow defaultlib and debuglib switches to be given multiple times. Christian Kamm 2008-09-02 19:14:25 +02:00
  • 9f0633a7dd Added some sanity checks for target detection. Tomas Lindquist Olsen 2008-08-31 18:51:14 +02:00
  • 1565f00f85 Fixed toobj.cpp to compile with latest LLVM, seems a method overload was removed recently. Tomas Lindquist Olsen 2008-08-31 18:38:16 +02:00
  • c44c04e004 merge Tomas Lindquist Olsen 2008-08-31 17:29:52 +02:00
  • 6916319f9f Automated merge with http://hg.dsource.org/projects/llvmdc Christian Kamm 2008-08-30 10:31:04 +02:00
  • 7963800bd6 Introducing template instantiation traces for static asserts and errors within templates. Christian Kamm 2008-08-30 10:30:57 +02:00
  • 9310134dfc Ok. last fix was wrong, PTHREAD_MUTEX_RECURSIVE_NP is only valid on linux... Tomas Lindquist Olsen 2008-08-29 16:59:12 +02:00
  • 6b423621d2 The latest patch broke things for non OS X Tomas Lindquist Olsen 2008-08-29 16:35:46 +02:00
  • 01b6538f6f Make rt_stackBottom return the right fixed value for darwin. Christian Kamm 2008-08-29 15:01:48 +02:00
  • 3e5a20cf6b Merge rest of patch from #72. Christian Kamm 2008-08-29 14:48:40 +02:00
  • ba21d60706 Enable unwind code on darwin. Christian Kamm 2008-08-29 14:16:18 +02:00
  • 8efe20f5f9 Link in pthread, dl and m on OS X. Christian Kamm 2008-08-29 14:11:20 +02:00
  • 0ccd7270fb Add .DS_Store to .hgignore Christian Kamm 2008-08-29 14:10:19 +02:00
  • 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. Christian Kamm 2008-08-28 20:17:21 +02:00
  • 0f92afc5b9 Do not assert on non-existing supposed globals. (see nocompile/union_12,14) Christian Kamm 2008-08-28 20:15:36 +02:00
  • 7b07ddcbd8 Fix findregressions and makewebstatistics to adhere to our definition of Improvement and Regression. Christian Kamm 2008-08-28 08:37:47 +02:00
  • 24de69fa76 removed use on removed switches in gc makefile Tomas Lindquist Olsen 2008-08-26 21:06:12 +02:00
  • c65cd45966 Removed unimplemented switches. Tomas Lindquist Olsen 2008-08-26 21:02:25 +02:00
  • e4a211838f Disable invariants for the gc. Makes collections not take ages again. Christian Kamm 2008-08-26 20:50:42 +02:00
  • 2deaf9f238 Do not set Dversion to 1. Dversion = 2 means we use post 1.000 additions to D1. Christian Kamm 2008-08-26 20:49:01 +02:00
  • 54871f4ea7 Add -enable/-disable for specific features. Allow setting target os with -t. Clean up the help message. Christian Kamm 2008-08-26 19:31:47 +02:00
  • d78677961b Removed D_InlineAsm and D_InlineAsm_X86 versions. Made use of 'naked' in inline asm an error. Tomas Lindquist Olsen 2008-08-25 19:36:27 +02:00
  • 09532a4242 Automated merge with http://hg.dsource.org/projects/llvmdc Christian Kamm 2008-08-24 18:25:45 +02:00
  • abee68ea54 Disable boehm gc by default. Use --enable-boehm-gc on premake to enable. Christian Kamm 2008-08-24 18:25:34 +02:00
  • fc08ace210 missing || __APPLE__ in monitor.c Tomas Lindquist Olsen 2008-08-24 18:11:08 +02:00
  • 6cb325e2fa Missing 'break' in osx code path. Tomas Lindquist Olsen 2008-08-24 17:57:53 +02:00
  • 6cd4eda726 Fixed some osx mistakes. Tomas Lindquist Olsen 2008-08-24 17:19:31 +02:00
  • f3269bf51e Gah, missed something still. I'll test properly next time ;) Tomas Lindquist Olsen 2008-08-24 17:13:40 +02:00
  • 6d2011394e Made a small mistake in the Tango patch Tomas Lindquist Olsen 2008-08-24 17:11:02 +02:00
  • f183d7ce1d Automated merge with http://hg.dsource.org/projects/llvmdc Christian Kamm 2008-08-24 17:02:03 +02:00
  • 4e5cc8380f Don't use -u in build.sh; not all cp implementations support it. Christian Kamm 2008-08-24 17:01:40 +02:00
  • 8d95fc7b3e Add isnan for __APPLE__ and darwin version ident for OSX. Christian Kamm 2008-08-24 16:59:08 +02:00
  • 81de0c4b23 Add __APPLE__ to most #if linux compile time switches. Jacob Carlborg 2008-08-24 16:54:06 +02:00
  • b41a80cefc Reverted some changes in the Tango patch, splitting asm block is simply not supported by llvm. Tomas Lindquist Olsen 2008-08-24 16:51:17 +02:00
  • 72a2db6d7c Get rid of isLinux and isWindows in favor of global.params.os. Christian Kamm 2008-08-24 16:22:58 +02:00
  • fa6f277bdd merge Tomas Lindquist Olsen 2008-08-21 15:35:39 +02:00
  • b5a54a5a1c Updated the tango patch, removed some now unnecessarily complex inline asm. Tomas Lindquist Olsen 2008-08-21 15:35:24 +02:00
  • ef80c904dc Make class invariants work. Christian Kamm 2008-08-21 15:19:45 +02:00
  • 6c78396d11 Updated tango patch, with rewrittten Atomics using llvm atomic intrinsics. Tomas Lindquist Olsen 2008-08-20 19:03:28 +02:00