[calls.c] PR rtl-optimization/67226: Take into account pretend_args_size when checkin...
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 26 Nov 2015 09:58:28 +0000 (09:58 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 26 Nov 2015 09:58:28 +0000 (09:58 +0000)
commitb3877860a8dbefda221923faa57ba7f3c88ff4e9
tree2eccc3d73bf8aaf67a16ef370aea53376e5e186a
parent62775f0d9a513654b62e8a83e13c8d1324635ee4
[calls.c] PR rtl-optimization/67226: Take into account pretend_args_size when checking stack offsets for sibcall optimisation

2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
            Bernd Schmidt  <bschmidt@redhat.com>

PR rtl-optimization/67226
* calls.c (store_one_arg): Take into account
crtl->args.pretend_args_size when checking for overlap between
arg->value and argblock + arg->locate.offset during sibcall
optimization.

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

Co-Authored-By: Bernd Schmidt <bernds@redhat.com>
From-SVN: r230929
gcc/ChangeLog
gcc/calls.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr67226.c [new file with mode: 0644]