Commit Graph

507 Commits

Author SHA1 Message Date
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
8efde8d38d Do not assert if there's a struct-this nested context. 2008-08-13 20:50:54 +02:00
Tomas Lindquist Olsen
7ffb43fdc6 Fixed uncaught, invalid use of nesting introduced in rev [498] 2008-08-13 17:11:03 +02:00
Tomas Lindquist Olsen
aae027961c merge 2008-08-13 15:43:34 +02:00
Tomas Lindquist Olsen
0eeedba887 Fixed problems constant multidimensional static array initializers. 2008-08-13 15:43:13 +02:00
Christian Kamm
878faff7fb Revert accidental change to toobj.cpp. 2008-08-12 19:50:41 +02:00
Christian Kamm
57cd1b4445 Get rid of 'static function cannot access nested' error. It is caught again later. 2008-08-12 19:48:42 +02:00
Christian Kamm
3e064bdb19 Change web statistics layout, thanks anders! 2008-08-12 18:33:34 +02:00
Tomas Lindquist Olsen
85a122a53f missed one phobos test 2008-08-12 00:56:09 +02:00
Tomas Lindquist Olsen
bec4e850e4 fixed some failing minitests (badly classified / phobos) 2008-08-12 00:54:32 +02:00
Tomas Lindquist Olsen
148534637e Removed debug info per default from the runtime makefiles, since llvm 2.4svn is currently buggy. 2008-08-12 00:20:04 +02:00
Tomas Lindquist Olsen
983a1b18a1 Fixed EH fatalerror printf'ing. 2008-08-10 22:05:30 +02:00
Christian Kamm
7d7c9059d3 Get rid of exception usage in exception handling code. 2008-08-10 21:57:29 +02:00
Christian Kamm
8b1903c0b3 Make llvmdc work with llvm 2.4svn revision 54614. Breaks compatibility with llvm 2.3. 2008-08-10 21:09:23 +02:00
Christian Kamm
b3ce162a54 Elrood's proposed directory layout changes. 2008-08-10 18:35:27 +02:00
Christian Kamm
cf0dc983f5 Add .orig files created during a revert to .hgignore. 2008-08-10 18:34:57 +02:00
Tomas Lindquist Olsen
43567aca3b Fixed a critical bug in the runtime, where _d_allocmemoryT would mark
the memory block as having pointers (for scanning) opposite of what it
should. So pointers would not be seen and freed. Should fix a bunch of
regressions with AAs.
2008-08-10 17:28:01 +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
Christian Kamm
1284721437 Error if there is no this in a call requiring this.
Fixes:
nocompile/b/bug_type_308_G,H
nocompile/bug_e2ir_814
nocompile/i/inline_18_A,B
nocompile/inline_07
nocompile/static_09
2008-08-10 10:50:53 +02:00
Christian Kamm
646679fd44 Make struct literals work with typedefs.
Fixes run/s/struct_initialization_13_A and run/t/typedef_20_A
2008-08-10 10:40:26 +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
b2d860374b Default initialize temporary struct generated from struct literal.
This makes sure padding is zeroed out.
2008-08-09 09:03:52 +02:00
Christian Kamm
6e78763b3f Get rid of predefined Unix version 2008-08-07 18:59:23 +02:00
Christian Kamm
4ee26b350a Forgot return in DtoInitializer 2008-08-07 18:17:59 +02:00
Christian Kamm
f7cd3cf969 Move zero init of padding to DtoInitializer in order to respect void initializers. 2008-08-07 18:15:27 +02:00
Christian Kamm
14c3e022e4 Use llvmdc helpers for store and bitcast in fp80 padding init code. 2008-08-05 20:23:44 +02:00
Christian Kamm
b2efd0d317 Zero out padding of fp80. 2008-08-05 20:10:12 +02:00
Christian Kamm
8362b86c5a Move AllocaInst creation into DtoAlloca helper. Will enable special zero-init of fp80 reals' padding. 2008-08-05 19:28:19 +02:00
Christian Kamm
866360c23b Update readme. 2008-08-05 08:08:00 +02:00
Christian Kamm
cc7e5e63b1 Make sure to initialize isBranchToLabel to zero.
Fixes unittest compilation for tango.text.Text.
2008-08-04 21:34:53 +02:00
Tomas Lindquist Olsen
323c45e768 Added missing llvmdc-build script in lphobos, added llvmdc.conf to lphobos. 2008-08-04 20:05:42 +02:00
Tomas Lindquist Olsen
641523be79 Added bash style rebuild to the lphobos dir 2008-08-04 20:01:36 +02:00
Tomas Lindquist Olsen
6fc52fd86b Removed old moduleinit_backend from lphobos it's useless now. 2008-08-04 19:38:59 +02:00
Tomas Lindquist Olsen
3f1767fd49 Applied downs' lphobos update 2008-08-04 19:28:49 +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
7988ecb8be added testcase for taking address of function as constant expr. 2008-08-04 03:40:08 +02:00
Tomas Lindquist Olsen
800497f2be Fixed constant expression taking address of function. 2008-08-04 03:38:23 +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
Tomas Lindquist Olsen
b0a5f554d6 Fixed problem in AssignExp where the result value might be uninitialized. see mini/assign1.d 2008-08-03 16:59:28 +02:00
Tomas Lindquist Olsen
996c197aa8 stupid merges 2008-08-03 16:16:16 +02:00
Tomas Lindquist Olsen
0640b52d3e Added a mini test case for nested stuff 2008-08-03 16:11:38 +02:00
Tomas Lindquist Olsen
dedc0f4829 Fixed problem with using the variable names _arguments and _argptr in non D-style vararg functions.
Fixed problem with compiling with LLVM 2.3
2008-08-03 16:10:00 +02:00
Christian Kamm
90693b23b1 Use path separator to make minitests work on windows. 2008-08-03 14:03:15 +02:00
Christian Kamm
d87a3cd4ee Path combining on Windows didn't work with / properly. 2008-08-03 12:27:11 +02:00
Christian Kamm
0613b47df9 Windows build changes proposed by Elrood. 2008-08-03 12:26:43 +02:00
Christian Kamm
aff505ea6e Automated merge with http://hg.dsource.org/projects/llvmdc 2008-08-02 22:54:46 +02:00
Christian Kamm
ad8e9ae852 Implement a rough AddrExp::toConstElem() 2008-08-02 22:54:36 +02:00
Tomas Lindquist Olsen
1ee9104354 Fixed AA Rvalue-only access (like indexing an AA return value immediately). 2008-08-02 22:35:24 +02:00
Tomas Lindquist Olsen
00072e5fd0 Fixed debug info and lazy arguments. 2008-08-02 21:51:49 +02:00