[PATCH 2/2] IPA symver: support visibility and static symbols.

Martin Liška mliska@suse.cz
Wed Aug 26 08:02:44 GMT 2020


On 8/25/20 8:46 PM, Jan Hubicka wrote:
> What will happen here with protected visibility?

I forgot about it. Should it be mapped also to "local"?

+  const char *visibility = NULL;
+  if (!TREE_PUBLIC (origin_decl))
+    visibility = "remove";
+  else if (DECL_VISIBILITY (origin_decl) == VISIBILITY_INTERNAL
+          || DECL_VISIBILITY (origin_decl) == VISIBILITY_PROTECTED)
+    visibility = "local";
+  else if (DECL_VISIBILITY (origin_decl) == VISIBILITY_HIDDEN)
+    visibility = "hidden";

Thanks,
Martin


More information about the Gcc-patches mailing list