michael@320: Index: config.guess michael@332: diff -Nau config.guess.orig config.guess michael@332: --- config.guess.orig 2011-03-21 16:02:29.000000000 +0100 michael@332: +++ config.guess 2011-03-27 18:06:45.404612233 +0200 michael@320: @@ -194,7 +194,7 @@ michael@320: release='-gnu' michael@320: ;; michael@320: *) michael@320: - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` michael@320: + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'` michael@320: ;; michael@320: esac michael@320: # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: michael@332: Index: gcc/config/alpha/osf5.h michael@332: diff -Nau gcc/config/alpha/osf5.h.orig gcc/config/alpha/osf5.h michael@332: --- gcc/config/alpha/osf5.h.orig 2010-11-21 01:54:14.000000000 +0100 michael@332: +++ gcc/config/alpha/osf5.h 2011-03-27 18:06:45.432326155 +0200 michael@332: @@ -94,7 +94,7 @@ michael@320: constructor and call-frame data structures are not accidentally michael@320: overridden. */ michael@320: #define LINK_SPEC \ michael@320: - "-G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \ michael@320: + "-oldstyle_liblookup %{!o:-o a.out} -G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \ michael@320: %{!static:%{shared:-shared -hidden_symbol _GLOBAL_*} \ michael@320: %{!shared:-call_shared}} %{pg} %{taso} %{rpath*}" michael@320: michael@320: Index: gcc/config/i386/sol2-10.h michael@332: diff -Nau gcc/config/i386/sol2-10.h.orig gcc/config/i386/sol2-10.h michael@332: --- gcc/config/i386/sol2-10.h.orig 2011-01-26 21:23:17.000000000 +0100 michael@332: +++ gcc/config/i386/sol2-10.h 2011-03-27 18:06:45.455032224 +0200 michael@332: @@ -105,7 +105,7 @@ michael@320: -R /usr/ucblib/64} \ michael@320: %{!compat-bsd: \ michael@320: %{!YP,*:%{p|pg:-Y P,/usr/lib/libp/64:/lib/64:/usr/lib/64} \ michael@320: - %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}}}" michael@320: + %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}} -rpath-link /lib/64:/usr/lib/64}" michael@320: michael@320: #undef LINK_ARCH64_SPEC michael@320: #define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE michael@332: @@ -122,7 +122,7 @@ michael@320: #endif michael@320: michael@320: #define TARGET_LD_EMULATION "%{m64:-m " X86_64_EMULATION "}" \ michael@320: - "%{!m64:-m " I386_EMULATION "} " michael@320: + "%{!m64:} " michael@320: #else michael@320: #define TARGET_LD_EMULATION "" michael@320: #endif michael@320: Index: gcc/config/i386/sol2.h michael@332: diff -Nau gcc/config/i386/sol2.h.orig gcc/config/i386/sol2.h michael@332: --- gcc/config/i386/sol2.h.orig 2011-02-02 17:58:49.000000000 +0100 michael@332: +++ gcc/config/i386/sol2.h 2011-03-27 18:06:45.458713885 +0200 michael@332: @@ -73,6 +73,9 @@ michael@320: #undef ASM_QUAD michael@320: #endif michael@320: michael@320: +#undef DEFAULT_PCC_STRUCT_RETURN michael@320: +#define DEFAULT_PCC_STRUCT_RETURN 1 michael@320: + michael@320: /* The Solaris assembler wants a .local for non-exported aliases. */ michael@320: #define ASM_OUTPUT_DEF_FROM_DECLS(FILE, DECL, TARGET) \ michael@320: do { \ michael@320: Index: gcc/config/sol2.h michael@332: diff -Nau gcc/config/sol2.h.orig gcc/config/sol2.h michael@332: --- gcc/config/sol2.h.orig 2011-01-26 21:23:17.000000000 +0100 michael@332: +++ gcc/config/sol2.h 2011-03-27 18:06:45.477952967 +0200 michael@406: @@ -181,8 +181,8 @@ michael@332: "%{h*} %{v:-V} \ michael@320: %{!shared:%{!static:%{rdynamic: " RDYNAMIC_SPEC "}}} \ michael@320: %{static:-dn -Bstatic} \ michael@320: - %{shared:-G -dy %{!mimpure-text:-z text}} \ michael@320: - %{symbolic:-Bsymbolic -G -dy -z text} \ michael@320: + %{shared:-G -dy} \ michael@320: + %{symbolic:-Bsymbolic -G -dy} \ michael@406: %{pthreads|pthread|threads:" LIB_THREAD_LDFLAGS_SPEC "} \ michael@320: %(link_arch) \ michael@320: %{Qy:} %{!Qn:-Qy}" michael@320: Index: gcc/system.h michael@332: diff -Nau gcc/system.h.orig gcc/system.h michael@332: --- gcc/system.h.orig 2011-01-09 13:41:33.000000000 +0100 michael@332: +++ gcc/system.h 2011-03-27 18:06:45.498233251 +0200 michael@332: @@ -430,10 +430,6 @@ michael@320: extern char *strstr (const char *, const char *); michael@320: #endif michael@320: michael@320: -#ifdef HAVE_MALLOC_H michael@320: -#include michael@320: -#endif michael@320: - michael@320: #if defined (HAVE_DECL_MALLOC) && !HAVE_DECL_MALLOC michael@320: extern void *malloc (size_t); michael@320: #endif michael@320: Index: libcpp/charset.c michael@332: diff -Nau libcpp/charset.c.orig libcpp/charset.c michael@332: --- libcpp/charset.c.orig 2011-01-03 21:52:22.000000000 +0100 michael@332: +++ libcpp/charset.c 2011-03-27 18:06:45.522800310 +0200 michael@320: @@ -75,6 +75,7 @@ michael@320: #define iconv_open(x, y) (errno = EINVAL, (iconv_t)-1) michael@320: #define iconv(a,b,c,d,e) (errno = EINVAL, (size_t)-1) michael@320: #define iconv_close(x) (void)0 michael@320: +#undef ICONV_CONST michael@320: #define ICONV_CONST michael@320: #endif michael@320: michael@320: Index: libcpp/internal.h michael@332: diff -Nau libcpp/internal.h.orig libcpp/internal.h michael@332: --- libcpp/internal.h.orig 2010-09-29 20:18:38.000000000 +0200 michael@332: +++ libcpp/internal.h 2011-03-27 18:06:45.537431542 +0200 michael@320: @@ -29,6 +29,7 @@ michael@320: #if HAVE_ICONV michael@320: #include michael@320: #else michael@320: +#undef HAVE_ICONV michael@320: #define HAVE_ICONV 0 michael@320: typedef int iconv_t; /* dummy */ michael@320: #endif