Commit Graph

  • cae60aa406 Merge DMD r324: bugzilla 3663 and 3664 - fwd ref regressions --- dmd/class.c | 2 +- dmd/enum.c | 4 +++- dmd/enum.h | 2 ++ dmd/mars.c | 2 +- dmd/struct.c | 5 ++++- 5 files changed, 11 insertions(+), 4 deletions(-) Leandro Lucarella 2010-01-06 15:18:23 -03:00
  • 003f306cba Merge DMD r321: bugzilla 3575 CTFE: member structs not initialized correctly --- dmd/expression.c | 4 +--- dmd/interpret.c | 32 +++++++++----------------------- dmd/mtype.c | 48 +++++++++++++++++++++++++++++++++++++++++++----- dmd/mtype.h | 2 ++ 4 files changed, 55 insertions(+), 31 deletions(-) Leandro Lucarella 2010-01-06 15:18:23 -03:00
  • e7323517b0 Merge DMD r320: refactor --- dmd/expression.c | 7 +++---- dmd/expression.h | 2 +- dmd/mtype.c | 34 ++++++++-------------------------- 3 files changed, 12 insertions(+), 31 deletions(-) Leandro Lucarella 2010-01-06 15:18:23 -03:00
  • c7aa3426b3 Merge DMD r319: bugzilla 400 forward reference error... bugzilla 400 forward reference error; no propety X for type Y (struct within struct). --- dmd/class.c | 19 +++++++++++++++++-- dmd/struct.c | 16 ++++++++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) Leandro Lucarella 2010-01-06 15:18:22 -03:00
  • 063c55f49f Merge DMD r318: bugzilla 2029 Typesafe variadic functions don't... bugzilla 2029 Typesafe variadic functions don't work in CTFE. --- dmd/aggregate.h | 1 + dmd/struct.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 0 deletions(-) Leandro Lucarella 2010-01-06 15:18:22 -03:00
  • edb33b00ee Merge DMD r317: bugzilla 3611 Enum forward referencing regression --- dmd/enum.c | 17 +++++++++++++++-- dmd/mtype.c | 4 ++++ 2 files changed, 19 insertions(+), 2 deletions(-) Leandro Lucarella 2010-01-06 15:18:22 -03:00
  • 9ae38b1d03 Merge DMD r316: bugzilla 3628 can't cast null to int --- dmd/constfold.c | 2 +- dmd/optimize.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) Leandro Lucarella 2010-01-06 15:18:22 -03:00
  • b9896b9034 Merge DMD r314+r315: bugzilla 2029 Typesafe variadic functions don't... Both DMD revisions are for fixing bugzilla 2029 (Typesafe variadic functions don't work in CTFE). Leandro Lucarella 2010-01-06 15:18:22 -03:00
  • 3fc72b7ec3 Merge DMD r310: bugzilla 3645 manifest constant (enum) crashes dmd --- dmd/interpret.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) Leandro Lucarella 2010-01-06 15:18:22 -03:00
  • 4d74a325fc Merge DMD r304: refactor invariant => immutable --- dmd/cast.c | 2 +- dmd/declaration.c | 2 +- dmd/declaration.h | 3 +-- dmd/doc.c | 2 +- dmd/expression.c | 6 +++--- dmd/interpret.c | 4 ++-- dmd/mtype.c | 2 +- dmd/mtype.h | 2 +- dmd/parse.c | 4 ++-- dmd/struct.c | 2 +- 10 files changed, 14 insertions(+), 15 deletions(-) Leandro Lucarella 2010-01-06 15:18:22 -03:00
  • 6e61ecee6b Merge DMD r303: harmonize --- dmd/expression.c | 78 ++++++++++++++++++++++++++++++++++++++++++++++++----- dmd/expression.h | 8 +++++ dmd/template.c | 27 ++++++++++++------- 3 files changed, 95 insertions(+), 18 deletions(-) Leandro Lucarella 2010-01-06 15:18:21 -03:00
  • 072ac6c4e3 Merge DMD r301: a little refactor and harmonize --- dmd/declaration.h | 1 + dmd/func.c | 30 ++++++++++++++++++++++++++++++ dmd/mtype.c | 51 +++++++++++++++++++++++++++++++++++++-------------- 3 files changed, 68 insertions(+), 14 deletions(-) Leandro Lucarella 2010-01-06 15:18:21 -03:00
  • 2cdf1f6679 Merge DMD r296: bugzilla 3617 CTFE: wrong code for if(x) where x is int... bugzilla 3617 CTFE: wrong code for if(x) where x is int or smaller. --- dmd/expression.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) Leandro Lucarella 2010-01-06 15:18:21 -03:00
  • 9eba8c9f32 Merge DMD r294: bugzilla 2816 Sudden-death static assert is not... bugzilla 2816 Sudden-death static assert is not very useful. --- dmd/expression.h | 12 ++++++ dmd/staticassert.c | 10 +--- dmd/template.c | 108 ++++++++++++++++++++++++++++++++++++++++++++++++---- dmd/template.h | 2 + 4 files changed, 117 insertions(+), 15 deletions(-) Leandro Lucarella 2010-01-06 15:18:21 -03:00
  • d6891f8f24 Merge DMD r292: bugzilla 3455 Some Unicode characters not allowed... bugzilla 3455 Some Unicode characters not allowed in identifiers. --- dmd/lexer.c | 34 ++++++++++++++++++++++------------ 1 files changed, 22 insertions(+), 12 deletions(-) Leandro Lucarella 2010-01-06 15:18:21 -03:00
  • 4aec0677b7 Merge DMD r286: remove dead code --- dmd/interpret.c | 49 ++----------------------------------------------- dmd/mars.c | 2 +- 2 files changed, 3 insertions(+), 48 deletions(-) Leandro Lucarella 2010-01-06 15:18:21 -03:00
  • ddb0f3f209 Merge DMD r278: bugzilla 370 Compiler stack overflow on recursive... bugzilla 370 Compiler stack overflow on recursive typeof in function declaration. --- dmd/expression.c | 1 + dmd/mtype.c | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) Leandro Lucarella 2010-01-06 15:18:21 -03:00
  • 08a4454919 Merge DMD r277: bugzilla 3495 Segfault(typinf.c) instantiating D variadic... bugzilla 3495 Segfault(typinf.c) instantiating D variadic function with too few arguments. --- dmd/expression.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) Leandro Lucarella 2010-01-06 15:18:21 -03:00
  • cdd1d546a7 Merge DMD r276: bugzilla 2229 ICE(template.c) instantiating an invalid... bugzilla 2229 ICE(template.c) instantiating an invalid variadic template with more than one argument. --- dmd/template.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) Leandro Lucarella 2010-01-06 15:18:21 -03:00
  • 77f256536f Merge DMD r274: harmonization --- dmd/expression.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++- dmd/template.c | 41 +++++++++++++++++++++++++++++++++++ dmd/template.h | 1 + 3 files changed, 103 insertions(+), 1 deletions(-) Leandro Lucarella 2010-01-06 15:18:21 -03:00
  • fa910e3648 Merge DMD r262: bugzilla 3381 ([tdpl] Incorrect assessment of ...) The full bug title is: [tdpl] Incorrect assessment of overriding in triangular-shaped hierarchy. --- dmd/class.c | 2 +- dmd/func.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) Leandro Lucarella 2010-01-06 15:18:20 -03:00
  • 357dc9c1a9 Merge DMD r253: refactor: Argument => Parameter --- dmd/arrayop.c | 30 ++++---- dmd/arraytypes.h | 2 +- dmd/class.c | 8 +- dmd/declaration.c | 10 ++-- dmd/declaration.h | 16 ++-- dmd/doc.c | 12 ++-- dmd/dsymbol.c | 4 +- dmd/expression.c | 48 +++++++------- dmd/expression.h | 32 +++++----- dmd/func.c | 78 +++++++++++----------- dmd/init.c | 2 +- dmd/interpret.c | 8 +- dmd/mtype.c | 190 ++++++++++++++++++++++++++-------------------------- dmd/mtype.h | 32 +++++----- dmd/opover.c | 34 +++++----- dmd/parse.c | 40 ++++++------ dmd/parse.h | 2 +- dmd/statement.c | 90 +++++++++++++------------- dmd/statement.h | 14 ++-- dmd/struct.c | 8 +- dmd/template.c | 30 ++++---- gen/functions.cpp | 10 ++-- gen/functions.h | 2 +- gen/tocall.cpp | 10 ++-- gen/typinf.cpp | 6 +- 25 files changed, 359 insertions(+), 359 deletions(-) Leandro Lucarella 2010-01-06 15:18:20 -03:00
  • 68d53eb635 Use just \n as end of line --- dmd/arraytypes.h | 102 ++++---- dmd/enum.c | 652 ++++++++++++++++++++++++++-------------------------- dmd/parse.h | 292 ++++++++++++------------ dmd/staticassert.c | 240 ++++++++++---------- 4 files changed, 643 insertions(+), 643 deletions(-) Leandro Lucarella 2010-01-06 15:18:19 -03:00
  • f5ff6b1c57 [WIP] Merge DMD r251: bugzilla 111 (appending a dchar to a char[]) This patch needs some work in the code generation, because of the runtime changes (functions "_d_arrayappendcd" and "_d_arrayappendwd" are added). Leandro Lucarella 2010-01-06 15:18:19 -03:00
  • eb886e4b5e Merge DMD r250: harmonize --- dmd/expression.c | 133 ++++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 95 insertions(+), 38 deletions(-) Leandro Lucarella 2010-01-06 15:18:19 -03:00
  • 09fb49c546 Merge DMD r248: implement Denis Koroskin's macro suggestion --- dmd/lexer.c | 2 +- dmd/lexer.h | 8 ++++---- dmd/mars.c | 2 +- dmd/parse.c | 12 ++++++------ 4 files changed, 12 insertions(+), 12 deletions(-) Leandro Lucarella 2010-01-06 15:18:19 -03:00
  • 7d2c329195 Merge DMD r243: some harmonization with D2 dmd --- dmd/aggregate.h | 24 ++++- dmd/attrib.c | 63 ++++++---- dmd/attrib.h | 10 +- dmd/declaration.h | 5 +- dmd/func.c | 337 ++++++++++++++++++++++------------------------------- dmd/mars.c | 2 +- dmd/mars.h | 7 + dmd/mtype.h | 13 ++- dmd/parse.c | 32 ++++- dmd/parse.h | 14 ++- dmd/scope.h | 2 +- 11 files changed, 263 insertions(+), 246 deletions(-) Leandro Lucarella 2010-01-06 15:18:19 -03:00
  • 7192b16ef9 Automated merge with http://hg.dsource.org/projects/ldc Robert Clipsham 2009-12-28 02:23:54 +00:00
  • 42eca04683 Folded in a patch by Troy Straszheim to better report errors with -run. Robert Clipsham 2009-12-28 02:23:41 +00:00
  • ab325e6214 Revert fix by Robert for downs as it causes a segfault when compiling tango. Kelly Wilson 2009-12-23 22:49:20 -07:00
  • cf55f5fcec Merged the patch for dmd bugzilla #3620 by request of downs. Robert Clipsham 2009-12-20 13:58:08 +00:00
  • ff69db3b37 Fix definition of _Unwind_Action. Christian Kamm 2009-12-18 18:59:14 +01:00
  • 10e1768c37 Updated runtest to always rebuild libtangobos-partial.a in case of updates. Changed std.stdarg to import ldc.vararg so it has the correct implementation. Robert Clipsham 2009-11-15 13:22:02 +00:00
  • 98e869c7ec Fixed DStress tests nocompile/c/{const_32_B.d,const_32_C.d}. Updated the runtest script to build libtangobos-partial.a if it hasn't already been built. Added in signbit() and va_arg!()() to libtangobos-partial.a so more of the phobos dependent DStress tests pass. Robert Clipsham 2009-11-08 16:16:17 +00:00
  • 3c1219669b Added in forgotten json.c and json.h files so ldc compiles again. Robert Clipsham 2009-11-07 14:21:56 +00:00
  • 57630ea48b Make ref vars work with nesting. Christian Kamm 2009-11-07 14:06:11 +01:00
  • 4e2e4d5b3d Fix codegen for foreach with ref value being lowered to for. Christian Kamm 2009-11-07 13:51:05 +01:00
  • bcd12c0ce1 Fix another test returning a non-void in a void function. Christian Kamm 2009-11-07 11:16:09 +01:00
  • 7dad594857 Replace DMD's isSymbolDeclaration with isStaticStructInitDeclaration. Christian Kamm 2009-11-07 11:14:37 +01:00
  • 4756d2a654 Fix bug in nested13 minitest. Christian Kamm 2009-11-07 11:01:49 +01:00
  • f84bddc8d0 Hack to make compiling the tango 0.99.8 runtime work. Christian Kamm 2009-11-07 10:54:40 +01:00
  • 3479e91996 Merge DMD 1.051 Christian Kamm 2009-11-06 23:58:01 +01:00
  • 64a8e47ad6 Fix several 'reaches end of function' warnings by making fatal noreturn. Christian Kamm 2009-11-06 21:51:41 +01:00
  • 0db459fad0 Updated C binding to be more up to date with LLVM. Tomas Lindquist Olsen 2009-10-22 13:30:30 +02:00
  • 84a319ad23 Fixed issue in exception runtime with recent LLVM revisions, with this in place EH seems to work properly on x86-64. These fixes need to be merged into tango trunk still! Tomas Lindquist Olsen 2009-10-21 05:46:56 +02:00
  • 4d9df2012d basename => dirname, thanks Hxal Moritz Warning 2009-09-22 20:26:50 +02:00
  • 70b2156010 Fixed a segfault in ldc2 when compiling synchronized{} blocks. Robert Clipsham 2009-09-19 13:05:10 +01:00
  • d6a6b7c797 Fixed ticket #365. Thanks wilkie. Robert Clipsham 2009-09-19 00:44:35 +01:00
  • b7c0c9e25e allow forward referencing, fix #361 Moritz Warning 2009-09-09 20:13:17 +02:00
  • 4d507f0179 fix newline warning Moritz Warning 2009-09-09 02:03:24 +02:00
  • e44a9aa260 Removed a chunk of code in favour of a shorter and more portable method Robert Clipsham 2009-09-08 11:21:30 +01:00
  • 089e792258 DMD 2.032 Merge. Robert Clipsham 2009-09-08 10:07:56 +01:00
  • 8b6f11938a Kill off StripMetaData. Benjamin Kramer 2009-08-25 21:35:43 +02:00
  • a54bf33d4b This flush is not needed anymore. Benjamin Kramer 2009-08-25 21:21:37 +02:00
  • 832f9a9c64 Fix bug #356. Our sorting function was wrong if a value was between two NULL pointers. Benjamin Kramer 2009-08-22 11:45:20 +02:00
  • 5d0cdd6157 Fixed iretq problem reported by wilkie of the XomB project Kelly Wilson 2009-08-17 13:42:19 -06:00
  • d24643bb50 Avoid some unecessary heap allocations by using llvm's StringRef class. Benjamin Kramer 2009-08-14 01:43:30 +02:00
  • c220dcac05 IntegerType is now contextifed. Benjamin Kramer 2009-08-14 00:39:18 +02:00
  • f3aad137c5 Remove dummy module hack. Benjamin Kramer 2009-08-06 16:02:14 +02:00
  • 977fa551ee Push the context through StructType::get. Benjamin Kramer 2009-08-06 01:47:39 +02:00
  • de0d74dc68 Forgot to add files. Tomas Lindquist Olsen 2009-08-06 17:04:36 +02:00
  • 84f820b442 Added framework for writing a static printf call checker for bearophile to implement. Tomas Lindquist Olsen 2009-08-06 16:52:43 +02:00
  • e05d3d8c3a lookupTarget no longer takes a Module. Benjamin Kramer 2009-08-04 12:21:59 +02:00
  • 5b84e64f6c Build fix for TargetMachine changes. Benjamin Kramer 2009-08-03 11:29:35 +02:00
  • d52ea51df4 Added check and error in case two same named modules - with different packages and compiled at once - would overwrite each other's output files. Tomas Lindquist Olsen 2009-08-02 18:37:07 +02:00
  • df82d09206 Fixed bug #349 , now emits error. Tomas Lindquist Olsen 2009-08-02 17:56:30 +02:00
  • c69e5a5c83 Fixed compiling with llvm rev > 77732 Tomas Lindquist Olsen 2009-08-01 18:23:52 +02:00
  • a75873da1c MDNode left the Context! Benjamin Kramer 2009-07-31 23:53:06 +02:00
  • 4c5457ba61 getNullValue is in Constant again Benjamin Kramer 2009-07-31 23:01:29 +02:00
  • 0a1d467ac7 getTrue/getFalse were moved back to ConstantInt Benjamin Kramer 2009-07-31 19:11:07 +02:00
  • d5d3ecdb05 Added back option to disable metadata generation and users. Set USE_METADATA to OFF in ccmake. Tomas Lindquist Olsen 2009-07-31 11:28:31 +02:00
  • b7b671ce48 Disable metadata for typeid(void). Tomas Lindquist Olsen 2009-07-31 01:44:47 +02:00
  • 652a4b39c0 ConstantAggregateZero moved back to LLVM 2.5-style API Benjamin Kramer 2009-07-31 01:16:30 +02:00
  • e34f07505b use the new NamedMDNode class Benjamin Kramer 2009-07-30 20:54:03 +02:00
  • 66101517d7 LLVMContext changes up to r77366 Benjamin Kramer 2009-07-30 15:25:10 +02:00
  • 3f0a0686a8 Value::getNameStart and Value::getNameLength were removed Benjamin Kramer 2009-07-23 20:34:35 +02:00
  • a31f3eb98f getClosestStaticTargetForModule was replaced with lookupTarget Benjamin Kramer 2009-07-28 15:26:21 +02:00
  • 27a9f93767 DOUT is deprecated, use DEBUG(errs()) instead Benjamin Kramer 2009-07-27 11:44:01 +02:00
  • 3cf7b6a95c Fixed potential crash with complex recursive struct types. Tomas Lindquist Olsen 2009-07-26 19:12:37 +02:00
  • 987618fcd1 Always emit a stop point for return statements - even for void returns. Christian Kamm 2009-07-26 18:32:25 +02:00
  • a398cd39b3 ConstantInt::get{True,False} moved to LLVMContext Benjamin Kramer 2009-07-21 13:11:39 +02:00
  • 51c02d192a Some minor cleanups Benjamin Kramer 2009-07-20 18:16:11 +02:00
  • 69171c07cd Temporarily force our LLVMContext to the global context Benjamin Kramer 2009-07-20 17:55:05 +02:00
  • d7049de966 More factory methods moved to LLVMContext Benjamin Kramer 2009-07-15 18:09:41 +02:00
  • ac5bd294ca We need to parse mArch ourselves now Benjamin Kramer 2009-07-17 19:23:20 +02:00
  • 7359448063 Use TargetRegistry instead of TargetMachineRegistry for Target lookups Benjamin Kramer 2009-07-15 23:01:51 +02:00
  • 03020aea39 raw_fd_ostream takes a force parameter now Benjamin Kramer 2009-07-15 20:04:42 +02:00
  • 23b83c4d7b Target.addPassesToEmitFile takes a formatted_raw_ostream now Benjamin Kramer 2009-07-14 23:06:31 +02:00
  • 02e7bb26fc Fixed Op_Shift asm instructions on x86-64. Robert Clipsham 2009-07-19 23:52:07 +01:00
  • 076ef17159 Build fix for LLVM r75546 and r75559 Benjamin Kramer 2009-07-14 02:19:05 +02:00
  • 0075194b90 Improve error message when using auto declarations with explicit type. Christian Kamm 2009-07-14 18:24:40 +02:00
  • eb3cd8872e Change back the ldc.conf search path and add ~/.ldc Christian Kamm 2009-07-13 22:56:59 +02:00
  • 919f8d6bfa Check for ldc.conf next to the ldc binary before home and etc. Christian Kamm 2009-07-13 22:24:12 +02:00
  • 0ee2f34611 Don't use llvm::getGlobalContext() anymore Benjamin Kramer 2009-07-13 20:16:15 +02:00
  • 331319dab1 Build fix for the latest LLVMContext changes (LLVM r75445) Benjamin Kramer 2009-07-13 12:17:58 +02:00
  • 8576788245 Get rid of USE_METADATA Benjamin Kramer 2009-07-11 14:19:21 +02:00
  • 45f7401a5b Remove all of the now unecessary #if LLVM_REV Benjamin Kramer 2009-07-11 14:09:33 +02:00
  • 917bd7b901 Remove duplicated code Benjamin Kramer 2009-07-11 13:58:23 +02:00
  • 72d1f1e6dd Make the auto storage class never have the same meaning as scope. Christian Kamm 2009-07-12 16:15:21 +02:00
  • 756a2cb2a1 Adjust LDC to work with the LLVMContext LLVM changes. Christian Kamm 2009-07-10 21:30:02 +02:00