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.

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

mercurial