This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r190295 - in /branches/gcc-4_7-branch/gcc: Chan...
- From: uweigand at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 10 Aug 2012 13:21:32 -0000
- Subject: r190295 - in /branches/gcc-4_7-branch/gcc: Chan...
Author: uweigand
Date: Fri Aug 10 13:21:31 2012
New Revision: 190295
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190295
Log:
ChangeLog:
Backport from mainline
2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
Richard Earnshaw <rearnsha@arm.com>
* target.def (vector_alignment): New target hook.
* doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
* doc/tm.texi: Regenerate.
* targhooks.c (default_vector_alignment): New function.
* targhooks.h (default_vector_alignment): Add prototype.
* stor-layout.c (layout_type): Use targetm.vector_alignment.
* config/arm/arm.c (arm_vector_alignment): New function.
(TARGET_VECTOR_ALIGNMENT): Define.
* tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
vector type alignment instead of size.
* tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
element type size directly instead of computing it from alignment.
Fix variable naming and comment.
testsuite/ChangeLog:
Backport from mainline
2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
* lib/target-supports.exp
(check_effective_target_vect_natural_alignment): New function.
* gcc.dg/align-2.c: Only run on targets with natural alignment
of vector types.
* gcc.dg/vect/slp-25.c: Adjust tests for targets without natural
alignment of vector types.
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/config/arm/arm.c
branches/gcc-4_7-branch/gcc/doc/tm.texi
branches/gcc-4_7-branch/gcc/doc/tm.texi.in
branches/gcc-4_7-branch/gcc/stor-layout.c
branches/gcc-4_7-branch/gcc/target.def
branches/gcc-4_7-branch/gcc/targhooks.c
branches/gcc-4_7-branch/gcc/targhooks.h
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/align-2.c
branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/vect/slp-25.c
branches/gcc-4_7-branch/gcc/testsuite/lib/target-supports.exp
branches/gcc-4_7-branch/gcc/tree-vect-data-refs.c
branches/gcc-4_7-branch/gcc/tree-vect-loop-manip.c