diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-10 20:06:48 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-10 20:06:48 +0000 |
commit | 8c1fce46fc02e43e82b05f49894690133a1bcdcf (patch) | |
tree | b4c63c4e36083749fdc5d207881d81ca1a95d246 /gcc/cgraph.c | |
parent | aa5b1dc0e03b554f3258cecc6d30cc7a9f6bb128 (diff) | |
download | gcc-8c1fce46fc02e43e82b05f49894690133a1bcdcf.tar.gz |
* cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
setting the nothrow flag.
* ipa-reference.c (propagate): Skip aliases.
* ipa-pure-const.c (propagate_pure_const): Skip aliases.
(propagate_nothrow): Skip aliases; do not update cgraph.
(local_pure_const): Do not update cgraph.
* tree-profile.c (tree_profiling): Do fixup_cfg.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174929 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 4dffdc4010a..f5fd150baac 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -2681,7 +2681,13 @@ cgraph_make_node_local (struct cgraph_node *node) static bool cgraph_set_nothrow_flag_1 (struct cgraph_node *node, void *data) { + struct cgraph_edge *e; + TREE_NOTHROW (node->decl) = data != NULL; + + if (data != NULL) + for (e = node->callers; e; e = e->next_caller) + e->can_throw_external = false; return false; } |