      GLIBCXX_CHECK_LINKER_FEATURES
      GLIBCXX_CHECK_MATH_SUPPORT
 diff -urN gcc-old/libstdc++-v3/include/std/type_traits gcc/libstdc++-v3/include/std/type_traits
---- gcc-old/libstdc++-v3/include/std/type_traits  2015-01-08 21:54:55.000000000 +0530
-+++ gcc/libstdc++-v3/include/std/type_traits  2016-09-25 15:05:42.603159000 +0530
+--- gcc-old/libstdc++-v3/include/std/type_traits	2015-01-08 21:54:55.000000000 +0530
++++ gcc/libstdc++-v3/include/std/type_traits	2016-09-25 15:05:42.603159000 +0530
 @@ -38,7 +38,7 @@
  #include <bits/c++config.h>
  

diff -urN gcc-old/config.sub gcc/config.sub
--- gcc-old/config.sub  2015-01-02 15:00:21.000000000 +0530
+++ gcc/config.sub  2016-09-24 14:04:03.955832000 +0530
@@ -1368,7 +1368,7 @@
  # The portable systems comes first.
  # Each alternative MUST END IN A *, to match a version number.
  # -sysv* is not here because it comes later, after sysvr4.
- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* | -atomos* \
        | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
        | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
        | -sym* | -kopensolaris* | -plan9* \
diff -urN gcc-old/fixincludes/mkfixinc.sh gcc/fixincludes/mkfixinc.sh
--- gcc-old/fixincludes/mkfixinc.sh 2012-10-29 03:12:48.000000000 +0530
+++ gcc/fixincludes/mkfixinc.sh 2016-09-24 14:16:48.787810000 +0530
@@ -12,6 +12,7 @@
 # Check for special fix rules for particular targets
 case $machine in

+# if defined (__UINT_LEAST16_TYPE__) && defined(__UINT_LEAST32_TYPE__) && 0
 namespace std
 {
   typedef __UINT_LEAST16_TYPE__ uint_least16_t;