[4.8, 4.9] Fix broken ABI defaults for 32-bit x86 compiler

For multilib compiler x86_64-* we need to pass compiler ABI flags based on
flags -m32 or -m64, and no flags means -m64. But for 32-bit target compiler
i686-* we should pass 32-bit ABI flags only. This change fixes the last part.

Change-Id: I00adf4b633952f7a5fde5dc18ca4926a349472cd
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
[4.9] Backport of patch fixing PR61672.

      2014-08-05  Richard Biener  <rguenther@suse.de>

        PR rtl-optimization/61672
        * emit-rtl.h (mem_attrs_eq_p): Declare.
        * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
        * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
        * cfgcleanup.c (merge_memattrs): Likewise.
        Include emit-rtl.h.

Without this patch build of art with 4.9 is broken (at least on x86).
Here is the error msg:

art/runtime/interpreter/interpreter_goto_table_impl.cc:2437:1: error: the frame size of 3328 bytes
is larger than 1728 bytes [-Werror=frame-larger-than=]

Change-Id: I1a33cff567ae91bdbd34a4df6e6360594ae75993
Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
[4.8, 4.9] Backport of additional SLM tuning.

    Six patches from trunk, reg-tested via 'make check':

    2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>

           * tree-vect-data-refs.c (vect_grouped_load_supported): New
           check for loads group of length 3.
           (vect_permute_load_chain): New permutations for loads group of
           length 3.
           * tree-vect-stmts.c (vect_model_load_cost): Change cost
           of vec_perm_shuffle for the new permutations.

    2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>

           * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
           Silvermont.

    2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>

           * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
           * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
           * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
           for TARGET_SLOW_PSHUFB

    2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>

           * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
           * config/i386/i386.c (intel_cost): Ditto.

    2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>

           * config/i386/i386.c (ix86_reassociation_width): Add alternative for
             vector case.
           * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
           * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
           * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
             Introduces alternative way of loads group permutaions.
             (vect_transform_grouped_load): Try alternative way of permutations.

    2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>

           * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
           * config/i386/predicates.md (palignr_operand): New.
             Indicates if permutation is suitable for palignr instruction.

Change-Id: I5e505735ce3dc0ec3c2a1151713a119b24d712fe
Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
[gcc-4.9] Merge svn r213650 from google/gcc-4_9 branch
	Merge svn r213650 from google/gcc-4_9 branch. Tested with
arm,x86,mips,arm64,x86_64,mips64 build in liunux/windows.

Change-Id: I0c07f67d516074172aa393003eee664d01f2e0f2
[4.9] Disable compiler.h fixinclude fix.

Backport from trunk:

2014-08-04  Alexander Ivchenko  <alexander.ivchenko@intel.com>

       * inclhack.def (complier_h_tradcpp): Remove.
       * fixincl.x: Regenerate.
       * tests/base/linux/compiler.h: Remove.

Also, please refer to: b.android.com/73728.

Change-Id: I1ea579ca36f1fe0b8878fa74e753eb2333da85cd
Fix p5600 scheduler to better reflect pipeline and to only be used
on p5600 CPUs.

Change-Id: Ia0143a82433d0874d9e7f480c56b1f92a99ab1a1
[gcc-4.9] Merge svn r214745 from google/gcc-4_9 branch.
Merge gcc-4_9 source r214745 from google/gcc-4_9 branch.

Change-Id: Ie6fa0fd72f4b4eec3adc4db4bb922e652d1c2605
Merge "[4.9] Disable compiler.h fixinclude fix."
Merge "[4.8, 4.9] Backport of additional SLM tuning."
Merge "[4.9] Backport of patch fixing PR61672."
Merge "[4.8, 4.9] Fix broken ABI defaults for 32-bit x86 compiler"
Merge "[gcc-4.9] Merge svn r214745 from google/gcc-4_9 branch. Merge gcc-4_9 source r214745 from google/gcc-4_9 branch."
[gcc-4.9] Backport fix for PR62040 and PR62262
Backport two patches from upstream gcc 4.9 branch that fix PR62040 and PR62262

Change-Id: If4f557a650e00261b9bc83e008eb63b13ca798cb