]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: Register rng builtins with uint64_t pointers.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 30 Jan 2024 11:04:59 +0000 (11:04 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Mon, 19 Feb 2024 20:12:47 +0000 (20:12 +0000)
Currently, these are registered as unsigned_intDI_type_node which is not
necessarily the same type definition as uint64_t.  On platforms where these
differ that causes fails in consuming the arm_acle.h header.

gcc/ChangeLog:

* config/aarch64/aarch64-builtins.cc (aarch64_init_rng_builtins):
Register these builtins with a pointer to uint64_t rather than unsigned
DI mode.

gcc/config/aarch64/aarch64-builtins.cc

index 9b23b6b8c33f1f3610079b53516f38ba5aa31114..277904f6d142594a5af725831c8a6359ae87be79 100644 (file)
@@ -1731,7 +1731,8 @@ aarch64_init_tme_builtins (void)
 static void
 aarch64_init_rng_builtins (void)
 {
-  tree unsigned_ptr_type = build_pointer_type (unsigned_intDI_type_node);
+  tree unsigned_ptr_type
+    = build_pointer_type (get_typenode_from_name (UINT64_TYPE));
   tree ftype
     = build_function_type_list (integer_type_node, unsigned_ptr_type, NULL);
   aarch64_builtin_decls[AARCH64_BUILTIN_RNG_RNDR]