Hi, I've prepared a patch for: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49519
I've also prepared a test which reproduces the error. ChangeLog entry: 2011-07-06 Kirill Yukhin <kirill.yuk...@intel.com> PR tailcall-optimization/49519 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional check if address is stored in register. If so - give up. (check_sibcall_argument_overlap_1): Do not perform check of overlapping when it is call to address. tessuite/ChangeLog entry: 2011-07-06 Kirill Yukhin <kirill.yuk...@intel.com> * g++.dg/torture/pr49519.C: New test for tailcall fix. Bootstrapped, new test fails without patch, passes when it is applied. This fixes the bprblem with SPEC2006/447.dealII miscompile Ok for trunk? Thanks, K
pr49519.gcc.patch
Description: Binary data