--- a/scripts/gcc-plugins/latent_entropy_plugin.c
+++ b/scripts/gcc-plugins/latent_entropy_plugin.c
@@ -446,6 +446,8 @@ static void init_local_entropy(basic_block bb, tree
local_entropy)
frame_addr = create_var(ptr_type_node, "local_entropy_frameaddr");
/* 2. local_entropy_frameaddr = __builtin_frame_address() */
+ if (!builtin_decl_implicit_p(BUILT_IN_FRAME_ADDRESS))
+ set_builtin_decl_implicit_p(BUILT_IN_FRAME_ADDRESS, true);
Interesting! Is this aarch64-specific or something that has changed in
more recent GCC versions?
Thanks!
-Kees
This is Android's aarch64-specific. Tested and reproduced in 8.1.
I haven't seen this problem with Linaro toolchains.
- Sahara