Commit Graph

171 Commits

Author SHA1 Message Date
Christian Kamm
c4b523dc29 Nicer error message on some invalid default args. 2008-10-01 21:14:15 +02:00
Christian Kamm
271012bcfc Fix import visibility bugs 313 and 314. 2008-10-01 19:16:10 +02:00
Tomas Lindquist Olsen
7b18b7a633 Implemented constant pointer casts (like casting function pointer to void* as a constant global initializer) 2008-09-28 21:09:21 +02:00
Christian Kamm
12c81a2ee3 Don't delete the header file after it has been generated! 2008-09-21 17:35:27 +02:00
Christian Kamm
713a734d58 Make creating and deleting of doc and hdr files dependent on whether doc and
hdr files are to be generated.

Fixes html_empty_01,02
2008-09-16 09:00:05 +02:00
Tomas Lindquist Olsen
4280a86bcf Fixed .funcptr property of delegates, no longer uses the infamous DMD rewrites to pointer arithmetic, instead a GEPExp has been introduced. 2008-09-15 02:04:26 +02:00
Christian Kamm
431bc19d2f To prevert source-overwriting in the future, forbit output files with the same
name as the source file.
2008-09-14 22:49:19 +02:00
Christian Kamm
151f86630c Fix path handling, hopefully. 2008-09-14 22:08:39 +02:00
Christian Kamm
cc568d6820 Fix output files being .d.bc. They're now .bc again. 2008-09-14 19:51:38 +02:00
Christian Kamm
30c9af1945 Add _d_newarrayvT and _d_newarraymvT to create arrays without initialization.
Adjust DtoNewDynArray to use DtoArrayInit for initialization of new arrays.
Make Type::tvoid->defaultInit() not error.
2008-09-14 10:13:50 +02:00
Christian Kamm
f0abdf860a Constant fold structliteral.member again. 2008-09-12 12:39:06 +02:00
Tomas Lindquist Olsen
bba1994b05 Fixed a few mini tests issues.
Added 'darwin' and 'Posix' as versions user can't set.
Fixed #80 .
2008-09-11 21:10:15 +02:00
Tomas Lindquist Olsen
8e9b957bce Complex number should now follow the D ABI on x86. They're also treated as first class values now. Big change. 2008-09-09 16:49:47 -07:00
Tomas Lindquist Olsen
f411df11e3 Fixed choosing default target machine without needing to link in targets. 2008-09-07 17:44:25 -07:00
Christian Kamm
d44f21687e Restructure path handling a bit. Fixes #66. 2008-09-06 12:27:27 +02:00
Tomas Lindquist Olsen
ccfa5218c3 merge 2008-09-04 17:05:35 +02:00
Christian Kamm
3779b7c7d1 Split runtime into three parts again. 2008-09-03 22:07:04 +02:00
Tomas Lindquist Olsen
f3b3db7fa9 Changed all '#if linux || __APPLE__' to '#if POSIX' so we can support other platforms too, thanx for the suggestion anders. 2008-09-02 23:10:12 +02:00
Christian Kamm
d6e7a65b69 Automated merge with http://hg.dsource.org/projects/llvmdc 2008-09-02 19:14:37 +02:00
Christian Kamm
877da230a3 Get rid of runtime path. Allow defaultlib and debuglib switches to be given multiple times. 2008-09-02 19:14:25 +02:00
Tomas Lindquist Olsen
9f0633a7dd Added some sanity checks for target detection. 2008-08-31 18:51:14 +02:00
Christian Kamm
7963800bd6 Introducing template instantiation traces for static asserts and errors within templates. 2008-08-30 10:30:57 +02:00
Tomas Lindquist Olsen
c65cd45966 Removed unimplemented switches. 2008-08-26 21:02:25 +02:00
Christian Kamm
2deaf9f238 Do not set Dversion to 1. Dversion = 2 means we use post 1.000 additions to D1. 2008-08-26 20:49:01 +02:00
Christian Kamm
54871f4ea7 Add -enable/-disable for specific features.
Allow setting target os with -t.
Clean up the help message.
2008-08-26 19:31:47 +02:00
Tomas Lindquist Olsen
d78677961b Removed D_InlineAsm and D_InlineAsm_X86 versions.
Made use of 'naked' in inline asm an error.
2008-08-25 19:36:27 +02:00
Tomas Lindquist Olsen
6cb325e2fa Missing 'break' in osx code path. 2008-08-24 17:57:53 +02:00
Tomas Lindquist Olsen
6cd4eda726 Fixed some osx mistakes. 2008-08-24 17:19:31 +02:00
Christian Kamm
8d95fc7b3e Add isnan for __APPLE__ and darwin version ident for OSX. 2008-08-24 16:59:08 +02:00
Jacob Carlborg
81de0c4b23 Add __APPLE__ to most #if linux compile time switches. 2008-08-24 16:54:06 +02:00
Christian Kamm
72a2db6d7c Get rid of isLinux and isWindows in favor of global.params.os. 2008-08-24 16:22:58 +02:00
Christian Kamm
ef80c904dc Make class invariants work. 2008-08-21 15:19:45 +02:00
Tomas Lindquist Olsen
5bf3e8911a Added support for overloaded intrinsics.
Added atomic intrinsics in the intrinsics.di header.
2008-08-20 01:02:22 +02:00
Tomas Lindquist Olsen
5aae7a6bee Merged DMD 1.034, array operations are not yet implemented ;) 2008-08-14 06:55:41 +02:00
Tomas Lindquist Olsen
c092165b3a Fixed mini/missingti.d 2008-08-14 03:09:26 +02:00
Christian Kamm
c31d07e23f Reverted bad change [506]. Added test case for remaining bug. 2008-08-13 23:54:09 +02:00
Christian Kamm
575ae2ea33 Provided overload to TypeClass::builtinTypeInfo to return true.
Shouldn't almost all types have a builtin typeinfo? Maybe it'd be better to
have the default at true and only overload typedef and friends.
2008-08-13 22:14:43 +02:00
Christian Kamm
d81aeb0d28 Make the alignment computations of the frontend match the llvm default alignment.
Breaks run/double_03 because it assumes double.alignof >= 8, which does not
seem to be the case for llvm.
2008-08-10 13:42:08 +02:00
Tomas Lindquist Olsen
9d7f16b967 Added pragma(llvmdc, "string") for misc per-module compiler configuration, currently "string" can only be "verbose" which forces -vv for module it appears in.
Reimplemented support for nested functions/class using a new approach.
Added error on taking address of intrinsic.
Fixed problems with the ->syntaxCopy of TypeFunction delegate exp.
Removed DtoDType and replaced all uses with ->toBasetype() instead.
Removed unused inplace stuff.
Fixed a bunch of issues in the runtime unittests, not complete yet.
Added mini tests.
2008-08-10 08:37:38 +02:00
Christian Kamm
6e78763b3f Get rid of predefined Unix version 2008-08-07 18:59:23 +02:00
Tomas Lindquist Olsen
9500e89eeb Added 'Unix' predefined version identifier. 2008-08-04 19:08:39 +02:00
Tomas Lindquist Olsen
691a922850 Changed DMD to make a copy of the TypeFunction in DelegateExp. 2008-08-04 17:32:13 +02:00
Tomas Lindquist Olsen
daad516579 Removed the 'needsstorage' thing from Dsymbol. Arguments are not always given storage when applicable. This is not longer treat specially
in this regard. Code for accessing nested variables and contexts rewritten. Probably more. Fairly well tested.
2008-08-04 02:59:34 +02:00
Christian Kamm
d87a3cd4ee Path combining on Windows didn't work with / properly. 2008-08-03 12:27:11 +02:00
Christian Kamm
ad8e9ae852 Implement a rough AddrExp::toConstElem() 2008-08-02 22:54:36 +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
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
7882f4858e Enable array bounds check and emit them in IndexExp. 2008-07-30 18:38:56 +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