From: Adam Nemet Date: Mon, 13 Apr 2009 14:51:30 +0000 (+0000) Subject: except.c (pass_set_nothrow_function_flags): Set name and add TODO_dump_func. X-Git-Tag: releases/gcc-4.5.0~6644 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7dd18640e80412e1b3982afc6b5099177c9fb67;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c0ad64a4ed92..602d00216d31 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2009-04-13 Adam Nemet + + * 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 PR/39066 @@ -6,18 +13,18 @@ 2009-04-13 Ramana Radhakrishnan - * config/arm/arm.c (return_used_this_function): Remove. - (arm_output_function_prologue): Remove use of + * config/arm/arm.c (return_used_this_function): Remove. + (arm_output_function_prologue): Remove use of return_used_this_function. - (output_return_instruction): Replace use of + (output_return_instruction): Replace use of return_used_this_function by cfun->machine->return_used_this_function. - (arm_output_epilogue): Likewise. - (arm_output_function_epilogue): Likewise. - (thumb_unexpanded_epilogue): Likewise. - * config/arm/arm.h (struct machine_function): + (arm_output_epilogue): Likewise. + (arm_output_function_epilogue): Likewise. + (thumb_unexpanded_epilogue): Likewise. + * config/arm/arm.h (struct machine_function): New member return_used_this_function. - + 2009-04-12 Mark Mitchell * doc/install.texi: Correct description of default directory for diff --git a/gcc/except.c b/gcc/except.c index 889dd617603c..37bc5bbf13c4 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 */ } };