Handle fnspec in local ipa-modref
authorJan Hubicka <jh@suse.cz>
Sat, 31 Oct 2020 07:56:40 +0000 (08:56 +0100)
committerJan Hubicka <jh@suse.cz>
Sat, 31 Oct 2020 07:56:40 +0000 (08:56 +0100)
commit617695cdc2b3d950f1e4deb5ea85d5cc302943f4
treefe6fdf0e7adbdd1c1aaaac10cbcea3331f083182
parent943cc2a1b70f2d755b4fed97b1c4b49234d92899
Handle fnspec in local ipa-modref

* ipa-modref.c (modref_summary::dump): Dump writes_errno.
(parm_map_for_arg): Break out from ...
(merge_call_side_effects): ... here.
(get_access_for_fnspec): New function.
(process_fnspec): New function.
(analyze_call): Use it.
(analyze_stmt): Update.
(analyze_function): Initialize writes_errno.
(modref_summaries::duplicate): Duplicate writes_errno.
* ipa-modref.h (struct modref_summary): Add writes_errno.
* tree-ssa-alias.c (call_may_clobber_ref_p_1): Check errno.
gcc/ipa-modref.c
gcc/ipa-modref.h
gcc/tree-ssa-alias.c