aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/modules.cc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2025-03-14 23:08:16 +0100
committerIain Buclaw <ibuclaw@gdcproject.org>2025-03-16 21:06:07 +0100
commit7d6e5591e6ab1f5a24dcf007b17f81cc19987c47 (patch)
treefdc4ad1abac3bd4a831b5e72ec6e3003f88f872c /gcc/d/modules.cc
parent26c4ea2ebcdcd0aa26350d04dc4cd38348148bd9 (diff)
downloadgcc-7d6e5591e6ab1f5a24dcf007b17f81cc19987c47.zip
gcc-7d6e5591e6ab1f5a24dcf007b17f81cc19987c47.tar.gz
gcc-7d6e5591e6ab1f5a24dcf007b17f81cc19987c47.tar.bz2
d: Merge upstream dmd, druntime 603225372b
D front-end changes: - Import dmd v2.111.0-beta.1. - Added placement `new' expressions. D runtime changes: - Import druntime v2.111.0-beta.1. gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd 603225372b. * dmd/VERSION: Bump version to v2.111.0-beta.1. * d-builtins.cc (build_frontend_type): Update for new front-end interface. * decl.cc (Class DeclVisitor): Likewise. (maybe_build_decl_tree): Likewise. (get_vtable_decl): Likewise. (layout_class_initializer): Likewise. * expr.cc (class ExprVisitor): Likewise. (ExprVisitor::visit (NewExp *)): Implement placement new for class, struct, and pointer types. * modules.cc (get_internal_fn): Update for new front-end interface. libphobos/ChangeLog: * libdruntime/MERGE: Merge upstream druntime 603225372b.
Diffstat (limited to 'gcc/d/modules.cc')
-rw-r--r--gcc/d/modules.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/d/modules.cc b/gcc/d/modules.cc
index 85b6e42..471ac43 100644
--- a/gcc/d/modules.cc
+++ b/gcc/d/modules.cc
@@ -143,13 +143,13 @@ get_internal_fn (tree ident, const Visibility &visibility)
name = IDENTIFIER_POINTER (s);
}
- FuncDeclaration *fd = FuncDeclaration::genCfunc (NULL, Type::tvoid,
- Identifier::idPool (name));
+ FuncDeclaration *fd = dmd::genCfunc (NULL, Type::tvoid,
+ Identifier::idPool (name));
fd->isGenerated (true);
fd->loc = Loc::singleFilename (mod->srcfile.toChars ());
fd->parent = mod;
fd->visibility = visibility;
- fd->semanticRun = PASS::semantic3done;
+ fd->semanticRun (PASS::semantic3done);
return fd;
}