diff options
author | Jan Hubicka <jh@suse.cz> | 2011-06-10 22:06:48 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2011-06-10 20:06:48 +0000 |
commit | 71fb4f92ba50a4faf13468333516bfe24bffddf7 (patch) | |
tree | b4c63c4e36083749fdc5d207881d81ca1a95d246 /gcc/cgraph.c | |
parent | 106fcf8f5f49d7a7319381248a33a5fa59eca687 (diff) | |
download | gcc-71fb4f92ba50a4faf13468333516bfe24bffddf7.zip gcc-71fb4f92ba50a4faf13468333516bfe24bffddf7.tar.gz gcc-71fb4f92ba50a4faf13468333516bfe24bffddf7.tar.bz2 |
cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after setting the nothrow flag.
* 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.
From-SVN: r174929
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 4dffdc4..f5fd150 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; } |