re PR target/52129 (wrong code to pass parameters to tail call function)
authorJakub Jelinek <jakub@redhat.com>
Mon, 6 Feb 2012 13:33:05 +0000 (14:33 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 6 Feb 2012 13:33:05 +0000 (14:33 +0100)
commit2c8b5d61bc629ae4468fc9a6cc717b2f0e5032f8
treee8130221fccd6c95f373dd8407bd131492de17a5
parent93286335bbc36ae4b752c102cb0e08e3dc1ca9c5
re PR target/52129 (wrong code to pass parameters to tail call function)

PR target/52129
* calls.c (mem_overlaps_already_clobbered_arg_p): If val is
CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.

* gcc.c-torture/execute/pr52129.c: New test.

From-SVN: r183933
gcc/ChangeLog
gcc/calls.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr52129.c [new file with mode: 0644]