re PR tree-optimization/50389 (ICE: in execute_todo, at passes.c:1730 with -O -freord...
authorRichard Guenther <rguenther@suse.de>
Mon, 10 Oct 2011 15:45:53 +0000 (15:45 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 10 Oct 2011 15:45:53 +0000 (15:45 +0000)
commita24ac4609a87536a62a27dd7976bf6ee0acc468f
treef8a62b9ac946da08fd1b85696236a2dda0edcb5c
parent40b6510f2e15672a4027cbd1395bb75ffd5920bc
re PR tree-optimization/50389 (ICE: in execute_todo, at passes.c:1730 with -O -freorder-blocks -ftracer and __builtin___memcpy_chk())

2011-10-10  Richard Guenther  <rguenther@suse.de>

PR middle-end/50389
* gimple-fold.c (gimplify_and_update_call_from_tree): Do not
mark symbols for renaming.  Append the VUSE to all statements
that possibly can have one.

* gcc.dg/torture/pr50389.c: New testcase.

From-SVN: r179757
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr50389.c [new file with mode: 0644]