OSDN Git Service

PR target/39137
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Mar 2009 21:12:33 +0000 (21:12 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Mar 2009 21:12:33 +0000 (21:12 +0000)
commit76cbc2a0f605cd16d555eb1c104d3550b0d997f8
treeaac00dcd74a4bb14c38abd88b8fbe9ad9b4c2d6b
parenta347b756d1e4df495c1ede090f7c32bdaf4e6293
PR target/39137
* cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT
macro.
* defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
* config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
* config/i386/i386.c (ix86_local_alignment): For
-m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
long long variables on the stack to avoid dynamic realignment.
Allow the first argument to be a decl rather than type.
* doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.

* gcc.target/i386/stackalign/longlong-1.c: New test.
* gcc.target/i386/stackalign/longlong-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144792 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cfgexpand.c
gcc/config/i386/i386.c
gcc/config/i386/i386.h
gcc/defaults.h
gcc/doc/tm.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/stackalign/longlong-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/stackalign/longlong-2.c [new file with mode: 0644]