aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/d-builtins.cc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2025-01-05 14:40:13 +0100
committerIain Buclaw <ibuclaw@gdcproject.org>2025-01-05 14:40:13 +0100
commitf5351b38a8aff438b41cae0d133fd38d56d8cd1f (patch)
tree6c3ebcd181efe8e57c3e6fe4af8f595996b713ff /gcc/d/d-builtins.cc
parenta676a516701789730aa482bcef4adcb683ba0140 (diff)
downloadgcc-f5351b38a8aff438b41cae0d133fd38d56d8cd1f.zip
gcc-f5351b38a8aff438b41cae0d133fd38d56d8cd1f.tar.gz
gcc-f5351b38a8aff438b41cae0d133fd38d56d8cd1f.tar.bz2
d: Merge upstream dmd, druntime 66b93fc24a, phobos 0c28620c3
Synchronizing with the upstream release of v2.109.1. D front-end changes: - Import dmd v2.109.1. - Copying from `const(void)[]' to `void[]' is now disallowed with `-fpreview=fiximmutableconv'. - Import expressions are now treated as hex strings. - Using boolean values other than 0 or 1 in `@safe' code is now deprecated. D runtime changes: - Import dmd v2.109.1. Phobos changes: - Import dmd v2.109.1. gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd 66b93fc24a. * dmd/VERSION: Bump version to v2.109.1. * d-builtins.cc (build_frontend_type): Update for new front-end interface. (matches_builtin_type): Likewise. * d-codegen.cc (identity_compare_p): Likewise. (call_side_effect_free_p): Likewise. * d-convert.cc (convert_expr): Likewise. (check_valist_conversion): Likewise. * d-lang.cc (d_types_compatible_p): Likewise. * d-target.cc (Target::isVectorTypeSupported): Likewise. (Target::isReturnOnStack): Likewise. (Target::preferPassByRef): Likewise. * decl.cc (class DeclVisitor): Likewise. * expr.cc (class ExprVisitor): Likewise. * typeinfo.cc (class TypeInfoVisitor): Likewise. * types.cc (class TypeVisitor): Likewise. libphobos/ChangeLog: * libdruntime/MERGE: Merge upstream druntime 66b93fc24a. * src/MERGE: Merge upstream phobos 0c28620c3. * src/Makefile.am (PHOBOS_DSOURCES): Add std/internal/test/sumtype_example_overloads.d. * src/Makefile.in: Regenerate.
Diffstat (limited to 'gcc/d/d-builtins.cc')
-rw-r--r--gcc/d/d-builtins.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/d/d-builtins.cc b/gcc/d/d-builtins.cc
index 233342a..a0545d6 100644
--- a/gcc/d/d-builtins.cc
+++ b/gcc/d/d-builtins.cc
@@ -140,7 +140,7 @@ build_frontend_type (tree type)
/* Search for type matching size and signedness. */
if (unsignedp != dtype->isunsigned ()
- || size != dtype->size ())
+ || size != dmd::size (dtype))
continue;
return dmd::addMod (dtype, mod);
@@ -157,7 +157,7 @@ build_frontend_type (tree type)
dtype = Type::basic[i];
/* Search for type matching size. */
- if (dtype->size () != size)
+ if (dmd::size (dtype) != size)
continue;
return dmd::addMod (dtype, mod);
@@ -174,7 +174,7 @@ build_frontend_type (tree type)
dtype = Type::basic[i];
/* Search for type matching size. */
- if (dtype->size () != size)
+ if (dmd::size (dtype) != size)
continue;
return dmd::addMod (dtype, mod);
@@ -215,7 +215,7 @@ build_frontend_type (tree type)
break;
dtype = dmd::addMod (dmd::sarrayOf (dtype, nunits), mod);
- if (target.isVectorTypeSupported (dtype->size (), dtype->nextOf ()))
+ if (target.isVectorTypeSupported (dmd::size (dtype), dtype->nextOf ()))
break;
dtype = dmd::addMod (TypeVector::create (dtype), mod);
@@ -712,11 +712,11 @@ matches_builtin_type (Type *t1, Type *t2)
if (((tb1->isTypePointer () && tb2->isTypePointer ())
|| (tb1->isTypeVector () && tb2->isTypeVector ()))
- && tb1->implicitConvTo (tb2) != MATCH::nomatch)
+ && dmd::implicitConvTo (tb1, tb2) != MATCH::nomatch)
return true;
if (tb1->isintegral () == tb2->isintegral ()
- && tb1->size () == tb2->size ())
+ && dmd::size (tb1) == dmd::size (tb2))
return true;
return false;