Commit Graph

1064 Commits

Author SHA1 Message Date
Moritz Warning
09b9644292 see #428 :: make identifiers unique for modules without module statement that are passed on command line; thanks SiegeLord 2010-09-27 00:01:47 +02:00
Moritz Warning
ba88a9325d fixes #416 :: LDC crashes when trying to build Tango on OS X; thanks klickverbot 2010-08-04 16:28:09 +02:00
Moritz Warning
93f0672450 fixes #415: 'swapgs' inline asm opcode mistakenly demands 2 arguments; thanks wolfwood 2010-07-31 21:26:05 +02:00
Moritz Warning
3dcfb04ad7 fix for FreeBSD 2010-06-09 23:16:00 +02:00
Tomas Lindquist Olsen
1fac40d2bd Update to work with LLVM 2.7.
Removed use of dyn_cast, llvm no compiles
without exceptions and rtti by
default. We do need exceptions for the libconfig stuff, but rtti isn't
necessary (anymore).

Debug info needs to be rewritten, as in LLVM 2.7 the format has
completely changed. To have something to look at while rewriting, the
old code has been wrapped inside #ifndef DISABLE_DEBUG_INFO , this means
that you have to define this to compile at the moment.

Updated tango 0.99.9 patch to include updated EH runtime code, which is
needed for LLVM 2.7 as well.
2010-05-19 12:42:32 +02:00
Kelly Wilson
dd6a54d442 Strange workaround for returning from within 'void main()'. The new dmdfe sets the ReturnStatement->exp to null. Fixed bug #391. 2010-03-10 19:35:14 -07:00
Matti Niemenmaa
7edb3d1875 Don't error out with -singleobj, -of, and -c/-output-{bc,ll,o,s}. 2010-03-09 23:20:39 +02:00
Matti Niemenmaa
68daadf53c Add -linkonce-templates for emitting linkonce_odr syms instead of weak_odr. 2010-03-09 23:07:08 +02:00
Kelly Wilson
b38845e88e Apply patch from klickverbot. This is his 'proper fix' patch for bug #395. 2010-03-08 23:37:40 -07:00
Kelly Wilson
902bc06fb1 Revert 1637 because it breaks HelloWorld with Tangos Stdout. There may be another way to fix this so that Deewiants case works, as well as Tango. 2010-03-08 23:10:26 -07:00
Christian Kamm
ef066d42c0 Merge. 2010-03-08 20:09:18 +01:00
Christian Kamm
532af253a9 Apply workaround for #395 by klickverbot. 2010-03-08 20:06:08 +01:00
Matti Niemenmaa
8e696809b3 Change template linkage from weak_odr to linkonce_odr. Much better, fixes #363. 2010-03-08 19:05:12 +02:00
Christian Kamm
ae32163f34 Fix #398.
Tested by Deewiant.
2010-03-08 17:44:38 +01:00
Matti Niemenmaa
b0271794cd Make -nodefaultlib override -de{fault,bug}lib=foo instead of vice versa. 2010-03-05 21:40:51 +02:00
Kelly Wilson
05c466fc4a Fix typo for iretq 2010-02-25 17:12:54 -07:00
Christian Kamm
9cd32549c4 Improve array append performance.
Actually use the appropriate runtime function, instead of just
growing the array by one!
2010-02-14 10:11:05 +01:00
Leandro Lucarella
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(-)
2010-01-06 15:18:20 -03:00
Robert Clipsham
42eca04683 Folded in a patch by Troy Straszheim to better report errors with -run. 2009-12-28 02:23:41 +00:00
Robert Clipsham
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.
2009-11-08 16:16:17 +00:00
Christian Kamm
57630ea48b Make ref vars work with nesting. 2009-11-07 14:06:11 +01:00
Christian Kamm
4e2e4d5b3d Fix codegen for foreach with ref value being lowered to for. 2009-11-07 13:51:05 +01:00
Christian Kamm
3479e91996 Merge DMD 1.051 2009-11-06 23:58:01 +01:00
Christian Kamm
64a8e47ad6 Fix several 'reaches end of function' warnings by making fatal noreturn.
The warnings also pointed out a few genuine bugs. Replace some tabs with
spaces.
2009-11-06 21:51:41 +01:00
Robert Clipsham
70b2156010 Fixed a segfault in ldc2 when compiling synchronized{} blocks. 2009-09-19 13:05:10 +01:00
Robert Clipsham
d6a6b7c797 Fixed ticket #365. Thanks wilkie. 2009-09-19 00:44:35 +01:00
Moritz Warning
b7c0c9e25e allow forward referencing, fix #361 2009-09-09 20:13:17 +02:00
Moritz Warning
4d507f0179 fix newline warning 2009-09-09 02:03:24 +02:00
Robert Clipsham
089e792258 DMD 2.032 Merge. 2009-09-08 10:07:56 +01:00
Benjamin Kramer
8b6f11938a Kill off StripMetaData. 2009-08-25 21:35:43 +02:00
Benjamin Kramer
a54bf33d4b This flush is not needed anymore. 2009-08-25 21:21:37 +02:00
Kelly Wilson
5d0cdd6157 Fixed iretq problem reported by wilkie of the XomB project 2009-08-17 13:42:19 -06:00
Benjamin Kramer
d24643bb50 Avoid some unecessary heap allocations by using llvm's StringRef class. 2009-08-14 01:43:30 +02:00
Benjamin Kramer
c220dcac05 IntegerType is now contextifed.
Requires llvm >= 78969. resistor says this will be the last context API change :)
2009-08-14 00:39:18 +02:00
Benjamin Kramer
f3aad137c5 Remove dummy module hack. 2009-08-06 16:02:14 +02:00
Benjamin Kramer
977fa551ee Push the context through StructType::get.
Requires LLVM >= 78258. Also remove old #if's.
2009-08-06 01:47:39 +02:00
Tomas Lindquist Olsen
de0d74dc68 Forgot to add files. 2009-08-06 17:04:36 +02:00
Tomas Lindquist Olsen
84f820b442 Added framework for writing a static printf call checker for bearophile to implement. 2009-08-06 16:52:43 +02:00
Benjamin Kramer
e05d3d8c3a lookupTarget no longer takes a Module.
And we need to get TargetData from the module if the Target
doesn't have it.
2009-08-04 12:21:59 +02:00
Benjamin Kramer
5b84e64f6c Build fix for TargetMachine changes.
#if'ed for now.
2009-08-03 11:29:35 +02:00
Tomas Lindquist Olsen
df82d09206 Fixed bug #349 , now emits error. 2009-08-02 17:56:30 +02:00
Tomas Lindquist Olsen
c69e5a5c83 Fixed compiling with llvm rev > 77732 2009-08-01 18:23:52 +02:00
Benjamin Kramer
a75873da1c MDNode left the Context!
The changes are in #if LLVM_REV >= 77733 to make the dstress bot happy.
2009-07-31 23:53:06 +02:00
Benjamin Kramer
4c5457ba61 getNullValue is in Constant again
Requires LLVM >= r77721
2009-07-31 23:01:29 +02:00
Benjamin Kramer
0a1d467ac7 getTrue/getFalse were moved back to ConstantInt
Requires LLVM >= r77685
2009-07-31 19:11:07 +02:00
Tomas Lindquist Olsen
d5d3ecdb05 Added back option to disable metadata generation and users. Set USE_METADATA to OFF in ccmake. 2009-07-31 11:28:31 +02:00
Tomas Lindquist Olsen
b7b671ce48 Disable metadata for typeid(void). 2009-07-31 01:44:47 +02:00
Benjamin Kramer
652a4b39c0 ConstantAggregateZero moved back to LLVM 2.5-style API
Requires LLVM >= 77635
2009-07-31 01:16:30 +02:00
Benjamin Kramer
e34f07505b use the new NamedMDNode class
this will need a LLVM >= r77619
2009-07-30 20:54:03 +02:00
Benjamin Kramer
66101517d7 LLVMContext changes up to r77366 2009-07-30 15:25:10 +02:00