summaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authornemet <nemet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-13 14:51:30 +0000
committernemet <nemet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-13 14:51:30 +0000
commita883441fb59977c385b77fa30916531942b668aa (patch)
tree11897a5e94a87d715d797b3d874cc346b94fd198 /gcc/except.c
parent10952be20bcf13e6b7ef4704eeb7a16a08d74844 (diff)
downloadgcc-a883441fb59977c385b77fa30916531942b668aa.tar.gz
* except.c (pass_set_nothrow_function_flags): Set name and add
TODO_dump_func. (set_nothrow_function_flags): Mention in the dump file when changing a function to nothrow. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146003 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/gcc/except.c b/gcc/except.c
index 889dd617603..37bc5bbf13c 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -2972,9 +2972,16 @@ set_nothrow_function_flags (void)
}
}
if (crtl->nothrow
- && (cgraph_function_body_availability (cgraph_node (current_function_decl))
+ && (cgraph_function_body_availability (cgraph_node
+ (current_function_decl))
>= AVAIL_AVAILABLE))
- TREE_NOTHROW (current_function_decl) = 1;
+ {
+ TREE_NOTHROW (current_function_decl) = 1;
+
+ if (dump_file)
+ fprintf (dump_file, "Marking function nothrow: %s\n\n",
+ current_function_name ());
+ }
return 0;
}
@@ -2982,7 +2989,7 @@ struct rtl_opt_pass pass_set_nothrow_function_flags =
{
{
RTL_PASS,
- NULL, /* name */
+ "nothrow", /* name */
NULL, /* gate */
set_nothrow_function_flags, /* execute */
NULL, /* sub */
@@ -2993,7 +3000,7 @@ struct rtl_opt_pass pass_set_nothrow_function_flags =
0, /* properties_provided */
0, /* properties_destroyed */
0, /* todo_flags_start */
- 0, /* todo_flags_finish */
+ TODO_dump_func, /* todo_flags_finish */
}
};