Mercurial > projects > ldc
comparison dmd2/statement.c @ 945:03d7c4aac654
SWITCHED TO LLVM 2.5 !
Applied patch from ticket #129 to compile against latest LLVM. Thanks Frits van Bommel.
Fixed implicit return by asm block at the end of a function on x86-32. Other architectures will produce an error at the moment. Adding support for new targets is fairly simple.
Fixed return calling convention for complex numbers, ST and ST(1) were switched around.
Added some testcases.
I've run a dstress test and there are no regressions. However, the runtime does not seem to compile with symbolic debug information. -O3 -release -inline works well and is what I used for the dstress run. Tango does not compile, a small workaround is needed in tango.io.digest.Digest.Digest.hexDigest. See ticket #206 .
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sun, 08 Feb 2009 05:26:54 +0100 |
parents | 356e65836fb5 |
children | 5fa3e0ea06e9 |
comparison
equal
deleted
inserted
replaced
944:eb310635d80e | 945:03d7c4aac654 |
---|---|
2195 */ | 2195 */ |
2196 VarExp *v = new VarExp(0, match); | 2196 VarExp *v = new VarExp(0, match); |
2197 condition = new AssignExp(loc, v, condition); | 2197 condition = new AssignExp(loc, v, condition); |
2198 condition = condition->semantic(scd); | 2198 condition = condition->semantic(scd); |
2199 } | 2199 } |
2200 | |
2201 // LDC | |
2202 else if (ident == Id::allow_inline) | |
2203 { | |
2204 sc->func->allowInlining = true; | |
2205 } | |
2206 | |
2200 else | 2207 else |
2201 scd = sc->push(); | 2208 scd = sc->push(); |
2202 ifbody = ifbody->semantic(scd); | 2209 ifbody = ifbody->semantic(scd); |
2203 scd->pop(); | 2210 scd->pop(); |
2204 | 2211 |