Index: config.guess
--- config.guess.orig	2004-02-22 15:44:23 +0100
+++ config.guess	2005-05-20 09:23:59 +0200
@@ -189,7 +189,7 @@
 		release='-gnu'
 		;;
 	    *)
-		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
 		;;
 	esac
 	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
Index: gcc/config/alpha/osf.h
--- gcc/config/alpha/osf.h.orig	2004-07-17 23:18:49 +0200
+++ gcc/config/alpha/osf.h	2005-05-20 09:23:59 +0200
@@ -79,7 +79,7 @@
    constructor and call-frame data structures are not accidentally
    overridden.  */
 #define LINK_SPEC  \
-  "-G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \
+  "-oldstyle_liblookup %{!o:-o a.out} -G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \
    %{!static:%{shared:-shared -hidden_symbol _GLOBAL_*} \
    %{!shared:-call_shared}} %{pg} %{taso} %{rpath*}"
 
Index: gcc/config/i386/sol2.h
--- gcc/config/i386/sol2.h.orig	2004-06-14 19:34:11 +0200
+++ gcc/config/i386/sol2.h	2005-05-20 09:23:59 +0200
@@ -79,3 +79,7 @@
 	fprintf ((FILE), "\n");				\
       }							\
   } while (0)
+
+#undef DEFAULT_PCC_STRUCT_RETURN
+#define DEFAULT_PCC_STRUCT_RETURN 1
+
Index: gcc/config/sol2.h
--- gcc/config/sol2.h.orig	2004-07-17 23:18:56 +0200
+++ gcc/config/sol2.h	2005-09-19 22:01:15 +0200
@@ -144,8 +144,8 @@
   "%{h*} %{v:-V} \
    %{b} %{Wl,*:%*} \
    %{static:-dn -Bstatic} \
-   %{shared:-G -dy %{!mimpure-text:-z text}} \
-   %{symbolic:-Bsymbolic -G -dy -z text} \
+   %{shared:-G -dy} \
+   %{symbolic:-Bsymbolic -G -dy} \
    %(link_arch) \
    %{Qy:} %{!Qn:-Qy}"
 
Index: gcc/system.h
--- gcc/system.h.orig	2004-03-16 00:22:47 +0100
+++ gcc/system.h	2005-05-20 09:23:59 +0200
@@ -315,10 +315,6 @@
 extern char *strstr (const char *, const char *);
 #endif
 
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
-
 #if defined (HAVE_DECL_MALLOC) && !HAVE_DECL_MALLOC
 extern void *malloc (size_t);
 #endif
