# HG changeset patch # User Tomas Lindquist Olsen # Date 1240676831 -7200 # Node ID 4fc43e173a0f8586ee85b051719b4f7d5ecf646c # Parent ec1d9dc1d32adb0e7de043f63893790f7c8c341c# Parent 854e86eaa02299c2f9f7d454d4c206882482aa2b Merge diff -r ec1d9dc1d32a -r 4fc43e173a0f dmd/expression.c --- a/dmd/expression.c Sat Apr 25 18:26:54 2009 +0200 +++ b/dmd/expression.c Sat Apr 25 18:27:11 2009 +0200 @@ -5800,7 +5800,10 @@ id = ti->name; s2 = s->search(loc, id, 0); if (!s2) - { error("template identifier %s is not a member of %s %s", id->toChars(), s->kind(), s->ident->toChars()); + { if (s->ident) + error("template identifier %s is not a member of %s %s", id->toChars(), s->kind(), s->ident->toChars()); + else + error("template identifier %s is not a member of %s", id->toChars(), s->kind()); goto Lerr; } s = s2; diff -r ec1d9dc1d32a -r 4fc43e173a0f dmd/parse.c --- a/dmd/parse.c Sat Apr 25 18:26:54 2009 +0200 +++ b/dmd/parse.c Sat Apr 25 18:27:11 2009 +0200 @@ -1640,7 +1640,7 @@ nextToken(); } - s = new Import(loc, a, token.ident, aliasid, isstatic); + s = new Import(loc, a, id, aliasid, isstatic); decldefs->push(s); /* Look for diff -r ec1d9dc1d32a -r 4fc43e173a0f gen/abi-x86-64.cpp --- a/gen/abi-x86-64.cpp Sat Apr 25 18:26:54 2009 +0200 +++ b/gen/abi-x86-64.cpp Sat Apr 25 18:27:11 2009 +0200 @@ -43,6 +43,7 @@ #include "gen/llvmhelpers.h" #include "gen/abi.h" #include "gen/abi-x86-64.h" +//#include "gen/llvm-version.h" // only use is commented out. #include "ir/irfunction.h" #include @@ -401,6 +402,8 @@ // 'fastcc' allows returns in up to two registers of each kind: DRegCount state(2, 2, 2); #if 1 //LLVM_REV < 67588 + // (If uncommenting the LLVM_REV line above, also uncomment llvm-version #include + // LLVM before trunk r67588 doesn't allow a second int to be an i1 or // i8. (See ) // Rather than complicating shouldPassStructInRegs(), just disallow diff -r ec1d9dc1d32a -r 4fc43e173a0f gen/functions.cpp --- a/gen/functions.cpp Sat Apr 25 18:26:54 2009 +0200 +++ b/gen/functions.cpp Sat Apr 25 18:27:11 2009 +0200 @@ -386,11 +386,8 @@ Logger::println("DtoResolveFunction(%s): %s", fdecl->toPrettyChars(), fdecl->loc.toChars()); LOG_SCOPE; - // queue declaration unless the function is abstract without body; - // bodyless functions in an abstract class are considered abstract - ClassDeclaration* cd = fdecl->isMember() ? fdecl->isMember()->isClassDeclaration() : NULL; - bool isabstract = fdecl->isAbstract() || (cd && cd->isAbstract()); - if (!isabstract || fdecl->fbody) + // queue declaration unless the function is abstract without body + if (!fdecl->isAbstract() || fdecl->fbody) { DtoDeclareFunction(fdecl); } diff -r ec1d9dc1d32a -r 4fc43e173a0f gen/main.cpp --- a/gen/main.cpp Sat Apr 25 18:26:54 2009 +0200 +++ b/gen/main.cpp Sat Apr 25 18:27:11 2009 +0200 @@ -36,6 +36,7 @@ #include "gen/linker.h" #include "gen/irstate.h" #include "gen/toobj.h" +#include "gen/llvm-version.h" #include "gen/cl_options.h" #include "gen/cl_helpers.h" diff -r ec1d9dc1d32a -r 4fc43e173a0f ir/irclass.cpp --- a/ir/irclass.cpp Sat Apr 25 18:26:54 2009 +0200 +++ b/ir/irclass.cpp Sat Apr 25 18:27:11 2009 +0200 @@ -132,7 +132,7 @@ FuncDeclaration* fd = dsym->isFuncDeclaration(); assert(fd && "vtbl entry not a function"); - if ((cd->isAbstract() || fd->isAbstract()) && !fd->fbody) + if (fd->isAbstract() && !fd->fbody) { c = getNullValue(DtoType(fd->type->pointerTo())); } @@ -332,7 +332,7 @@ FuncDeclaration* fd = dsym->isFuncDeclaration(); assert(fd && "vtbl entry not a function"); - assert(!((fd->isAbstract() || cd->isAbstract()) && !fd->fbody) && + assert((!fd->isAbstract() || fd->fbody) && "null symbol in interface implementation vtable"); fd->codegen(Type::sir);