]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/langhooks.h
c++: Handle __builtin_clear_padding on non-trivially-copyable types [PR102586]
[thirdparty/gcc.git] / gcc / langhooks.h
index 0eec1b0f7ada211bbdb7e59d4b55024f5ace7d05..4731f089a2e2aadd6ed28768d7d1bf8cd1c7246e 100644 (file)
@@ -188,6 +188,11 @@ struct lang_hooks_for_types
   /* Returns a tree for the unit size of T excluding tail padding that
      might be used by objects inheriting from T.  */
   tree (*unit_size_without_reusable_padding) (tree);
+
+  /* Returns type corresponding to FIELD's type when FIELD is a C++ base class
+     i.e., type without virtual base classes or tail padding.  Returns
+     NULL_TREE otherwise.  */
+  tree (*classtype_as_base) (const_tree);
 };
 
 /* Language hooks related to decls and the symbol table.  */