[4.8] Fix ICE on g++.dg/cpp0x/lambda/lambda-defarg3.C.

      Backport the fix in r201317

      2013-07-29  Jason Merrill  <jason@redhat.com>

      * mangle.c (write_name): Check for null context.
      (write_unscoped_name): Allow PARM_DECL context.

Author: Alexander Ivchenko <alexander.ivchenko@intel.com>
Date:   Tue Jul 30 15:19:17 2013 +0400

Conflicts:
	gcc/cp/mangle.c
Add an internal switch -minline-thumb1-jumptable to ARM gcc4.6/4.7/4.8

Default is off (ie. no changes of behavior), meaning that gcc may
generate thumb1 jumptable helper calls (eg. __gnu_thumb1_case_sqi) for
switch/case.

Use -minline-thumb1-jumptable to compile code which can be linked
with compiler-rt where helper __gnu_thumb1_case_* doesn't exist.

This is mainly for use to compile NDK gabi++/stlport/libc++ to be
independent of libgcc.a.  The only affected binaries are all
in armeabi. ABIs armeabi-v7a and x86/mips aren't affected.  Size
differences are

  libgabi++_static.a   176286 ->  176538  +0.1%
  libstlport_static.a 1406346 -> 1413318  +0.5%
  libc++_static.a     2426814 -> 2439074  +0.5%

Change-Id: I582898955b28e53e988a91bc1a64b76fba677e58

Author: Lai Wei-Chih <Robert.Lai@mediatek.com>
Date:   Thu Aug 1 15:09:46 2013 +0800
[4.6,4.8] Add stack unwinding directives for __aeabi_idiv0 in libgcc.a

Same fix to 4.7 in 5ea1e88a7f14a78a01d95f66e388eb15908a5225

Change-Id: I1b2ce4ad72e6b2a327183703d9e49295cf2bad25

Author: Andrew Hsieh <andrewhsieh@google.com>
Date:   Fri Aug 2 15:27:26 2013 +0800
[4.8] Always enable --eh-frame-hdr for static executable

See 23e3137ee2897464b051599b85a09f130d3ad05d for the reason why

Port patch from http://gcc.gnu.org/ml/gcc-patches/2012-09/msg00969.html

gcc/

2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>

    PR debug/54568
    * configure.ac: Add --enable-eh-frame-hdr-for-static.  Set
    USE_EH_FRAME_HDR_FOR_STATIC if PT_GNU_EH_FRAME is supported for
    static executable.
    * config.in: Regenerated.
    * configure: Likewise.

    * config/gnu-user.h (LINK_EH_SPEC): Defined as "--eh-frame-hdr "
    if USE_EH_FRAME_HDR_FOR_STATIC is defined.
    * config/sol2.h (LINK_EH_SPEC): Likewise.
    * config/openbsd.h (LINK_EH_SPEC): Likewise.
    * config/alpha/elf.h (LINK_EH_SPEC): Likewise.
    * config/freebsd.h (LINK_EH_SPEC): Likewise.
    * config/rs6000/sysv4.h (LINK_EH_SPEC): Likewise.

gcc/testsuite/

2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>

    PR debug/54568
    * g++.dg/eh/spec3-static.C: New test.

libgcc/

2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>

    PR debug/54568
    * crtstuff.c (USE_PT_GNU_EH_FRAME): Check CRTSTUFFT_O together
    with USE_EH_FRAME_HDR_FOR_STATIC.

Change-Id: If442d27eeb1347ac5a1b943acbbeff5f708a9929

Author: H.J. Lu <hongjiu.lu@intel.com>
Date:   Wed Aug 7 13:54:01 2013 +0800
[4.8] Backport diagnostic color support from trunk

Squashed commit of r197841, r197842, and r198332 from trunk.

This is capable of coloring errors, warnings, notes, carets, locus', and/or quotes.
Documentation for this feature may be found here:
http://gcc.gnu.org/onlinedocs/gcc/Language-Independent-Options.html

Change-Id: I14f2f852562d18fcef807583635e4e2ceee64829

Author: synergydev <synergye@codefi.re>
Date:   Thu Aug 8 04:40:50 2013 -0700
Add MXU support in gcc4.6/4.7/4.8 with -mmxu

For Ingenic MXU.

Change-Id: Ie7b465c971e3642b3244ac1a77b6f86be4ab4fea

Author: Andrew Hsieh <andrewhsieh@google.com>
Date:   Thu Aug 15 11:36:10 2013 +0800
[4.8] Fix ICE when building bullet library.

See b.android.com/58916 for initial issue and
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58165 for bug discussion.

Backport the fix in r201780

     2013-08-16  Jakub Jelinek  <jakub@redhat.com>

     PR tree-optimization/58165
     * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
     bi_call must be the last stmt in a bb, don't split_block, instead
     use fallthru edge from it and give up if there is none.
     Release conds vector when returning early.

Change-Id: Iaaa90005e279c718a3f398b72579c13cec901246
Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>

Author: Alexander Ivchenko <alexander.ivchenko@intel.com>
Date:   Fri Aug 16 13:54:32 2013 +0400
[4.8] Backport additional diagnostic support

Squashed commit of r198331, r198900, r201467,
and r201574 from trunk.

Change-Id: If0d68971ffac2e7bc48576e2453d799a446f7415

Author: synergydev <synergye@codefi.re>
Date:   Mon Aug 26 11:32:50 2013 -0700