re PR target/38736 (-mavx can change the ABI via BIGGEST_ALIGNMENT)
authorH.J. Lu <hongjiu.lu@intel.com>
Sun, 18 Jan 2009 16:26:26 +0000 (16:26 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Sun, 18 Jan 2009 16:26:26 +0000 (08:26 -0800)
commit6e4f11689b8ac84b5f3eb618e88b0b3a9cc74008
treed74a458bc64925e0158a42b28d1bdf62ea7614fb
parent890065bfe4a9d3367568a2f5a9a12b6289f377d0
re PR target/38736 (-mavx can change the ABI via BIGGEST_ALIGNMENT)

gcc/

2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>

PR target/38736
* c-common.c (handle_aligned_attribute): Use
ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
default alignment value.

* c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.

* defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
* config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.

* doc/extend.texi: Update __attribute__ ((aligned)).  Document
__BIGGEST_ALIGNMENT__.

* doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.

gcc/testsuite/

2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>

PR target/38736
* g++.dg/compat/abi/pr38736_main.C: New.
* g++.dg/compat/abi/pr38736_x.C: Likewise.
* g++.dg/compat/abi/pr38736_y.C: Likewise.
* g++.dg/other/macro-1.C: Likewise.
* gcc.dg/macro-1.c: Likewise.
* gcc.dg/compat/pr38736_main.c: Likewise.
* gcc.dg/compat/pr38736_x.c: Likewise.
* gcc.dg/compat/pr38736_y.c: Likewise.

From-SVN: r143486
16 files changed:
gcc/ChangeLog
gcc/c-common.c
gcc/c-cppbuiltin.c
gcc/config/i386/i386.h
gcc/defaults.h
gcc/doc/extend.texi
gcc/doc/tm.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/compat/abi/pr38736_main.C [new file with mode: 0644]
gcc/testsuite/g++.dg/compat/abi/pr38736_x.C [new file with mode: 0644]
gcc/testsuite/g++.dg/compat/abi/pr38736_y.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/macro-1.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/compat/pr38736_main.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/compat/pr38736_x.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/compat/pr38736_y.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/macro-1.c [new file with mode: 0644]