2013-06-20  Christophe Lyon  <christophe.lyon@linaro.org>

	Backport from trunk r198683.



git-svn-id: svn://gcc.gnu.org/svn/gcc/branches/linaro/gcc-4_8-branch@200267 138bc75d-0d04-0410-961f-82ee72b054a4
2013-06-20  Rob Savoye  <rob.savoye@linaro.org>

	Backport from trunk 199694
	2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
	(arm_option_override): Override arm_restrict_it where appropriate.
	(thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
	* config/arm/arm.opt (mrestrict-it): New command-line option.
	* doc/invoke.texi: Document -mrestrict-it.



git-svn-id: svn://gcc.gnu.org/svn/gcc/branches/linaro/gcc-4_8-branch@200524 138bc75d-0d04-0410-961f-82ee72b054a4
2013-06-20  Rob Savoye  <rob.savoye@linaro.org>

	Backport from trunk 199533
	2013-05-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* gcc.dg/shrink-wrap-alloca.c: Use __builtin_alloca.



git-svn-id: svn://gcc.gnu.org/svn/gcc/branches/linaro/gcc-4_8-branch@200528 138bc75d-0d04-0410-961f-82ee72b054a4
2013-06-20  Rob Savoye  <rob.savoye@linaro.org>

	Backport from trunk 200061
	2013-06-13  Bin Cheng  <bin.cheng@arm.com>

	* rtlanal.c (noop_move_p): Check the code to be executed for
	COND_EXEC.



git-svn-id: svn://gcc.gnu.org/svn/gcc/branches/linaro/gcc-4_8-branch@200529 138bc75d-0d04-0410-961f-82ee72b054a4
2013-06-20  Rob Savoye  <rob.savoye@linaro.org>

	Backport from trunk 200148
	2013-06-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* gcc.target/arm/unaligned-memcpy-2.c (dest): Initialize to
	ensure alignment.



git-svn-id: svn://gcc.gnu.org/svn/gcc/branches/linaro/gcc-4_8-branch@200530 138bc75d-0d04-0410-961f-82ee72b054a4
2013-06-20  Rob Savoye  <rob.savoye@linaro.org>

	Backport from trunk 200152
	2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>

	gcc/
	* config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
	alternative and update.
	(aarch64_dup_lanedi): Delete.
	* config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
	* config/aarch64/aarch64-simd-builtins.def: Update.

	gcc/testsuite/
	* gcc.target/aarch64/scalar_intrinsics.c: Update.



git-svn-id: svn://gcc.gnu.org/svn/gcc/branches/linaro/gcc-4_8-branch@200533 138bc75d-0d04-0410-961f-82ee72b054a4
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@200567 138bc75d-0d04-0410-961f-82ee72b054a4
2013-06-30  Terry Guo  <terry.guo@arm.com>

	Backport from mainline
	2013-03-27  Bin Cheng  <bin.cheng@arm.com>

	PR target/56102
	* config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
	rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
	mult-word mode.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@200569 138bc75d-0d04-0410-961f-82ee72b054a4
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@200573 138bc75d-0d04-0410-961f-82ee72b054a4
[4.8] Enable armv7/thumb2 multilib for arm-eabi.

Configured multilib:

> arm-eabi-gcc -print-multi-lib
.;
thumb;@mthumb
thumb/thumb2;@mthumb@march=armv7

See 978fb74a5c086cc5572dc2e3f37d207acad969d7

Change-Id: Ia04c9e23cb5abb924702639c6c0f3afc9c485ff0
[4.8] Backport a gimplify fix.

See
  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55245
  6014e0c5342ece48f16f5b02f1b0657d2538a036

Change-Id: I25bfcfdbf0911f18db9b554012258f4d9aa060bd
[4.8] Fix ARM GCC fail to links code using 64-bit atomic built-in

For ARM w/o dmb a helper function is called for 64-bit atomic
built-in, which call __write when helper version is too old.
Change to call write instead for Android.

See http://code.google.com/p/android/issues/detail?id=41297
e42abc641966570528522d61ba625e926e979ac7

Change-Id: I15498b73eebdbd5f4d62aafa943290ca341378bb
[4.8] Support OpenMP

See b6e375800c9a2f02a732cbdf5e87a860c3d954e1,
1271761f530c0050154e8d526b95f952df551751,
92c478dba755a1a2f6f00ff390666acbffd41982 and
51df2e98d22e2c6f5d2a16860bc8fc3644179c1d.

Change-Id: I7b01524a5516dd31b26a68cccc616a066893db39
[4.8] Use memalign instead of posix_memalign in GCC x86 mm_malloc.h

posix_memalign doesn't exist in NDK.  Code inludes ?mmintrin.h
which in turn includes mm_malloc.h may fail to link

For AOSP platform build which uses the same compiler, add
-DHAVE_POSIX_MEMALIGN to restore the original behavior.

Other than non-zero return value which _mm_alloc already ignores, both
paths are functioanlly identical (under the hood dlmalloc.c in 32-bit
ensure alignment is at least 16-byte)

See 0457b0db02c4b229eab11c01025df948032c31a7

Change-Id: I2e83d544a4ac2f4549de3b41a85e009a0a085476
[4.8] Fix openmp support to use libgomp/config/linux

See a38e7b29885b25278b1d356b2efd21622376695d

Change-Id: I4e2671ea3aa8a67e9b5c6d5974b7486eb7ae54b7
[4.8] Fixed GCC 4.8 ICE gen_thumb_movhi_clobber at config/arm/arm.md:5832

See issue https://code.google.com/p/android/issues/detail?id=52732,
and fix http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00732.html

Also see 78a68e851a2f6f9d00367cd38eeedf670bb80f01

Change-Id: Iad4deda17414f3165714da0b60f9f8cb2a6ef052
Merge branch 'gcc-4_8-branch' of git://gcc.gnu.org/git/gcc into linaro-staging
2013-07-02  Rob Savoye  <rob.savoye@linaro.org>
	Backport from trunk 199810

	2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
	Clean up alternatives.



git-svn-id: svn://gcc.gnu.org/svn/gcc/branches/linaro/gcc-4_8-branch@200607 138bc75d-0d04-0410-961f-82ee72b054a4
2013-07-02  Rob Savoye  <rob.savoye@linaro.org>

	Backport from trunk 200019
	2013-06-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

	* gcc.target/arm/unaligned-memcpy-4.c (src, dst): Initialize
	to ensure alignment.
	* gcc.target/arm/unaligned-memcpy-3.c (src): Likewise.



git-svn-id: svn://gcc.gnu.org/svn/gcc/branches/linaro/gcc-4_8-branch@200608 138bc75d-0d04-0410-961f-82ee72b054a4
2013-07-02  Rob Savoye  <rob.savoye@linaro.org>

	Backport from trunk 200061
	2013-06-13  Bin Cheng  <bin.cheng@arm.com>

	* rtlanal.c (noop_move_p): Check the code to be executed for
	COND_EXEC.



git-svn-id: svn://gcc.gnu.org/svn/gcc/branches/linaro/gcc-4_8-branch@200610 138bc75d-0d04-0410-961f-82ee72b054a4