Skip to contentSkip to conversation

latent_entropy: make builtin_frame_address implicit

PATCH sahara 1 participant 1 message Aug 20, 2019

lore
Share & tools
lore

sahara

author
#0 lore raw
Quoted 3 lines

scripts/gcc-plugins/latent_entropy_plugin.c static void init_local_entropy(basic_block bb, tree

Quoted 3 lines
scripts/gcc-plugins/latent_entropy_plugin.c +0 -0
@@ -446,6 +446,8 @@ static void init_local_entropy(basic_block bb, tree 

local_entropy)

Quoted 6 lines

scripts/gcc-plugins/latent_entropy_plugin.c static void init_local_entropy(basic_block bb, tree · line 450

Quoted 5 lines
scripts/gcc-plugins/latent_entropy_plugin.c +2 -0
     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);
Quoted 7 lines

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