61 Commits

Author SHA1 Message Date
David Nadlinger
265d3ee069 Do not try to emit nested functions with unanalyzed parents.
GitHub: Fixes #497.
2013-10-13 21:37:53 +02:00
David Nadlinger
07eec1840e Folded in test suite updates. 2013-10-13 21:31:40 +02:00
David Nadlinger
257da5afe5 Bring back -disable-fp-elim.
It was moved to llvm/CodeGen/CommandLineFlags.h.

GitHub: Fixes #502.
2013-10-13 20:26:19 +02:00
kai
d24239cc5d Add test case for issue #461 2013-09-02 04:48:12 +02:00
kai
c95de2ce69 Test case for issue #119 2013-08-18 19:49:50 +02:00
kai
e24c76ec70 Add test case for issue #266 2013-08-18 13:51:57 +02:00
kai
b1160c3d16 Fix for issue #440 2013-08-17 13:02:26 +02:00
kai
967b986629 Fix for issue #430 2013-08-05 21:36:02 +02:00
Alexey Prokhin
8b783da523 Fixed cases where the destructor is called on an uninitialized temporary 2013-07-10 18:15:05 +04:00
Alexey Prokhin
cf32ced6a9 Fixed issue #426 — dtor / destructor not called for (rvalue) struct used in opApply 2013-07-10 13:34:52 +04:00
kai
dc5f0f9f1e Tests for issues #355 and #424 2013-07-07 16:16:12 +02:00
kai
fa40b29160 Fix for issue #419.
The vector type was not handled in `DtoConstArrayInitializer()`.
2013-07-01 07:30:27 +02:00
kai
1a8c3588b5 Fix for issue #420.
The frontend only creates a scalar literal instead of an
array literal in order to initialize a vector field. This
commit adds the missing code.
2013-07-01 00:48:44 +02:00
Alexey Prokhin
324ff01fdb Enabled another exception chaining test 2013-06-19 10:11:12 +04:00
Alexey Prokhin
09c471ae74 Properly implement exception chaining 2013-06-18 17:06:00 +04:00
David Nadlinger
6a1fef81f4 Test suite updates. 2013-06-16 01:06:20 +02:00
David Nadlinger
bed6243481 LDC does not support -transition yet. 2013-06-15 22:57:57 +02:00
David Nadlinger
08f27c0b6d Test suite updates. 2013-06-15 22:55:28 +02:00
David Nadlinger
4f1374e211 Fold in testsuite merge fixes. 2013-06-14 17:44:08 +02:00
David Nadlinger
48f784eda8 Fold in out-of-source test build adaption changes. 2013-06-13 00:17:39 +02:00
David Nadlinger
292caa1438 Merge the 2.063 frontend. 2013-06-12 20:16:37 +02:00
David Nadlinger
c89d4809d6 Be more lenient with initializer type mismatch; zext as necessary.
The integer initializer width mismatch issue should really be
fixed in the frontend, but is related to forward referencing
and thus hard to track down.

Also fixes an unlisted regression since the 2.061 merge, where
there would be a const(char*) vs. immutable(char*) mismatch
reported for some string constants.

GitHub: Fixes #378.
2013-06-02 21:05:33 +02:00
kai
80c4f953c0 Add test case for issue #328 2013-05-11 23:05:34 +02:00
David Nadlinger
7fe8406ec2 Merge in test cases for GitHub issue #340. 2013-05-11 22:03:08 +02:00
David Nadlinger
fa729c2faa Backported fix for broken test case. 2013-05-09 17:46:53 +02:00
David Nadlinger
0c4a987fc4 Temporarily disable failing test. 2013-03-18 13:34:47 +01:00
David Nadlinger
06422ac594 Test suite updates. 2013-03-17 01:59:38 +01:00
David Nadlinger
f77fe89fed Fold in 2.062 test suite. 2013-03-06 23:42:55 +01:00
David Nadlinger
e05a5c6f22 Fold in d_do_test Windows fixes. 2013-02-26 13:14:32 +01:00
David Nadlinger
f85ed37cf1 Revert "Use CMake-detected make program."
CMAKE_MAKE_PROGRAM isn't always (GNU) make, but refers to the
"make" equivalent of the target generator, for example the
"ninja" executable if the Ninja generator is used.

