re PR tree-optimization/49618 (When building uClibc with GCC 4.6.1 old_atexit is...
authorJakub Jelinek <jakub@redhat.com>
Tue, 5 Jul 2011 18:43:04 +0000 (20:43 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 5 Jul 2011 18:43:04 +0000 (20:43 +0200)
commitf2c3a8ce9c1f7073eefb55b3967bc87a7ade468e
tree2eeacbf76ccc11458581ff92eec25941410a3acf
parent49bf9170ebead1c2575291cd08716ce970e5f35a
re PR tree-optimization/49618 (When building uClibc with GCC 4.6.1 old_atexit is miscompiled)

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.

From-SVN: r175884
gcc/ChangeLog
gcc/tree-eh.c