]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - scripts/gcc-plugins/randomize_layout_plugin.c
randstruct: Enable function pointer struct detection
[mirror_ubuntu-bionic-kernel.git] / scripts / gcc-plugins / randomize_layout_plugin.c
index cdaac8c66734b05971c4e4476b73f9572aa936e3..0073af326449864b4da5f7a64677c0de2d5eafa2 100644 (file)
@@ -436,9 +436,6 @@ static int is_pure_ops_struct(const_tree node)
 
        gcc_assert(TREE_CODE(node) == RECORD_TYPE || TREE_CODE(node) == UNION_TYPE);
 
-       /* XXX: Do not apply randomization to all-ftpr structs yet. */
-       return 0;
-
        for (field = TYPE_FIELDS(node); field; field = TREE_CHAIN(field)) {
                const_tree fieldtype = get_field_type(field);
                enum tree_code code = TREE_CODE(fieldtype);