This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/52129] wrong code to pass parameters to tail call function
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 09 Feb 2012 17:27:34 +0000
- Subject: [Bug target/52129] wrong code to pass parameters to tail call function
- Auto-submitted: auto-generated
- References: <bug-52129-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52129
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-09 17:27:34 UTC ---
Author: jakub
Date: Thu Feb 9 17:27:25 2012
New Revision: 184059
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184059
Log:
Backported from mainline
2012-02-06 Jakub Jelinek <jakub@redhat.com>
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.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gcc.c-torture/execute/pr52129.c
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/calls.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog