Commit Graph

  • 5321c34637 added install target and possibility to pre- and suffix ldc's executable name to cmake scripts elrood 2008-12-04 22:09:24 +01:00
  • 5ae0f3a934 ... and fixed that test case :P ... Tomas Lindquist Olsen 2008-12-04 16:13:40 +01:00
  • a5616feceb Added testcase for fix in rev [825] Tomas Lindquist Olsen 2008-12-04 16:12:47 +01:00
  • 2532856f1c Commented some logging that could be '''very''' long, cuts -vv output size of a gtkd gl sample down 1.2GB by 3/4. Fixed wrong pointer type for multidimension "deep" slicing. Tomas Lindquist Olsen 2008-12-04 16:11:09 +01:00
  • a012859bae Fixed problem with moduleinfo thinking it imports itself, causing assertion failure, fixes #138 Tomas Lindquist Olsen 2008-12-04 14:36:11 +01:00
  • 3111ff1fc4 Fixed non-static struct initializers. Tomas Lindquist Olsen 2008-12-03 01:40:28 +01:00
  • 6997919627 Removed PAGESIZE part of Tango patch, it works for me when the check is removed. Updated Tango patch to latest Tango revision. Tomas Lindquist Olsen 2008-12-02 02:45:31 +01:00
  • 879bed7df6 Added CMake option to disable generation of ClassInfo.offTi arrays, defaults to OFF. Tomas Lindquist Olsen 2008-12-02 01:44:17 +01:00
  • 91a2c257b0 Implemented allocating storage for a slice if its address is taken, fixes #115 Tomas Lindquist Olsen 2008-12-02 01:20:22 +01:00
  • c62b31a357 Fixed taking address of global static array element as constant expression. Tomas Lindquist Olsen 2008-12-02 01:07:22 +01:00
  • 5657e53c49 Fix fibers in tango patch Christian Kamm 2008-12-01 20:26:32 +01:00
  • e5d688834d Fixed printf formatting flag problem on mingw (missed one) Tomas Lindquist Olsen 2008-12-01 19:51:45 +01:00
  • 2788a2a0f1 Made ClassInfo.interfaces generation consistent with DMD, fixes #134 Removed unneeded includes from dmd/attrib.c Tomas Lindquist Olsen 2008-12-01 18:34:02 +01:00
  • 649b860d2b Added error when gcc cannot be found. Tomas Lindquist Olsen 2008-12-01 15:21:33 +01:00
  • d3ae488730 Added error when invoking gcc fails Tomas Lindquist Olsen 2008-12-01 15:18:22 +01:00
  • cd8f12ed35 Forgot to add AnonDeclaration::toObjFile for D2 Tomas Lindquist Olsen 2008-12-01 14:54:06 +01:00
  • 8ee1fbca26 Fixed a nasty bug with how interface vtables for class initializers were output, causing some class fields to be skipped. Fixed a problem in definition of ClassInfos where an invalid constant was potentially used. This needs to be looked into proper as it might happen again in the future. Tomas Lindquist Olsen 2008-12-01 04:37:54 +01:00
  • e0972b0793 Fixed ModuleInfo generation to no longer use the ModuleInfo class' default initializer for types/defaults, it's unsafe as initializers don't necesarily match the "formal" type. There might be explicit padding. Changed -g switch to emit DW_LANG_D debug info, make demangling work with a patched GDB, still more work to do for full support of D's Dwarf extensions. Added getNullValue helper method. Tomas Lindquist Olsen 2008-12-01 02:10:16 +01:00
  • 8553fc9aa0 Fixed ModuleInfo patch check, failed on 64bit Tomas Lindquist Olsen 2008-11-30 20:41:17 +01:00
  • 577237e073 Changed some hardcoded offset/alignment for classes in DMD, broke offsets for 64bits. Changed ClassInfo generation to no longer access the default initializer of ClassInfo, fixes problems with index mismatch. Tomas Lindquist Olsen 2008-11-30 20:22:09 +01:00
  • 81eded2ece when building the runtime pass -fPIC for shared libs and -disable-invariants for gc elrood 2008-11-30 19:19:39 +01:00
  • c451f100f5 Add interface minitest, rework s.d. Christian Kamm 2008-11-30 11:54:18 +01:00
  • f14d97d786 Move storage of final vtbl from BaseClass to IrInterface: BaseClass instances are shared! Always use the target's irstruct interfaceMap when building the const initializer. Tango helloworld works again. Christian Kamm 2008-11-30 11:25:40 +01:00
  • dcf3c96f65 Ensure all logging of llvm values/types is only called when -vv is passed Tomas Lindquist Olsen 2008-11-29 23:39:04 +01:00
  • d522fef71f Removed use of DMD's toPrettyChars function for providing llvm value names. Tomas Lindquist Olsen 2008-11-29 22:37:36 +01:00
  • 5d1366d27f Removed DtoConstFieldInitializer, it's no longer needed and was buggy. Tomas Lindquist Olsen 2008-11-29 21:26:50 +01:00
  • 4da2cf066e Fixed some problems with the addZeros forward declarations having type mismatches. Tomas Lindquist Olsen 2008-11-29 20:57:52 +01:00
  • 3a2e29d434 merge Tomas Lindquist Olsen 2008-11-29 18:28:32 +01:00
  • 13e0399ab0 Changed aggregate field initializers to be created lazily, fixes problem with static void arrays in aggregates. Tomas Lindquist Olsen 2008-11-29 18:28:17 +01:00
  • 497c7e87df Do put zero in vtable initializer for function without body in abstract class. Christian Kamm 2008-11-29 17:13:38 +01:00
  • ca91c52c5a Use toParent instead of toParent2 to determine whether inside a function body. Christian Kamm 2008-11-29 17:06:36 +01:00
  • f46f865375 Removed KDevelop3 project files, CMake can generate them just fine! Fixed function literals in static initializers. Changed alignment of delegates from 2*PTRSIZE to just PTRSIZE. Changed errors to go to stderr instead of stdout. Fairly major rewriting of struct/union/class handling, STILL A BIT BUGGY !!! Tomas Lindquist Olsen 2008-11-29 21:25:43 +01:00
  • 049e24cef8 Error instead of assert when trying to build a default initializer for void[n]. Christian Kamm 2008-11-29 12:28:10 +01:00
  • 1b16f2234e Adjust Tango patch for Tango rev 4134. Christian Kamm 2008-11-28 23:29:00 +01:00
  • cdbc4f84d2 Fix warnings on x86-64. By fvbommel. Christian Kamm 2008-11-28 21:24:08 +01:00
  • cc6bde46f9 Attempt at fixing #126. Christian Kamm 2008-11-27 18:31:09 +01:00
  • 18e51d1c3f Automated merge with http://hg.dsource.org/projects/ldc Christian Kamm 2008-11-27 17:43:20 +01:00
  • fed06d6de8 Apply Elrood's CMake patch from #132. Christian Kamm 2008-11-27 17:41:49 +01:00
  • 6ed62218db Updated tango patch, the object.di changes are now in tango trunk Tomas Lindquist Olsen 2008-11-27 02:16:55 +01:00
  • 910280a3e8 Use LLVM package string for llvm version info in D2 frontend too. Christian Kamm 2008-11-26 19:44:06 +01:00
  • d260cab7e9 Print llvm package string in version header. See #128. Christian Kamm 2008-11-26 19:40:11 +01:00
  • 5b2a380680 Fix StdCall selection. Christian Kamm 2008-11-25 17:15:02 +01:00
  • b905f290ba Add missing CMakeList, apply conf changes to dmd2 frontend. Christian Kamm 2008-11-24 20:02:59 +01:00
  • 375b6cd888 Apply Elrood's CMake changes from #124. Thanks a lot! Christian Kamm 2008-11-24 18:17:58 +01:00
  • 0120dd767c Fix float->bool, #130. Thanks fvbommel. Christian Kamm 2008-11-23 21:57:11 +01:00
  • ed8199384d hgignore updates for CMake. Christian Kamm 2008-11-22 21:11:26 +01:00
  • a08f244733 Don't use StdCall on Windows. Christian Kamm 2008-11-22 21:08:00 +01:00
  • 70c8174303 Strip test binaries. Christian Kamm 2008-11-22 21:06:33 +01:00
  • cb3e057631 Move tuple syntax copy for function arguments after semantic, to make sure ->ty contains the final value. Fixes run/t/tuple_20_A again. Christian Kamm 2008-11-22 18:45:09 +01:00
  • ac28509bde Fix return type of OrOr and AndAndExp being set incorrectly if rhs is void. Thanks wilsonk! Christian Kamm 2008-11-22 18:38:13 +01:00
  • 6efc9a3324 Get rid of DtoBoolean - use DtoCast(... Type::tbool) instead. Fixed some casts to bool that were using truncation. Christian Kamm 2008-11-22 18:35:52 +01:00
  • 660ca009b9 Include x86-32 fiber fixes in tango patch again. Christian Kamm 2008-11-22 13:41:36 +01:00
  • f6c2e59bef tango patch fix Tomas Lindquist Olsen 2008-11-20 17:20:00 +01:00
  • 9cad63844f Updated Tango patch for latest trunk Tomas Lindquist Olsen 2008-11-20 17:03:18 +01:00
  • 192edc9995 Fixed problem with continue/break in unrolled loop statements. Tomas Lindquist Olsen 2008-11-19 14:40:24 +01:00
  • b172c4a668 Fix RawVarDecl double codegen bug. Thanks to downs for the testcase. Christian Kamm 2008-11-18 18:07:57 +01:00
  • ccd8810e68 Fix bug reported by downs. Related to delegate types within tuple template parameters. Christian Kamm 2008-11-18 17:14:57 +01:00
  • 41d9e79780 Fixed 64bit problem with aaValues runtime calls (assumed 32bits) Tomas Lindquist Olsen 2008-11-16 20:42:45 +01:00
  • 1228595e7e Cast result of ...AssignExp to type the frontend expects if necessary. Fixes #116. Christian Kamm 2008-11-14 16:26:12 +01:00
  • 7b1d4cf975 D2: forgot the main makefile ... :( Tomas Lindquist Olsen 2008-11-12 06:35:20 +01:00
  • 98ff1c8b54 Updated runtime README a bit. Messed up the druntime patch earlier :/ Tomas Lindquist Olsen 2008-11-12 06:26:45 +01:00
  • 4d982f821d D2: forgot to revert some changes made for testing last fix... Tomas Lindquist Olsen 2008-11-12 05:43:12 +01:00
  • d077bbc5e6 D2: Fixed global constants not initialized until module constructor. Tomas Lindquist Olsen 2008-11-12 05:40:31 +01:00
  • 5d9854aaff Fixed 32bit assumption in statement.c when calling aaApply(2). Tomas Lindquist Olsen 2008-11-12 07:41:56 +01:00
  • 32f99e7091 Forgot D2 versioning on typeinfo change. Tomas Lindquist Olsen 2008-11-12 07:23:34 +01:00
  • 582deb9827 D2 changes! Removed druntime from the repository again.. Sorry :/ Updated the druntime port a bit, now requires druntime from trunk. Added info in runtime/README on how to get druntime from trunk. Added patch to add LDC support to druntime. Removed some debug logging from D2 builds. Fixed broken typeinfo for const/invariant in D2. Tomas Lindquist Olsen 2008-11-12 07:22:05 +01:00
  • fae4b56ec3 Fix up hgignore to not match to much. Christian Kamm 2008-11-11 22:57:19 +01:00
  • c36bd9f4b0 Applied fvbommel's patch from #112 Added missing TypeInfoInvariant codegen for D2 Tomas Lindquist Olsen 2008-11-12 02:30:28 +01:00
  • 90474ba1c3 Seems like hg ignores .di files, so I missed a bunch of stuff. complete druntime should be there now :) Tomas Lindquist Olsen 2008-11-12 00:19:18 +01:00
  • d56f952a84 Added copy of druntime from DMD 2.020 modified for LDC. Tomas Lindquist Olsen 2008-11-11 01:52:37 +01:00
  • c4c1c1d72e Added initial D2 support, D2 frontend and changes to codegen to make things compile. Tomas Lindquist Olsen 2008-11-11 01:38:48 +01:00
  • fe49ee6448 Special case DtoCastInt for bool. Christian Kamm 2008-11-10 20:55:24 +01:00
  • bc80a83666 Merge wilsonk's x86-64 inline assembly. Christian Kamm 2008-11-08 22:29:19 +01:00
  • d41bcb5312 Merge in most of x86-64 tango patch. Christian Kamm 2008-11-08 11:34:35 +01:00
  • 10289513be Update tango patch to latest tango revision. Christian Kamm 2008-11-08 10:22:08 +01:00
  • c0bf614e31 Switch to Elrood's rewritten CMakeLists.txt. Christian Kamm 2008-11-05 16:53:03 +01:00
  • ca6b37cd38 Enable function parameter debug info for a wider range of args. Christian Kamm 2008-11-03 15:23:22 +01:00
  • 16b38a7fef Fix compile-time warnings. Adjust include in d-asm-i386. Christian Kamm 2008-11-03 12:35:29 +01:00
  • 9688b4c9a7 Improve CMake build file. Christian Kamm 2008-11-03 12:25:25 +01:00
  • 9e370d7612 Add basic CMake build file. Christian Kamm 2008-11-02 21:47:31 +01:00
  • 437aa0d4aa Fix bug in array_cast_len. Makes tango.text.Regex work. Christian Kamm 2008-11-02 18:36:28 +01:00
  • 173639bdec Added DtoRawVarDeclaration routine to handle special variables in some statements. Tomas Lindquist Olsen 2008-11-01 18:25:10 +01:00
  • 51385239e8 asm4 fix. Christian Kamm 2008-11-01 17:56:25 +01:00
  • 5b17d36ce2 Tried using DtoDeclarationExp for VarDecls in Statements to fix nesting issues (see bug #104), but a separate helper that doesn't initialize would be nicer. Christian Kamm 2008-11-01 16:48:17 +01:00
  • ba754255d9 Fix minitest breakage from the x86-64 patch. Christian Kamm 2008-11-01 14:41:57 +01:00
  • 9fcc2d85a2 Add test for accessing foreachval in nested func. Reason for #104. Christian Kamm 2008-10-31 18:17:28 +01:00
  • d3f190822c Fix REALSIZE, REALPAD and alignment of double and real for x86-64. Christian Kamm 2008-10-30 15:58:58 +01:00
  • 891d17e4b5 Applied easy part from wilsonk's x86-64 patch in #107 Christian Kamm 2008-10-30 11:08:34 +01:00
  • e625829f0f Automated merge with http://hg.dsource.org/projects/ldc Christian Kamm 2008-10-30 10:17:05 +01:00
  • 36a98404ae Fix accidental double-inreg caused by shared TupleType. Enabled inreg by default. Christian Kamm 2008-10-30 10:16:37 +01:00
  • 0e5d9f970b Add explicit uint->char cast to get rid of warning. Christian Kamm 2008-10-30 10:15:42 +01:00
  • 6cf5ca6aba Removed warnings on ignored aligns. Only do aligment on packed structs, align(1) struct Packed { ... } Changed the way struct/class fields are added, first small part of cleaning up these... Make struct/class/union fields aware of any anonymous struct/union they might be part of, not yet really useful, but part of getting better union support. Tomas Lindquist Olsen 2008-10-28 15:41:09 +01:00
  • 07f35424f1 Fix debug path. Christian Kamm 2008-10-27 17:42:38 +01:00
  • 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. Tomas Lindquist Olsen 2008-10-27 17:37:34 +01:00
  • 29dfacde9a Fold in mandel's patch for ARM from #106 Christian Kamm 2008-10-27 16:36:59 +01:00
  • f89592b354 Nested access to with statement should work now. fixes #105 Tomas Lindquist Olsen 2008-10-27 01:40:47 +01:00
  • fdc172377e Fixed tuple fields, thanx downs Tomas Lindquist Olsen 2008-10-27 01:11:41 +01:00
  • b3b98c3284 Fix broken indentation from last commit. Christian Kamm 2008-10-26 21:18:24 +01:00
  • d3bb0b74bd Enable arg reversal on x86 by default. Make change to TypeInfo_Struct.compare to accomodate for it. Christian Kamm 2008-10-26 21:16:21 +01:00
  • 4c12540497 Always add trailing slash to source path for debug info. Christian Kamm 2008-10-26 17:31:05 +01:00