Commit Graph

  • f2c5fa2c2f Enable insertion of missing terminator instruction for main. Christian Kamm 2008-07-29 15:58:45 +02:00
  • dd49c2ca00 Give errors originating from Dsymbol::error the proper 'Error:' heading. Christian Kamm 2008-07-29 13:48:46 +02:00
  • dd8982db1f Disallow delegates to static functions. Christian Kamm 2008-07-29 12:49:14 +02:00
  • c6e0dd9be3 Fix the static array cast size check. Christian Kamm 2008-07-29 12:44:28 +02:00
  • caa61a5523 Error if static array is cast to an array such that oldarraysize % newelemsize != 0. Christian Kamm 2008-07-29 12:32:01 +02:00
  • 99f1cfef36 Error instead of assert on unimplemented interface functions. Christian Kamm 2008-07-29 10:55:58 +02:00
  • 3db56c7a17 Error message for calling a function with a missing 'this' arg. Christian Kamm 2008-07-29 10:29:52 +02:00
  • d9f85de2a1 Fix real comparison for real: allow +0 to be distinguished from -0. Christian Kamm 2008-07-28 21:37:47 +02:00
  • cf4565095c Use == in RealEquals and get rid of the memcmp there entirely. Christian Kamm 2008-07-28 20:50:41 +02:00
  • 20d429e085 Fixed delegate casts. Tomas Lindquist Olsen 2008-07-28 08:05:21 +02:00
  • 713dfe71b5 clean out obj dir before running mini test. Tomas Lindquist Olsen 2008-07-28 07:25:13 +02:00
  • dbebf04b85 removed the old tester.d test driver. Tomas Lindquist Olsen 2008-07-28 03:18:15 +02:00
  • 675e9b3cf0 testing the new mini test runner features. Tomas Lindquist Olsen 2008-07-28 03:04:28 +02:00
  • 57fd67aa35 Updated the mini test runner to allow classified tests as compile,nocompile,run,norun. Tomas Lindquist Olsen 2008-07-28 03:03:44 +02:00
  • 8c98499193 Fixed issue with internal real representation, incorrect for non x86-32 architectures. Cleaned up CallExp::toElem, moved implementation to tocall.cpp providing a single procedure to call arbitrary D functions fairly easily. Tomas Lindquist Olsen 2008-07-28 02:11:34 +02:00
  • 8485be7238 Make RealEquals only compare the data bytes. Christian Kamm 2008-07-27 18:52:40 +02:00
  • ad17af1e26 Rework complex addition, substraction and multiplication. Division may need the same. Christian Kamm 2008-07-27 17:53:49 +02:00
  • 2592d1caa6 Switch TypePointer::isunsigned from false to true, so CmpExp::toElem chooses the right operand for pointer comparisons. Christian Kamm 2008-07-27 17:10:47 +02:00
  • 67d242272b Add back generated impcnvtab.c to make premake work the first time. Christian Kamm 2008-07-27 16:27:44 +02:00
  • 7a5dc3e05f Fixed (I hope) problem with monitor/synchronized stuff not being properly initialized on Windows. Tomas Lindquist Olsen 2008-07-27 15:03:04 +02:00
  • 5a78083c4c Fix version identifies for EH. Christian Kamm 2008-07-27 14:32:51 +02:00
  • 1f00395f0b Fixed path seperator issue on windows in linker. Tomas Lindquist Olsen 2008-07-27 14:15:22 +02:00
  • b2e13e1b36 Attempt to fix win32/mingw linking related to unresolved data segment start/end symbols. Tomas Lindquist Olsen 2008-07-27 14:11:31 +02:00
  • 4ca219dccc Automated merge with http://hg.dsource.org/projects/llvmdc Christian Kamm 2008-07-27 13:52:14 +02:00
  • c5450a75ef Mark most of the current EH implementation as x86 Linux specific. Christian Kamm 2008-07-27 13:51:55 +02:00
  • 5589f6b2b7 merge Tomas Lindquist Olsen 2008-07-27 13:47:11 +02:00
  • fde6cc98a8 Removed unneeded references to _minit on Windows which breaks linking. _minit is an artifact of DMD on Win32. Tomas Lindquist Olsen 2008-07-27 13:46:28 +02:00
  • befaf511e6 Fix compile-time comparison of template value parameters of real type. Christian Kamm 2008-07-27 13:29:31 +02:00
  • 86819d1cef Should only error if array initializer is too long. Too short is ok. Christian Kamm 2008-07-26 17:33:49 +02:00
  • 907a03a3be Give error messages for invalid casts. Christian Kamm 2008-07-26 17:19:16 +02:00
  • a278651178 Add error if array initializer has incorrect length. Christian Kamm 2008-07-26 15:42:05 +02:00
  • 0c9674e952 Make an unresolved global into an error instead of an assert. Christian Kamm 2008-07-26 15:23:15 +02:00
  • b496d03606 Automated merge with http://hg.dsource.org/projects/llvmdc Christian Kamm 2008-07-26 15:12:48 +02:00
  • 1e87165fe7 Committed merge Tomas Lindquist Olsen 2008-07-26 15:09:33 +02:00
  • 70f16e36fb Added bitcode filename to very verbose logging. Fixed -O<n> switches from llvm 2.4. Removed md5 from the kdevelop project filelist. Tomas Lindquist Olsen 2008-07-26 15:02:57 +02:00
  • a5f976ffce Start a new basic block after a continue statement. Christian Kamm 2008-07-26 15:00:57 +02:00
  • 666e95e44d Add missing "lib" directory Anders Bergh 2008-07-25 00:39:24 +02:00
  • 732cdc5766 Fix inline asm FS:4 by writing the displacement directly into the asm instead of using %fs:$0 with an input constraint. Christian Kamm 2008-07-26 13:38:25 +02:00
  • e6dd53b61c Made setup for runtime calls in dmd frontend allocate less. Christian Kamm 2008-07-24 18:51:36 +02:00
  • d4ab377db0 Change from alloca to gc_malloc. The alloca produces a segfault with current llvm svn Christian Kamm 2008-07-24 18:21:48 +02:00
  • 169fe68a25 Fix argument types for wchar/char reverse and sort. Christian Kamm 2008-07-24 18:20:40 +02:00
  • 5ddcdea5f2 Added empty file to lib dir so it get's created by hg Tomas Lindquist Olsen 2008-07-24 00:35:46 +02:00
  • 1eca9acd27 Merge. Christian Kamm 2008-07-23 20:27:35 +02:00
  • 100c42bca3 Fixed segfault when using va_arg. Fixed segfault when accessing function symbols from inline asm. Tomas Lindquist Olsen 2008-07-23 20:21:18 +02:00
  • 9a9e47957b Remove -O0 from command line for compiling tests. Christian Kamm 2008-07-23 20:19:58 +02:00
  • c26f33f0bf .hgignore updates. runminitest stores object files separately. Christian Kamm 2008-07-23 18:53:44 +02:00
  • a51342ca94 Fix broken switch4.d test case. Christian Kamm 2008-07-23 18:04:06 +02:00
  • 44931493f6 Fixed root cause for Invalid BitCasts. DtoCanLoad continues to return false for aggregates even though llvm 2.4svn could load them. Christian Kamm 2008-07-23 17:56:09 +02:00
  • b1e8162b7b Mixed up argument types for aApply and aaApply. Christian Kamm 2008-07-23 17:55:20 +02:00
  • 8f20b1ed00 Introducing opaque type to dmd frontent to be used with certain runtime array and aa args and returns. There are still some bugs with aas. Christian Kamm 2008-07-22 23:06:46 +02:00
  • 566eac93fe Get rid of runTimeHack and instead add proper argument info to the frontend declatation. Christian Kamm 2008-07-22 19:24:40 +02:00
  • 78c900831a Add all intermediate files to .hgignore. Christian Kamm 2008-07-21 20:36:03 +02:00
  • d54a1347a4 Do only link to libpthread, libm and libdl on Linux. Christian Kamm 2008-07-21 20:12:24 +02:00
  • e12c58abad Do not strip the leading underscore for typeinfo mangles on Windows. Christian Kamm 2008-07-21 20:11:42 +02:00
  • a6d6fd2365 Fix nativeobj extension for Windows. Christian Kamm 2008-07-21 20:11:15 +02:00
  • d583262c98 [svn r394] Fixed the new DtoNullValue function Tomas Lindquist Olsen 2008-07-15 15:16:56 +02:00
  • 625f28814d [svn r393] Started implementation for DtoNullValue. Christian Kamm 2008-07-15 14:53:16 +02:00
  • 04db1053e0 [svn r392] Make import of std.compat in object.di used for testing public. Christian Kamm 2008-07-15 10:56:16 +02:00
  • 1486f29abb [svn r391] Fix classes nested inside functions for real. Christian Kamm 2008-07-15 10:23:50 +02:00
  • e69f92b613 [svn r390] Make the zero value used when no nested context was created of the correct type. Fixes run/class_06. Christian Kamm 2008-07-15 08:44:08 +02:00
  • 5b9edddb9d [svn r389] Include std.outofmemory in testincludes. Fixes run/OutOfMemory_01, 02. Christian Kamm 2008-07-15 08:20:21 +02:00
  • e846017e80 [svn r388] ClassInfo declaration could fail if base classdecl hadn't been resolved. Use ForceDeclare on the class decl instead of declaring class info only. Christian Kamm 2008-07-15 08:17:43 +02:00
  • efd3f0dddf [svn r387] Removed unused MD5 stuff. Fixed incorrect __VENDOR__ variable and printed DMD frontend version. Tomas Lindquist Olsen 2008-07-15 02:01:53 +02:00
  • 86a3f53cfe [svn r386] Fixed broken DtoBoolean. Some code cleanup. Tomas Lindquist Olsen 2008-07-15 00:17:03 +02:00
  • 25dea7a16e [svn r385] Fix lvalue cast problems with -= and friends. Fix complex DtoBoolean. Christian Kamm 2008-07-14 22:48:03 +02:00
  • 27674069e7 [svn r384] Some minor code cleanups. Tomas Lindquist Olsen 2008-07-14 21:49:54 +02:00
  • 4bcbe1cf68 [svn r383] Add explanations to dstress result table. Christian Kamm 2008-07-14 21:03:15 +02:00
  • ef2bdb9c1c [svn r382] In CastExp, after the cast to CastExp.to force the type to be CastExp.type. This is used for c.im for instance, where the cast is to idouble but type is double. Christian Kamm 2008-07-14 19:17:25 +02:00
  • 0d2ca74dac [svn r381] Allow concatenating with static arrays. Christian Kamm 2008-07-14 17:26:58 +02:00
  • 7e7441a5f8 [svn r380] Improve complex number support. Christian Kamm 2008-07-14 17:22:43 +02:00
  • 4d24676beb [svn r379] Fix slice assigns of the form T[] = T when T is a typedef. Fixes run/a/array_initialization_20_B, D, F, H. Christian Kamm 2008-07-14 12:39:23 +02:00
  • b0b530ea42 [svn r378] Make some errors fatal to prevent segfaults. Error instead of assert on missing label. Christian Kamm 2008-07-14 12:11:30 +02:00
  • bcc4cfdea4 [svn r377] The previous check was too strict, it completely disallowed gotos within finally blocks. This reenables them as long as they don't cross a finally boundary. Christian Kamm 2008-07-14 12:00:24 +02:00
  • c1fbcd9942 [svn r376] Fix bug with finally blocks and labels. The labels would get emitted multiple times and conflict. It is now possible to add label scopes in IrFunction and all labels names will be prefixed accordingly. Christian Kamm 2008-07-14 11:48:55 +02:00
  • 65be990012 [svn r375] Make DeclarationExp reuse storage if already allocated. Christian Kamm 2008-07-14 11:47:03 +02:00
  • 7e7ac3a6f7 [svn r374] Move label target basic block from AST to IRFunction. This is a first step to allowing labels to be emitted multiple times. (for instance within finally blocks) Christian Kamm 2008-07-14 11:07:15 +02:00
  • 80ba763fda [svn r373] Labels inside tryfinally statements are not wrong in principle, so remove the assert. Christian Kamm 2008-07-14 10:01:09 +02:00
  • 45e8999c88 [svn r372] Fixed extern(C++) handling now same as DMD, which is to treat it like extern(C). Fixed a problem in resolving struct types where the size of elements might not yet be known. Switched to using DMD size() instead of LLVM ABI size (TargetData). Tomas Lindquist Olsen 2008-07-14 03:23:43 +02:00
  • ee5d84a1fa [svn r371] Fixed array init was still broken for immediate slices and complex values. Tomas Lindquist Olsen 2008-07-14 01:03:53 +02:00
  • f03d8f37c1 [svn r370] Fixed landing pads on 64bit was broken (hardcoded 32bit type, should be size_t) Tomas Lindquist Olsen 2008-07-13 21:41:45 +02:00
  • c2697dbce0 [svn r369] Fix nested classes when nestedVar is not generated. Christian Kamm 2008-07-13 21:16:40 +02:00
  • dbd640a3dc [svn r368] Fixed custom class allocators with arbitrary user arguments. Closes #25 Removed some dead code. Started on a more generalised approach to call misc. D functions. Tomas Lindquist Olsen 2008-07-13 20:49:10 +02:00
  • 3f37dbe005 [svn r367] In web dstress statistics, write change lists sorted by filename. Christian Kamm 2008-07-13 09:14:01 +02:00
  • c4982165ba [svn r366] Fixed identity exprs for structs was comparing addresses, not content! Tomas Lindquist Olsen 2008-07-13 04:27:02 +02:00
  • a4e4f34a34 [svn r365] Implemented raw struct equality comparison, uses C memcmp. Renamed DtoDelegateCompare to DtoDelegateEquals, for consistency with the other equality helpers. Tomas Lindquist Olsen 2008-07-13 04:11:08 +02:00
  • 4b8d048d59 [svn r364] fixed mini/sync2.d test case. Tomas Lindquist Olsen 2008-07-13 03:02:15 +02:00
  • 5457969aab [svn r363] Fixed a problem with the mini-test-driver. Tomas Lindquist Olsen 2008-07-13 02:55:41 +02:00
  • cecb64b2e4 [svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'. Tomas Lindquist Olsen 2008-07-13 02:51:19 +02:00
  • d1e41f611e [svn r361] Removed some dead code. Tomas Lindquist Olsen 2008-07-13 02:04:25 +02:00
  • 85c1b42b1b [svn r360] Another mostly rewrite of DtoArrayInit. Should be much more robust now, and probably faster code generated for the most common cases too! Fixed issues with slice initialization (!!!) of multidimensional static arrays. Attempt to fix issue with referencing nested 'this' pointers introduced in DMD 1.033 merge. Tomas Lindquist Olsen 2008-07-13 01:29:49 +02:00
  • c67753508b [svn r359] Try to fix DtoArrayInit. Unfinished, breaks for arrays of primitive types. Christian Kamm 2008-07-12 23:56:56 +02:00
  • b8bde8c0b8 [svn r358] Forgot to add new files from DMD 1.033 Tomas Lindquist Olsen 2008-07-12 19:40:14 +02:00
  • 832504e5d7 [svn r357] Merged DMD 1.033 Tomas Lindquist Olsen 2008-07-12 19:38:31 +02:00
  • fc6e0cfc65 [svn r356] Fixed problem with array length assignment introduced in [355] Tomas Lindquist Olsen 2008-07-12 17:04:36 +02:00
  • 717d52d4f0 [svn r355] Get rid of IRState::exps and topexp. Christian Kamm 2008-07-12 15:43:13 +02:00
  • f0d8b9e153 [svn r354] Fix the regressions between [346] and [353] by making constructors and destructors outside classes fatal errors. Fix tests makefile and add minimize to gc.d. Christian Kamm 2008-07-12 09:23:14 +02:00
  • f5dbc0e0d2 [svn r353] Fix typo. (fixes empty catch handlers, like catch_02.d) Christian Kamm 2008-07-11 22:33:21 +02:00
  • 485b638272 [svn r352] Implement SwitchErrorStatement. Fixes #52. Christian Kamm 2008-07-11 21:06:39 +02:00
  • 1d92d5a86b [svn r351] Remove unused runtime file for DMD-style exception handling. Improved comments on exception handling runtime. Christian Kamm 2008-07-11 20:23:42 +02:00
  • 8c48f86f0a [svn r350] Fixed incorrect function types for lazy arguments. looks like lazy arguments have never even worked :o well.. now they should. Tomas Lindquist Olsen 2008-07-11 01:34:04 +02:00