Using find_program or something similar would probably still
be a good idea.

This reverts commit 5a6176316a.
2013-02-13 16:04:01 +01:00
Sebastian Graf
5ae17a59e4 Fixed broken static struct member initializer 2013-02-11 04:20:59 +01:00
David Nadlinger
060ba45c8e druntime/dmd-testsuite test fixes. 2013-02-06 22:15:37 +01:00
David Nadlinger
b99b78558b Hack to make nested struct .init results an rvalue.
The code still needs closer scrunity, as the 'nested' test
from the DMD testsuite doesn't fully pass yet.
2013-01-11 21:34:45 +01:00
David Nadlinger
5c518a16ec Merged 2.061 frontend. 2013-01-04 06:22:53 +01:00
David Nadlinger
d694e37f4a Fix test suite builds: backport copyright year change. 2013-01-04 01:43:56 +01:00
David Nadlinger
1caf4c9c26 Handle plain AA type <-> AA struct return type mismatch.
GitHub: Fixes #214.
2012-12-31 12:10:46 +01:00
David Nadlinger
f1f0486b6e Implement ordered delegate comparisons.
GitHub: Fixes #256.
2012-12-28 18:08:49 +01:00
David Nadlinger
b25b46f65b Merge test case update. 2012-12-27 23:28:01 +01:00
David Nadlinger
aa4543465d Actually run DMD test suite in 32 bit mode on x86_64 multilib builds.
Yet another regression gone unnoticed because CMake functions
silently accept extra arguments.
2012-12-20 03:57:04 +01:00
David Nadlinger
f68e914da6 Workaround for ICE due to auto return type not being inferred.
GitHub: Fixes #217.
2012-12-19 22:55:18 +01:00
David Nadlinger
6e6e03b154 Fold in testsuite fix. 2012-12-19 22:14:13 +01:00
David Nadlinger
fb363972f0 Fix handling of NewExpression for structs with constructors.
The frontend treats the constructor as returning a reference to
the new instance, we just want the memory, i.e. a pointer.

GitHub: Fixes #246.
2012-12-19 20:57:52 +01:00
David Nadlinger
9cbfc604c7 Fix ICE with closures in member functions.
I chose to fix the problem this way because it increases uniformity
between 'this' and normal explicit parameters. Another possibility
would be to just change the type determinatin code in
DtoCreateNestedContextType to not expect the value to be already
present, because it doesn't need it when isVthisPtr is true anyway.

GitHub: Fixes #217.
2012-12-19 20:27:19 +01:00
David Nadlinger
e068df24b2 Workaround for AA literal initialization ICE.
Just executing toConstElem speculatively in
AssocArrayLiteralExp::toElem probably isn't the best idea
anyway, I would not be surprised if there are other similar bugs.

GitHub: Fixes #248.
2012-12-19 02:09:19 +01:00
David Nadlinger
3fc9a0faa3 CMake 2.8.0 compatibility. 2012-12-11 23:08:13 +01:00
David Nadlinger
a74e4abe58 Fix testsuite target dependency setup.
No idea how this worked locally.
2012-12-07 00:04:03 +01:00
David Nadlinger
5a6176316a Use CMake-detected make program.
This probably doesn't make a huge difference in practice, as the
DMD test suite scripts require a Posix-ish environment anyway.
2012-12-06 23:17:32 +01:00
David Nadlinger
6cb0193c53 Clean files from previous runs before executing DMD testsuite. 2012-12-06 23:15:45 +01:00
David Nadlinger
18e0fafe8e Run tests both in 32 and 64 bit mode on multilib builds. 2012-12-06 21:57:18 +01:00
David Nadlinger
93d4d90239 Inline IR testsuite updates. 2012-11-17 11:07:55 +01:00