Commit f7dd1864 by Adam Nemet

except.c (pass_set_nothrow_function_flags): Set name and add TODO_dump_func.

	* 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.

From-SVN: r146003
parent a5d8781c
2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
* 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.
2009-04-13 Ozkan Sezer <sezeroz@gmail.com> 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
PR/39066 PR/39066
......
...@@ -2972,9 +2972,16 @@ set_nothrow_function_flags (void) ...@@ -2972,9 +2972,16 @@ set_nothrow_function_flags (void)
} }
} }
if (crtl->nothrow if (crtl->nothrow
&& (cgraph_function_body_availability (cgraph_node (current_function_decl)) && (cgraph_function_body_availability (cgraph_node
(current_function_decl))
>= AVAIL_AVAILABLE)) >= 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; return 0;
} }
...@@ -2982,7 +2989,7 @@ struct rtl_opt_pass pass_set_nothrow_function_flags = ...@@ -2982,7 +2989,7 @@ struct rtl_opt_pass pass_set_nothrow_function_flags =
{ {
{ {
RTL_PASS, RTL_PASS,
NULL, /* name */ "nothrow", /* name */
NULL, /* gate */ NULL, /* gate */
set_nothrow_function_flags, /* execute */ set_nothrow_function_flags, /* execute */
NULL, /* sub */ NULL, /* sub */
...@@ -2993,7 +3000,7 @@ struct rtl_opt_pass pass_set_nothrow_function_flags = ...@@ -2993,7 +3000,7 @@ struct rtl_opt_pass pass_set_nothrow_function_flags =
0, /* properties_provided */ 0, /* properties_provided */
0, /* properties_destroyed */ 0, /* properties_destroyed */
0, /* todo_flags_start */ 0, /* todo_flags_start */
0, /* todo_flags_finish */ TODO_dump_func, /* todo_flags_finish */
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment