PR78468 - add alloca alignment test
commit5eeb71626c0dd79d0a8b5811ddc88bbff2ac849f
authorwilco <wilco@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Sep 2017 16:34:54 +0000 (6 16:34 +0000)
committerwilco <wilco@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Sep 2017 16:34:54 +0000 (6 16:34 +0000)
tree72e5ed596ac4dba29645a91623384eb83e335fab
parent9ee1c27794149a4acaa6219e73002daea3cb1212
PR78468 - add alloca alignment test

Add an alignment test to check that aligned alloca's really do get
correctly aligned.  Some targets may not ensure SP is always a multiple
of STACK_BOUNDARY (particularly with outgoing arguments), which means
aligned alloca does not get correctly aligned.  This can be fixed either
by aligning the outgoing arguments or setting STACK_BOUNDARY correctly.

    testsuite/
        PR middle-end/78468
* gcc.dg/pr78468.c: Add alignment test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251811 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr78468.c [new file with mode: 0644]