Tomas Lindquist Olsen
fd2fac6aa7
Fixed param attrs for return values (not really broken, but would be if more return attrs were added)
2008-08-01 18:07:33 +02:00
Tomas Lindquist Olsen
9b45fc5533
Changed the handling of variadic intrinsics a bit.
...
Removed the -fp80 option and made real be 80bit floats on X86, this is what the D spec really says it should be and fixes a bunch of issues.
Changed the handling of parameter attributes to a bit more generalized approach.
Added sext/zext attributes for byte/short/ubyte/ushort parameters, fixes #60 .
Parameter attribs now properly set for intrinsic calls if necessary.
Made the tango.math.Math patch less intrusive.
Fixed/added some mini tests.
2008-08-01 17:59:58 +02:00
Tomas Lindquist Olsen
858dd3e4fa
Updated tango patch. tango.math.Math was incorrect.
2008-08-01 01:12:33 +02:00
Tomas Lindquist Olsen
07cfb67178
Removed tango from the repository and instead added a runtime dir with the files needed to patch and build tango from svn.
...
Reworked the LLVMDC specific pragmas.
2008-08-01 00:32:06 +02:00
Christian Kamm
8f14ece3af
Move DtoArrayBoundsCheck from llvmhelpers to arrays.
2008-07-31 19:14:49 +02:00
Christian Kamm
fcd784d14f
Forgot a ->toBasetype() in the array bound code.
...
Fixes compile/typedef_05.
2008-07-30 20:25:46 +02:00
Christian Kamm
5b5d7404b4
Insert array bound checks for slices.
2008-07-30 19:02:13 +02:00
Christian Kamm
7882f4858e
Enable array bounds check and emit them in IndexExp.
2008-07-30 18:38:56 +02:00
Christian Kamm
fc9ccb9f6a
Rework complex divison.
2008-07-30 16:48:35 +02:00
Tomas Lindquist Olsen
a8bf4e9579
Reverted bad cfg merge stuff
2008-07-30 10:45:20 +02:00
Tomas Lindquist Olsen
660290f640
stupid merge ... :/
2008-07-30 10:41:31 +02:00
Tomas Lindquist Olsen
905ca019dd
Added type param to DVarValue as DMD sometimes overrides the type of the VarDeclaration.
...
Added support for align(1)/packed structs, other alignments are still ignored.
Fixed some problems with accessing lazy arguments.
2008-07-30 10:12:55 +02:00
Christian Kamm
ba23db32ea
Add license text.
2008-07-30 09:55:45 +02:00
Christian Kamm
3b21ae25be
Move DeclarationExp code into a helper function so it can call itself for template mixin members.
2008-07-30 09:21:06 +02:00
elrood
dbe905604b
fixed configuration file loading issues on windows
2008-07-29 21:52:25 +02:00
Christian Kamm
f439de46ab
Another fix to DMD's path code.
2008-07-29 18:00:01 +02:00
Christian Kamm
fe76eeee4e
Missed a line in the dmdfe path code.
2008-07-29 17:45:28 +02:00
Christian Kamm
62e1d77cc1
Allow / as a path separator on Windows.
2008-07-29 17:35:33 +02:00
Christian Kamm
f2c5fa2c2f
Enable insertion of missing terminator instruction for main.
2008-07-29 15:58:45 +02:00
Christian Kamm
dd49c2ca00
Give errors originating from Dsymbol::error the proper 'Error:' heading.
2008-07-29 13:48:46 +02:00
Christian Kamm
dd8982db1f
Disallow delegates to static functions.
2008-07-29 12:49:14 +02:00
Christian Kamm
c6e0dd9be3
Fix the static array cast size check.
2008-07-29 12:44:28 +02:00
Christian Kamm
caa61a5523
Error if static array is cast to an array such that oldarraysize % newelemsize != 0.
2008-07-29 12:32:01 +02:00
Christian Kamm
99f1cfef36
Error instead of assert on unimplemented interface functions.
2008-07-29 10:55:58 +02:00
Christian Kamm
3db56c7a17
Error message for calling a function with a missing 'this' arg.
2008-07-29 10:29:52 +02:00
Christian Kamm
d9f85de2a1
Fix real comparison for real: allow +0 to be distinguished from -0.
2008-07-28 21:37:47 +02:00
Christian Kamm
cf4565095c
Use == in RealEquals and get rid of the memcmp there entirely.
2008-07-28 20:50:41 +02:00
Tomas Lindquist Olsen
20d429e085
Fixed delegate casts.
2008-07-28 08:05:21 +02:00
Tomas Lindquist Olsen
713dfe71b5
clean out obj dir before running mini test.
2008-07-28 07:25:13 +02:00
Tomas Lindquist Olsen
dbebf04b85
removed the old tester.d test driver.
2008-07-28 03:18:15 +02:00
Tomas Lindquist Olsen
675e9b3cf0
testing the new mini test runner features.
2008-07-28 03:04:28 +02:00
Tomas Lindquist Olsen
57fd67aa35
Updated the mini test runner to allow classified tests as
...
compile,nocompile,run,norun.
2008-07-28 03:03:44 +02:00
Tomas Lindquist Olsen
8c98499193
Fixed issue with internal real representation, incorrect for non x86-32 architectures.
...
Cleaned up CallExp::toElem, moved implementation to tocall.cpp providing a single procedure to call arbitrary D functions fairly easily.
2008-07-28 02:11:34 +02:00
Christian Kamm
8485be7238
Make RealEquals only compare the data bytes.
...
Fixes run/t/template_class_13_* regressions introduced in [r401].
2008-07-27 18:52:40 +02:00
Christian Kamm
ad17af1e26
Rework complex addition, substraction and multiplication. Division may need the same.
...
Fixes run/c/cdouble_09_A,C,D and run/c/cfloat_09_A,C,D.
2008-07-27 17:53:49 +02:00
Christian Kamm
2592d1caa6
Switch TypePointer::isunsigned from false to true, so CmpExp::toElem chooses the right operand for pointer comparisons.
...
Fixes run/t/typeinfo_03_A,B,C,D.
2008-07-27 17:10:47 +02:00
Christian Kamm
67d242272b
Add back generated impcnvtab.c to make premake work the first time.
2008-07-27 16:27:44 +02:00
Tomas Lindquist Olsen
7a5dc3e05f
Fixed (I hope) problem with monitor/synchronized stuff not being properly initialized on Windows.
2008-07-27 15:03:04 +02:00
Christian Kamm
5a78083c4c
Fix version identifies for EH.
2008-07-27 14:32:51 +02:00
Tomas Lindquist Olsen
1f00395f0b
Fixed path seperator issue on windows in linker.
2008-07-27 14:15:22 +02:00
Tomas Lindquist Olsen
b2e13e1b36
Attempt to fix win32/mingw linking related to unresolved data segment start/end symbols.
2008-07-27 14:11:31 +02:00
Christian Kamm
4ca219dccc
Automated merge with http://hg.dsource.org/projects/llvmdc
2008-07-27 13:52:14 +02:00
Christian Kamm
c5450a75ef
Mark most of the current EH implementation as x86 Linux specific.
2008-07-27 13:51:55 +02:00
Tomas Lindquist Olsen
5589f6b2b7
merge
2008-07-27 13:47:11 +02:00
Tomas Lindquist Olsen
fde6cc98a8
Removed unneeded references to _minit on Windows which breaks linking. _minit is an artifact of DMD on Win32.
2008-07-27 13:46:28 +02:00
Christian Kamm
befaf511e6
Fix compile-time comparison of template value parameters of real type.
2008-07-27 13:29:31 +02:00
Christian Kamm
86819d1cef
Should only error if array initializer is too long. Too short is ok.
2008-07-26 17:33:49 +02:00
Christian Kamm
907a03a3be
Give error messages for invalid casts.
...
This required passing Loc information to certain functions.
Fixes nocompile/b/bug_cgcs_354_A/B.
2008-07-26 17:19:16 +02:00
Christian Kamm
a278651178
Add error if array initializer has incorrect length.
2008-07-26 15:42:05 +02:00
Christian Kamm
0c9674e952
Make an unresolved global into an error instead of an assert.
...
Fixes nocompile/alias_28_A/F.
2008-07-26 15:23:15 +02:00