aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/d-builtins.cc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2025-01-06 22:12:03 +0100
committerIain Buclaw <ibuclaw@gdcproject.org>2025-01-10 23:40:53 +0100
commita7ae0c31245a7db7abf2e80d0016510afe9c8ad0 (patch)
tree8668f3071f30b2d55e83e1785757dffb14829552 /gcc/d/d-builtins.cc
parent086031c058598512d09bf898e4db3735b3e1f22c (diff)
downloadgcc-a7ae0c31245a7db7abf2e80d0016510afe9c8ad0.zip
gcc-a7ae0c31245a7db7abf2e80d0016510afe9c8ad0.tar.gz
gcc-a7ae0c31245a7db7abf2e80d0016510afe9c8ad0.tar.bz2
d: Merge dmd, druntime 6884b433d2, phobos 48d581a1f
D front-end changes: - It's now deprecated to declare `auto ref' parameters without putting those two keywords next to each other. - An error is now given for case fallthough for multivalued cases. - An error is now given for constructors with field destructors with stricter attributes. - An error is now issued for `in'/`out' contracts of `nothrow' functions that may throw. - `auto ref' can now be applied to local, static, extern, and global variables. D runtime changes: - Import latest fixes from druntime v2.110.0-beta.1. Phobos changes: - Import latest fixes from phobos v2.110.0-beta.1. gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd 6884b433d2. * d-builtins.cc (build_frontend_type): Update for new front-end interface. (d_build_builtins_module): Likewise. (matches_builtin_type): Likewise. (covariant_with_builtin_type_p): Likewise. * d-codegen.cc (lower_struct_comparison): Likewise. (call_side_effect_free_p): Likewise. * d-compiler.cc (Compiler::paintAsType): Likewise. * d-convert.cc (convert_expr): Likewise. (convert_for_assignment): Likewise. * d-target.cc (Target::isVectorTypeSupported): Likewise. (Target::isVectorOpSupported): Likewise. (Target::isReturnOnStack): Likewise. * decl.cc (get_symbol_decl): Likewise. * expr.cc (build_return_dtor): Likewise. * imports.cc (class ImportVisitor): Likewise. * toir.cc (class IRVisitor): Likewise. * types.cc (class TypeVisitor): Likewise. libphobos/ChangeLog: * libdruntime/MERGE: Merge upstream druntime 6884b433d2. * src/MERGE: Merge upstream phobos 48d581a1f.
Diffstat (limited to 'gcc/d/d-builtins.cc')
-rw-r--r--gcc/d/d-builtins.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/d/d-builtins.cc b/gcc/d/d-builtins.cc
index a0545d6..538600c 100644
--- a/gcc/d/d-builtins.cc
+++ b/gcc/d/d-builtins.cc
@@ -139,7 +139,7 @@ build_frontend_type (tree type)
dtype = Type::basic[i];
/* Search for type matching size and signedness. */
- if (unsignedp != dtype->isunsigned ()
+ if (unsignedp != dtype->isUnsigned ()
|| size != dmd::size (dtype))
continue;
@@ -572,8 +572,8 @@ d_build_builtins_module (Module *m)
tf->trust = !DECL_ASSEMBLER_NAME_SET_P (decl) ? TRUST::safe
: TREE_NOTHROW (decl) ? TRUST::trusted
: TRUST::system;
- tf->isnothrow (true);
- tf->isnogc (true);
+ tf->isNothrow (true);
+ tf->isNogc (true);
FuncDeclaration *func
= FuncDeclaration::create (Loc (), Loc (),
@@ -715,7 +715,7 @@ matches_builtin_type (Type *t1, Type *t2)
&& dmd::implicitConvTo (tb1, tb2) != MATCH::nomatch)
return true;
- if (tb1->isintegral () == tb2->isintegral ()
+ if (tb1->isIntegral () == tb2->isIntegral ()
&& dmd::size (tb1) == dmd::size (tb2))
return true;
@@ -739,7 +739,7 @@ covariant_with_builtin_type_p (Type *t1, Type *t2)
/* Check for obvious reasons why types may be distinct. */
if (tf1 == NULL || tf2 == NULL
- || tf1->isref () != tf2->isref ()
+ || tf1->isRef () != tf2->isRef ()
|| tf1->parameterList.varargs != tf2->parameterList.varargs
|| tf1->parameterList.length () != tf2->parameterList.length ())
return false;