aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-fnsummary.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2021-11-13 15:46:57 +0100
committerJan Hubicka <jh@suse.cz>2021-11-13 15:46:57 +0100
commit2af63f0f53a12a7275b99d92b271d3dff5112690 (patch)
treec7cb583d1070833e1a288ef07ae2e1b55fc5d7fb /gcc/ipa-fnsummary.c
parentb9365b93212041f14a7f71ba8da5af4d82240dc6 (diff)
downloadgcc-2af63f0f53a12a7275b99d92b271d3dff5112690.zip
gcc-2af63f0f53a12a7275b99d92b271d3dff5112690.tar.gz
gcc-2af63f0f53a12a7275b99d92b271d3dff5112690.tar.bz2
Whitelity type attributes for function signature change
gcc/ChangeLog: * ipa-fnsummary.c (compute_fn_summary): Use type_attribut_allowed_p * ipa-param-manipulation.c (ipa_param_adjustments::type_attribute_allowed_p): New member function. (drop_type_attribute_if_params_changed_p): New function. (build_adjusted_function_type): Use it. * ipa-param-manipulation.h: Add type_attribute_allowed_p.
Diffstat (limited to 'gcc/ipa-fnsummary.c')
-rw-r--r--gcc/ipa-fnsummary.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c
index 94a80d3..7e9201a 100644
--- a/gcc/ipa-fnsummary.c
+++ b/gcc/ipa-fnsummary.c
@@ -3141,8 +3141,8 @@ compute_fn_summary (struct cgraph_node *node, bool early)
modref summaries. */
for (tree list = TYPE_ATTRIBUTES (TREE_TYPE (node->decl));
list && !no_signature; list = TREE_CHAIN (list))
- if (!flag_ipa_modref
- || !is_attribute_p ("fn spec", get_attribute_name (list)))
+ if (!ipa_param_adjustments::type_attribute_allowed_p
+ (get_attribute_name (list)))
{
if (dump_file)
{