gcc/gcc.patch

Thu, 24 Mar 2011 19:00:55 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 24 Mar 2011 19:00:55 +0100
changeset 320
d8a8300afdc8
child 332
2289d64c2123
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

michael@320 1 Index: config.guess
michael@320 2 --- config.guess.orig 2010-03-23 15:26:40.000000000 +0100
michael@320 3 +++ config.guess 2010-08-01 23:35:02.000000000 +0200
michael@320 4 @@ -194,7 +194,7 @@
michael@320 5 release='-gnu'
michael@320 6 ;;
michael@320 7 *)
michael@320 8 - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
michael@320 9 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
michael@320 10 ;;
michael@320 11 esac
michael@320 12 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
michael@320 13 Index: gcc/config/alpha/osf.h
michael@320 14 --- gcc/config/alpha/osf.h.orig 2010-04-28 18:26:24.000000000 +0200
michael@320 15 +++ gcc/config/alpha/osf.h 2010-08-01 23:35:02.000000000 +0200
michael@320 16 @@ -77,7 +77,7 @@
michael@320 17 constructor and call-frame data structures are not accidentally
michael@320 18 overridden. */
michael@320 19 #define LINK_SPEC \
michael@320 20 - "-G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \
michael@320 21 + "-oldstyle_liblookup %{!o:-o a.out} -G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \
michael@320 22 %{!static:%{shared:-shared -hidden_symbol _GLOBAL_*} \
michael@320 23 %{!shared:-call_shared}} %{pg} %{taso} %{rpath*}"
michael@320 24
michael@320 25 Index: gcc/config/i386/sol2-10.h
michael@320 26 --- gcc/config/i386/sol2-10.h.orig 2010-07-14 10:47:54.000000000 +0200
michael@320 27 +++ gcc/config/i386/sol2-10.h 2010-08-01 23:37:46.000000000 +0200
michael@320 28 @@ -114,7 +114,7 @@
michael@320 29 -R /usr/ucblib/64} \
michael@320 30 %{!compat-bsd: \
michael@320 31 %{!YP,*:%{p|pg:-Y P,/usr/lib/libp/64:/lib/64:/usr/lib/64} \
michael@320 32 - %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}}}"
michael@320 33 + %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}} -rpath-link /lib/64:/usr/lib/64}"
michael@320 34
michael@320 35 #undef LINK_ARCH64_SPEC
michael@320 36 #define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE
michael@320 37 @@ -131,7 +131,7 @@
michael@320 38 #endif
michael@320 39
michael@320 40 #define TARGET_LD_EMULATION "%{m64:-m " X86_64_EMULATION "}" \
michael@320 41 - "%{!m64:-m " I386_EMULATION "} "
michael@320 42 + "%{!m64:} "
michael@320 43 #else
michael@320 44 #define TARGET_LD_EMULATION ""
michael@320 45 #endif
michael@320 46 Index: gcc/config/i386/sol2.h
michael@320 47 --- gcc/config/i386/sol2.h.orig 2010-07-14 10:47:54.000000000 +0200
michael@320 48 +++ gcc/config/i386/sol2.h 2010-08-01 23:35:02.000000000 +0200
michael@320 49 @@ -76,6 +76,9 @@
michael@320 50 #undef ASM_QUAD
michael@320 51 #endif
michael@320 52
michael@320 53 +#undef DEFAULT_PCC_STRUCT_RETURN
michael@320 54 +#define DEFAULT_PCC_STRUCT_RETURN 1
michael@320 55 +
michael@320 56 /* The Solaris assembler wants a .local for non-exported aliases. */
michael@320 57 #define ASM_OUTPUT_DEF_FROM_DECLS(FILE, DECL, TARGET) \
michael@320 58 do { \
michael@320 59 Index: gcc/config/sol2.h
michael@320 60 --- gcc/config/sol2.h.orig 2010-04-16 15:33:58.000000000 +0200
michael@320 61 +++ gcc/config/sol2.h 2010-08-01 23:35:02.000000000 +0200
michael@320 62 @@ -176,8 +176,8 @@
michael@320 63 %{b} \
michael@320 64 %{!shared:%{!static:%{rdynamic: " RDYNAMIC_SPEC "}}} \
michael@320 65 %{static:-dn -Bstatic} \
michael@320 66 - %{shared:-G -dy %{!mimpure-text:-z text}} \
michael@320 67 - %{symbolic:-Bsymbolic -G -dy -z text} \
michael@320 68 + %{shared:-G -dy} \
michael@320 69 + %{symbolic:-Bsymbolic -G -dy} \
michael@320 70 %(link_arch) \
michael@320 71 %{Qy:} %{!Qn:-Qy}"
michael@320 72
michael@320 73 Index: gcc/system.h
michael@320 74 --- gcc/system.h.orig 2009-12-14 00:00:53.000000000 +0100
michael@320 75 +++ gcc/system.h 2010-08-01 23:35:02.000000000 +0200
michael@320 76 @@ -398,10 +398,6 @@
michael@320 77 extern char *strstr (const char *, const char *);
michael@320 78 #endif
michael@320 79
michael@320 80 -#ifdef HAVE_MALLOC_H
michael@320 81 -#include <malloc.h>
michael@320 82 -#endif
michael@320 83 -
michael@320 84 #if defined (HAVE_DECL_MALLOC) && !HAVE_DECL_MALLOC
michael@320 85 extern void *malloc (size_t);
michael@320 86 #endif
michael@320 87 Index: libcpp/charset.c
michael@320 88 --- libcpp/charset.c.orig 2010-03-29 22:07:29.000000000 +0200
michael@320 89 +++ libcpp/charset.c 2010-08-01 23:35:02.000000000 +0200
michael@320 90 @@ -75,6 +75,7 @@
michael@320 91 #define iconv_open(x, y) (errno = EINVAL, (iconv_t)-1)
michael@320 92 #define iconv(a,b,c,d,e) (errno = EINVAL, (size_t)-1)
michael@320 93 #define iconv_close(x) (void)0
michael@320 94 +#undef ICONV_CONST
michael@320 95 #define ICONV_CONST
michael@320 96 #endif
michael@320 97
michael@320 98 Index: libcpp/internal.h
michael@320 99 --- libcpp/internal.h.orig 2010-03-29 22:07:29.000000000 +0200
michael@320 100 +++ libcpp/internal.h 2010-08-01 23:35:02.000000000 +0200
michael@320 101 @@ -29,6 +29,7 @@
michael@320 102 #if HAVE_ICONV
michael@320 103 #include <iconv.h>
michael@320 104 #else
michael@320 105 +#undef HAVE_ICONV
michael@320 106 #define HAVE_ICONV 0
michael@320 107 typedef int iconv_t; /* dummy */
michael@320 108 #endif

mercurial