David Nadlinger
288fd47707
Merged 1.075 frontend.
2012-11-24 21:10:13 +01:00
kai
086e0d251b
Latest changes to compile LDC with MSVC.
2012-06-06 17:29:21 +02:00
David Nadlinger
1805e534b2
Fix issue 97 - <<= broken for LDC 1.
...
This code path was introduced in the 1.074 merge.
2012-05-25 15:54:42 +02:00
kai
1c6ff32d50
Merge dmd-1.074 into ldc.
2012-04-13 23:12:46 +02:00
kai
f1998a6110
Minimize differences between original dmd source and ldc1.
...
Mainly affects formatting but I also found some code differences.
2012-04-10 21:52:12 +02:00
kai
8a20415cd1
Fix white space.
2012-03-06 07:28:29 +01:00
kai
a23b837ebd
Merge dmd-1.073.
2012-02-23 20:41:22 +01:00
kai
f9201e8352
Merge 1.072
2012-02-02 03:13:27 +01:00
Alexey Prokhin
7431d58702
Rewritten initialization of global variables.
2011-10-25 15:43:49 +04:00
David Nadlinger
d7eead617e
Merged DMD commit c7f94c6b66d3b4233ea01dd3dd9f0028b7118870:
...
5349 ICE(toir.c): nested class in static member function
When checking if a nested class can reach a parent class, it should not be
possible to jump through static functions. Static member functions were just
being silently ignored, which meant nonsense was passed to the backend.
(Didn't always cause an ICE, sometimes generates nonsense code).
2011-04-23 18:28:36 +02:00
David Nadlinger
1432a60a8b
Merged DMD commit f8352960ff2b0533740e29e34bc86d632c8967bf:
...
4245 Declaring conflicting symbols in single function scope allowed
Merged D2->D1
2011-04-23 18:17:13 +02:00
David Nadlinger
6a77728578
Merged DMD commit 2b51411e9e8b7ca3e62747ffb6f96c94089cebcc:
...
4389 ICE(constfold.c) or wrong code: string~=dchar in CTFE
Was failing on D1 because dchar, wchar implicitly convert to char,
even if they don't fit. So we need to check for array~char BEFORE
we check for implicit conversion.
2011-04-23 17:40:23 +02:00
David Nadlinger
334111f220
Now that the fix for the underlying operator precedence issue has been merged in (1b6c0f254e05), remove the workaround.
...
Closes [454].
2011-04-22 22:07:30 +02:00
David Nadlinger
d1b4b0ebf4
Backed out changeset 63942295f48f.
2011-04-22 22:06:24 +02:00
David Nadlinger
2c081edfcd
Merged DMD commit ac685a4b2ec07af83f687f41496e3af02e3f0fe:
...
bugzilla 190 and 4753
2011-04-22 19:08:44 +02:00
David Nadlinger
b937eacc69
Merged DMD commit c0aeb74eb605c02f38bebc6bde819fffdf4b792d:
...
more 64
2011-04-22 18:54:33 +02:00
David Nadlinger
feebe880bc
Merged DMD commit 1a61d2c8de2fe913bc6cbc45a5bce8f86a88d1aa:
...
bugzilla 5182 ICE(expression.c): calling unittest from a function
2011-04-22 18:45:37 +02:00
David Nadlinger
da06f7c4e3
Merged DMD commit 20fb0fd8b8f214db21d346ac053aad7663efbbdd:
...
bugzilla 5195 Forward references ignore const
2011-04-22 18:34:52 +02:00
David Nadlinger
c7205fe4fb
Merged DMD commit ee27f87bd4f02fc3edbeb2d110333cb162427e08:
...
bugzilla 5164 Error without line number using 'is (T...)'
2011-04-22 18:34:19 +02:00
David Nadlinger
90c2240d6b
Merged DMD commit 3803c7bdc266b45c102a9c5dd33bc788994dc3ea:
...
bugzilla 5180 ICE(arrayop.c) in-place array operation on incompatible types
2011-04-22 18:33:35 +02:00
David Nadlinger
6992a16220
Merged DMD commit 9a4c24659dd76f64cf9faf5f5d159c9c365d1b91:
...
lots of 64 bit mods
The original commit contained a few front-end changes which are merged here. Also bumps the DMDFE version to 1.066.
2011-04-22 18:26:44 +02:00
David Nadlinger
50af4cc7c9
Merged DMD commit 1cbeff4e725b429596dacfa6108938b54972eb37:
...
more 64
The other front-end changes from the commit seem to be DMD-specific, as they break several AA test cases.
2011-04-22 17:25:10 +02:00
David Nadlinger
7e053eaf9c
Merged DMD commit a10c791c2d6d29db8a4a91d20187636b035c2744:
...
bugzilla 5026 ICE(expression.c) Incomplete mixin expression + char[] to char assignment
2011-04-22 15:49:51 +02:00
David Nadlinger
5bb5069ec3
Merged DMD commit c1176ad9218c7a733867a5cc3d0da628a641d8fb:
...
bugzilla 4941 Built-in tuple slice boundaries are not CTFE'd
2011-04-22 15:05:07 +02:00
David Nadlinger
fb79515eee
Merged DMD commit 59c07625e84aadd2f684ea77f925ae540d5c8906:
...
bugzilla 4926 ICE: PREC_zero assertion failure due to unset precedence
2011-04-22 15:03:13 +02:00
Moritz Warning
240dbdc46d
comment out assert for use in ldc1, like it's done in dmd2/expression.c; thanks to fawzi for spotting this
2011-01-28 18:29:08 +01:00
Robert Clipsham
65c892ee62
Merge SiegeLord's dmdfe 1.064 patch.
2011-01-01 21:23:08 +00:00
Moritz Warning
233299e5c8
Haiku OS support; thanks to MrSunshine
2010-10-04 00:58:14 +02:00
Moritz Warning
f654235139
fixes #432 :: apply DMDFE 1.063; thanks SiegeLord
2010-09-27 00:07:03 +02:00
Moritz Warning
c4e255206a
fixes #431 :: apply DMDFE 1.062; thanks SiegeLord
2010-09-27 00:06:28 +02:00
Moritz Warning
b032e3d1f7
fixes #428 :: apply DMDFE 1.061; thanks SiegeLord
2010-09-27 00:05:13 +02:00
Moritz Warning
ba275942cf
fixes #427 :: Upgrade to DMDFE 1.059+1.060 patch; thanks to SiegeLord
2010-09-05 19:12:55 +02:00
Moritz Warning
ac5180b65b
fixes #426 :: detab'ing the DMDFE source; kudos SiegeLord
2010-09-05 19:04:26 +02:00
Christian Kamm
1d488da835
Merge DMD 1.057.
2010-03-08 21:39:20 +01:00
Robert Clipsham
daa102a5cd
Merge dmd 1.056.
2010-02-06 15:53:52 +00:00
Christian Kamm
8176222719
Disable appending a dchar to a char or wchar array for now.
...
See [1605] for details.
2010-01-06 19:53:35 +01:00
Leandro Lucarella
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(-)
2010-01-06 15:18:23 -03:00
Leandro Lucarella
e7323517b0
Merge DMD r320: refactor
...
---
dmd/expression.c | 7 +++----
dmd/expression.h | 2 +-
dmd/mtype.c | 34 ++++++++--------------------------
3 files changed, 12 insertions(+), 31 deletions(-)
2010-01-06 15:18:23 -03:00
Leandro Lucarella
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).
The DMD r314 commit message is:
bugzilla 2029 (Typesafe variadic functions don't work in CTFE
The DMD r315 commit message is:
bugzilla 2029 - try again
---
dmd/constfold.c | 11 ++++-
dmd/declaration.c | 21 +++++++++-
dmd/declaration.h | 10 ++++-
dmd/expression.c | 1 +
dmd/interpret.c | 111 +++++++++++++++++++++++++++++++++++++++++++++--------
dmd/mars.h | 2 +-
dmd/mtype.c | 2 +-
7 files changed, 135 insertions(+), 23 deletions(-)
2010-01-06 15:18:22 -03:00
Leandro Lucarella
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(-)
2010-01-06 15:18:22 -03:00
Leandro Lucarella
6e61ecee6b
Merge DMD r303: harmonize
...
---
dmd/expression.c | 78 ++++++++++++++++++++++++++++++++++++++++++++++++-----
dmd/expression.h | 8 +++++
dmd/template.c | 27 ++++++++++++-------
3 files changed, 95 insertions(+), 18 deletions(-)
2010-01-06 15:18:21 -03:00
Leandro Lucarella
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(-)
2010-01-06 15:18:21 -03:00
Leandro Lucarella
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(-)
2010-01-06 15:18:21 -03:00
Leandro Lucarella
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(-)
2010-01-06 15:18:21 -03:00
Leandro Lucarella
77f256536f
Merge DMD r274: harmonization
...
---
dmd/expression.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
dmd/template.c | 41 +++++++++++++++++++++++++++++++++++
dmd/template.h | 1 +
3 files changed, 103 insertions(+), 1 deletions(-)
2010-01-06 15:18:21 -03: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
Leandro Lucarella
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).
This doesn't affect existing code though, it just makes with patch
a little useless, because something like this:
char [] s;
s ~= '\u6211';
That failed to compile with a nice error message previously to this
change, now fails with and ugly error message (a failed assertion).
Apparently there is a regression introduced by this patch too, when
compiling Dil I get this assertion message:
ldc: /home/luca/tesis/ldc/gen/statements.cpp:132: virtual void ReturnStatement::toIR(IRState*): Assertion `p->topfunc()->getReturnType() == llvm::Type::getVoidTy(gIR->context())' failed.
0 ldc 0x08a91628
Thank god we have bisecting capabilities in VCSs now ;)
---
dmd/expression.c | 47 +++++++++++++++++++++++++++++++++++++++++------
1 files changed, 41 insertions(+), 6 deletions(-)
2010-01-06 15:18:19 -03:00
Leandro Lucarella
eb886e4b5e
Merge DMD r250: harmonize
...
---
dmd/expression.c | 133 ++++++++++++++++++++++++++++++++++++++---------------
1 files changed, 95 insertions(+), 38 deletions(-)
2010-01-06 15:18:19 -03:00
Christian Kamm
3479e91996
Merge DMD 1.051
2009-11-06 23:58:01 +01:00
Christian Kamm
72d1f1e6dd
Make the auto storage class never have the same meaning as scope.
...
This changes the meaning of
auto class MyClass {} and
auto MyClass ident;
Both have been made an error to prevent accidents.
2009-07-12 16:15:21 +02:00