      target_thread_file=${enable_threads}
      ;;
    *)
+diff -ruN gcc-4.7.3/gcc/cp/cfns.h gcc-4.7.3-kos/gcc/cp/cfns.h
+--- gcc-4.7.3/gcc/cp/cfns.h	2009-04-21 15:03:23.000000000 -0400
++++ gcc-4.7.3-kos/gcc/cp/cfns.h	2016-12-10 20:52:48.000000000 -0500
+@@ -53,6 +53,9 @@
+ static unsigned int hash (const char *, unsigned int);
+ #ifdef __GNUC__
+ __inline
++#ifdef __GNUC_STDC_INLINE__
++__attribute__ ((__gnu_inline__))
++#endif
+ #endif
+ const char * libc_name_p (const char *, unsigned int);
+ /* maximum key range = 391, duplicates = 0 */
+@@ -96,7 +99,7 @@
+       400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
+       400, 400, 400, 400, 400, 400, 400
+     };
+-  register int hval = len;
++  register int hval = (int)len;
+ 
+   switch (hval)
+     {
+diff -ruN gcc-4.7.3/gcc/doc/gcc.texi gcc-4.7.3-kos/gcc/doc/gcc.texi
+--- gcc-4.7.3/gcc/doc/gcc.texi	2010-06-09 19:46:33.000000000 -0400
++++ gcc-4.7.3-kos/gcc/doc/gcc.texi	2016-12-10 20:54:56.000000000 -0500
+@@ -86,9 +86,9 @@
+ @item GNU Press
+ @tab Website: www.gnupress.org
+ @item a division of the
+-@tab General: @tex press@@gnu.org @end tex
++@tab General: @email{press@@gnu.org}
+ @item Free Software Foundation
+-@tab Orders:  @tex sales@@gnu.org @end tex
++@tab Orders:  @email{sales@@gnu.org}
+ @item 51 Franklin Street, Fifth Floor
+ @tab Tel 617-542-5942
+ @item Boston, MA 02110-1301 USA
 diff -ruN gcc-4.7.3/libgcc/config/sh/crt1.S gcc-4.7.3-kos/libgcc/config/sh/crt1.S
 --- gcc-4.7.3/libgcc/config/sh/crt1.S	2011-11-02 10:33:56.000000000 -0400
-+++ gcc-4.7.3-kos/libgcc/config/sh/crt1.S	2013-05-17 21:34:42.000000000 -0400
++++ gcc-4.7.3-kos/libgcc/config/sh/crt1.S	2016-12-10 20:52:47.000000000 -0500
 @@ -1,1369 +1,202 @@
 -/* Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2009, 2011
 -   Free Software Foundation, Inc.

diff -ruN gcc-4.7.3/gcc/configure gcc-4.7.3-kos/gcc/configure
--- gcc-4.7.3/gcc/configure	2013-02-06 10:23:55.000000000 -0500
+++ gcc-4.7.3-kos/gcc/configure	2013-05-17 21:30:40.000000000 -0400
@@ -11338,7 +11338,7 @@
     target_thread_file='single'
     ;;

-#endif /* ! __SH5__ */
diff -ruN gcc-4.7.3/libgcc/config/sh/fake-kos.S gcc-4.7.3-kos/libgcc/config/sh/fake-kos.S
--- gcc-4.7.3/libgcc/config/sh/fake-kos.S	1969-12-31 19:00:00.000000000 -0500
+++ gcc-4.7.3-kos/libgcc/config/sh/fake-kos.S	2016-12-10 20:52:47.000000000 -0500
@@ -0,0 +1,75 @@
+! Weakly linked symbols used to get GCC to hopefully compile itself properly.
+! These will be replaced by the real symbols in actual compiled programs.
