gcc/gcc.patch

changeset 320
d8a8300afdc8
child 332
2289d64c2123
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gcc/gcc.patch	Thu Mar 24 19:00:55 2011 +0100
     1.3 @@ -0,0 +1,108 @@
     1.4 +Index: config.guess
     1.5 +--- config.guess.orig	2010-03-23 15:26:40.000000000 +0100
     1.6 ++++ config.guess	2010-08-01 23:35:02.000000000 +0200
     1.7 +@@ -194,7 +194,7 @@
     1.8 + 		release='-gnu'
     1.9 + 		;;
    1.10 + 	    *)
    1.11 +-		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
    1.12 ++		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
    1.13 + 		;;
    1.14 + 	esac
    1.15 + 	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
    1.16 +Index: gcc/config/alpha/osf.h
    1.17 +--- gcc/config/alpha/osf.h.orig	2010-04-28 18:26:24.000000000 +0200
    1.18 ++++ gcc/config/alpha/osf.h	2010-08-01 23:35:02.000000000 +0200
    1.19 +@@ -77,7 +77,7 @@
    1.20 +    constructor and call-frame data structures are not accidentally
    1.21 +    overridden.  */
    1.22 + #define LINK_SPEC  \
    1.23 +-  "-G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \
    1.24 ++  "-oldstyle_liblookup %{!o:-o a.out} -G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \
    1.25 +    %{!static:%{shared:-shared -hidden_symbol _GLOBAL_*} \
    1.26 +    %{!shared:-call_shared}} %{pg} %{taso} %{rpath*}"
    1.27 + 
    1.28 +Index: gcc/config/i386/sol2-10.h
    1.29 +--- gcc/config/i386/sol2-10.h.orig	2010-07-14 10:47:54.000000000 +0200
    1.30 ++++ gcc/config/i386/sol2-10.h	2010-08-01 23:37:46.000000000 +0200
    1.31 +@@ -114,7 +114,7 @@
    1.32 +              -R /usr/ucblib/64} \
    1.33 +    %{!compat-bsd: \
    1.34 +      %{!YP,*:%{p|pg:-Y P,/usr/lib/libp/64:/lib/64:/usr/lib/64} \
    1.35 +-             %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}}}"
    1.36 ++             %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}} -rpath-link /lib/64:/usr/lib/64}"
    1.37 + 
    1.38 + #undef LINK_ARCH64_SPEC
    1.39 + #define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE
    1.40 +@@ -131,7 +131,7 @@
    1.41 + #endif
    1.42 + 
    1.43 + #define TARGET_LD_EMULATION "%{m64:-m " X86_64_EMULATION "}" \
    1.44 +-			    "%{!m64:-m " I386_EMULATION "} "
    1.45 ++			    "%{!m64:} "
    1.46 + #else
    1.47 + #define TARGET_LD_EMULATION ""
    1.48 + #endif
    1.49 +Index: gcc/config/i386/sol2.h
    1.50 +--- gcc/config/i386/sol2.h.orig	2010-07-14 10:47:54.000000000 +0200
    1.51 ++++ gcc/config/i386/sol2.h	2010-08-01 23:35:02.000000000 +0200
    1.52 +@@ -76,6 +76,9 @@
    1.53 + #undef ASM_QUAD
    1.54 + #endif
    1.55 + 
    1.56 ++#undef DEFAULT_PCC_STRUCT_RETURN
    1.57 ++#define DEFAULT_PCC_STRUCT_RETURN 1
    1.58 ++
    1.59 + /* The Solaris assembler wants a .local for non-exported aliases.  */
    1.60 + #define ASM_OUTPUT_DEF_FROM_DECLS(FILE, DECL, TARGET)	\
    1.61 +   do {							\
    1.62 +Index: gcc/config/sol2.h
    1.63 +--- gcc/config/sol2.h.orig	2010-04-16 15:33:58.000000000 +0200
    1.64 ++++ gcc/config/sol2.h	2010-08-01 23:35:02.000000000 +0200
    1.65 +@@ -176,8 +176,8 @@
    1.66 +    %{b} \
    1.67 +    %{!shared:%{!static:%{rdynamic: " RDYNAMIC_SPEC "}}} \
    1.68 +    %{static:-dn -Bstatic} \
    1.69 +-   %{shared:-G -dy %{!mimpure-text:-z text}} \
    1.70 +-   %{symbolic:-Bsymbolic -G -dy -z text} \
    1.71 ++   %{shared:-G -dy} \
    1.72 ++   %{symbolic:-Bsymbolic -G -dy} \
    1.73 +    %(link_arch) \
    1.74 +    %{Qy:} %{!Qn:-Qy}"
    1.75 + 
    1.76 +Index: gcc/system.h
    1.77 +--- gcc/system.h.orig	2009-12-14 00:00:53.000000000 +0100
    1.78 ++++ gcc/system.h	2010-08-01 23:35:02.000000000 +0200
    1.79 +@@ -398,10 +398,6 @@
    1.80 + extern char *strstr (const char *, const char *);
    1.81 + #endif
    1.82 + 
    1.83 +-#ifdef HAVE_MALLOC_H
    1.84 +-#include <malloc.h>
    1.85 +-#endif
    1.86 +-
    1.87 + #if defined (HAVE_DECL_MALLOC) && !HAVE_DECL_MALLOC
    1.88 + extern void *malloc (size_t);
    1.89 + #endif
    1.90 +Index: libcpp/charset.c
    1.91 +--- libcpp/charset.c.orig	2010-03-29 22:07:29.000000000 +0200
    1.92 ++++ libcpp/charset.c	2010-08-01 23:35:02.000000000 +0200
    1.93 +@@ -75,6 +75,7 @@
    1.94 + #define iconv_open(x, y) (errno = EINVAL, (iconv_t)-1)
    1.95 + #define iconv(a,b,c,d,e) (errno = EINVAL, (size_t)-1)
    1.96 + #define iconv_close(x)   (void)0
    1.97 ++#undef ICONV_CONST
    1.98 + #define ICONV_CONST
    1.99 + #endif
   1.100 + 
   1.101 +Index: libcpp/internal.h
   1.102 +--- libcpp/internal.h.orig	2010-03-29 22:07:29.000000000 +0200
   1.103 ++++ libcpp/internal.h	2010-08-01 23:35:02.000000000 +0200
   1.104 +@@ -29,6 +29,7 @@
   1.105 + #if HAVE_ICONV
   1.106 + #include <iconv.h>
   1.107 + #else
   1.108 ++#undef  HAVE_ICONV
   1.109 + #define HAVE_ICONV 0
   1.110 + typedef int iconv_t;  /* dummy */
   1.111 + #endif

mercurial