------- Comment #14 from pinskia at gcc dot gnu dot org 2008-09-02 03:53 ------- Created an attachment (id=16186) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16186&action=view) Patch which should fix it but needs full testing
ChangeLog: * cgraphunit.c (update_call_expr): Remove eh regions from statements which become non throw. (cgraph_function_versioning): Also clear DECL_WEAK. Call update_call_expr after updating the flags on the decl. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37293