diff options
author | Jan Hubicka <jh@suse.cz> | 2021-11-13 15:46:57 +0100 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2021-11-13 15:46:57 +0100 |
commit | 2af63f0f53a12a7275b99d92b271d3dff5112690 (patch) | |
tree | c7cb583d1070833e1a288ef07ae2e1b55fc5d7fb /gcc/ipa-param-manipulation.h | |
parent | b9365b93212041f14a7f71ba8da5af4d82240dc6 (diff) | |
download | gcc-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-param-manipulation.h')
-rw-r--r-- | gcc/ipa-param-manipulation.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ipa-param-manipulation.h b/gcc/ipa-param-manipulation.h index 9440cbf..5adf8a2 100644 --- a/gcc/ipa-param-manipulation.h +++ b/gcc/ipa-param-manipulation.h @@ -254,6 +254,7 @@ public: /* If true, make the function not return any value. */ bool m_skip_return; + static bool type_attribute_allowed_p (tree); private: ipa_param_adjustments () {} |