http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49618
--- Comment #21 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-05 18:43:07 UTC --- Author: jakub Date: Tue Jul 5 18:43:04 2011 New Revision: 175884 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175884 Log: PR tree-optimization/49618 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK t recurse on the decl. <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls return true if expr isn't known to be defined in current TU or some other LTO partition. Modified: trunk/gcc/ChangeLog trunk/gcc/tree-eh.c