re PR tree-optimization/19633 (local address incorrectly thought to escape)
commit87637d21c0eab59ae9ba4ca7b3593fe847cc1bed
authorDiego Novillo <dnovillo@redhat.com>
Thu, 27 Jan 2005 04:45:20 +0000 (27 04:45 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Thu, 27 Jan 2005 04:45:20 +0000 (26 23:45 -0500)
tree839beaf956bc6b73ae54db4610def572b171b9e0
parent9ff93eb01ce59be5d7b26428df5e5bf6671bce86
re PR tree-optimization/19633 (local address incorrectly thought to escape)

PR tree-optimization/19633
* tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
CALL_EXPRs.
(maybe_create_global_var): Do not create .GLOBAL_VAR if there
are no call-clobbered variables.
* tree-outof-ssa.c (check_replaceable): Return false for calls
with side-effects.

testsuite/ChangeLog

PR tree-optimization/19633
* gcc.dg/pr19633.c: New test.
* gcc.dg/tree-ssa/pr19633.c: New test.

From-SVN: r94311
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr19633.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr19633.c [new file with mode: 0644]
gcc/tree-outof-ssa.c
gcc/tree-ssa-alias.c