Backported from mainline

gcc/

2014-12-03  Renlin Li  <Renlin.Li@arm.com>

	PR middle-end/63762
	PR target/63661
	* ira.c (i386ra): Update preferred class.

gcc/testsuite/

2014-12-03  Renlin Li  <Renlin.Li@arm.com>
	    H.J. Lu <hongjiu.lu@intel.com>

	PR middle-end/63762
	PR target/63661
	* gcc.dg/pr63762.c: New test.
	* gcc.target/i386/pr63661.c: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218306 138bc75d-0d04-0410-961f-82ee72b054a4
       Backport from mainline
       2014-11-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

       PR target/59593
       * config/arm/arm.md (*movhi_insn): Use right formatting
       for immediate.

       2014-11-19  Felix Yang  <felix.yang@huawei.com>
                   Shanyao Chen  <chenshanyao@huawei.com>

       PR target/59593
       * config/arm/arm.md (define_attr "arch"): Add v6t2.
       (define_attr "arch_enabled"): Add test for the above.
       (*movhi_insn_arch4): Add new alternative.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218314 138bc75d-0d04-0410-961f-82ee72b054a4
libitm/ChangeLog:

	* configure.tgt (x86_64): Tune -m32 multilib to generic.

libgomp/ChangeLog:

	* configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218318 138bc75d-0d04-0410-961f-82ee72b054a4
2014-12-03  Martin Jambor  <mjambor@suse.cz>

	PR ipa/64153
	* ipa-inline-analysis.c (evaluate_conditions_for_known_args): Check
	type sizes before view_converting.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218320 138bc75d-0d04-0410-961f-82ee72b054a4
	PR c/59708
	* expmed.c (expand_widening_mult): Return const0_rtx if
	coeff is 0.


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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218337 138bc75d-0d04-0410-961f-82ee72b054a4
	PR c++/56493
	* convert.c (convert_to_real, convert_to_expr, convert_to_complex):
	Handle COMPOUND_EXPR.

	* c-c++-common/pr56493.c: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218346 138bc75d-0d04-0410-961f-82ee72b054a4
2014-12-04  Tobias Burnus  <burnus@net-b.de>

        * configure.ac: Permit also ISL 0.14 with CLooG.
        * Makefile.def: Make more dependent on mpfr, mpc, isl, and
        * cloog.
        * Makefile.in: Regenerate.
        * configure: Regenerate.

2014-12-04  Tobias Burnus  <burnus@net-b.de>

        * configure.ac
        (ac_has_isl_schedule_constraints_compute_schedule):
        New check.
        * graphite-clast-to-gimple.c: For ISL 0.14, include deprecate
        * headers.
        * graphite-interchange.c: Ditto.
        * graphite-poly.c: Ditto.
        * graphite-sese-to-poly.c: Ditto.
        * graphite-optimize-isl.c (getScheduleForBandList): Ditto.
        Conditionally use ISL 0.13+ functions.
        * config.in: Regenerate.
        * configure: Regenerate.



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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218412 138bc75d-0d04-0410-961f-82ee72b054a4
Pass unpromoted argument to promote_function_mode

This patch updates setup_incoming_promotions in combine.c to match what
is actually passed in assign_parm_setup_reg in function.c.

gcc/

	Backport from mainline
	PR rtl-optimization/64037
	* combine.c (setup_incoming_promotions): Pass the argument
	before any promotions happen to promote_function_mode.

gcc/testsuite/

	Backport from mainline
	PR rtl-optimization/64037
	* g++.dg/pr64037.C: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218418 138bc75d-0d04-0410-961f-82ee72b054a4
Stop only if there aren't any usable algorithms

When searching for an usable algorithm with -minline-all-stringops,
decide_alg stops when it sees libcall even if there is a usable
algorithm.  It goes into an infinite loop.  This patch changes
decide_alg to stop searching only if there aren't any usable algorithms.
Testd on Linux/x86-64.

gcc/

	Backport from mainline
	PR target/64108
	* config/i386/i386.c (decide_alg): Stop only if there aren't
	any usable algorithms.

gcc/testsuite/

	Backport from mainline
	PR target/64108
	* gcc.target/i386/memset-strategy-2.c: New test.


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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218442 138bc75d-0d04-0410-961f-82ee72b054a4
	PR libstdc++/64140
	Backport form mainline
	2014-12-04  Tim Shen  <timshen@google.com>

	* include/bits/regex.tcc (regex_iterator<>::operator++): Update
	prefix.matched after modifying prefix.first.
	* testsuite/28_regex/iterators/regex_iterator/char/64140.cc: New
	testcase.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218445 138bc75d-0d04-0410-961f-82ee72b054a4
Fix date of changelog entry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218455 138bc75d-0d04-0410-961f-82ee72b054a4
	PR libstdc++/63840
	* include/std/functional (function::function(const function&)): Set
	_M_manager after operations that might throw.
	* include/tr1/functional (function::function(const function&),
	function::functionFunctor, _Useless)): Likewise.
	* testsuite/20_util/function/63840.cc: New.
	* testsuite/tr1/3_function_objects/function/63840.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218456 138bc75d-0d04-0410-961f-82ee72b054a4
	PR libstdc++/61947
	* include/std/tuple (_Head_base): Use allocator_arg_t parameters to
	disambiguate unary constructors.
	(_Tuple_impl): Pass allocator_arg_t arguments.
	* testsuite/20_util/tuple/61947.cc: New.
	* testsuite/20_util/uses_allocator/cons_neg.cc: Adjust dg-error line.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218459 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/
	Backport from mainline
	2014-12-07  Oleg Endo  <olegendo@gcc.gnu.org>

	* gcc.target/h8300/h8300.exp: Fix duplicated text.
	* gcc.target/h8300/pragma-isr.c: Likewise.
	* gcc.target/h8300/pragma-isr2.c: Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218466 138bc75d-0d04-0410-961f-82ee72b054a4
Merge remote-tracking branch 'gnu/gcc-4_9-branch' into 4.9.3
Merge remote-tracking branch 'sm/4.9.3' into 4.9.3