Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From d3499b11d75f73744414640a3cc8901c6743fd47 Mon Sep 17 00:00:00 2001
- From: =?UTF-8?q?Felix=20Quei=C3=9Fner?= <[email protected]>
- Date: Tue, 23 May 2017 12:24:00 +0200
- Subject: [PATCH] Fixes GCC not building, adds patch.
- ---
- patches/gcc/4.5.2/gcc-4.5.2.patch | 26 ++++++++++++++++++++++++++
- 1 file changed, 26 insertions(+)
- diff --git a/patches/gcc/4.5.2/gcc-4.5.2.patch b/patches/gcc/4.5.2/gcc-4.5.2.patch
- index d7482ab..63ecea0 100644
- --- a/patches/gcc/4.5.2/gcc-4.5.2.patch
- +++ b/patches/gcc/4.5.2/gcc-4.5.2.patch
- @@ -461,3 +461,29 @@ diff -urN ../gcc-4.5.2/libgcc/config.host ../gcc-4.5.2/libgcc/config.host.new
- i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu*)
- extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
- tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
- +diff --git ../gcc-4.5.2/gcc/cp/cfns.gperf ../gcc-4.5.2/gcc/cp/cfns.gperf
- +--- ../gcc-4.5.2/gcc/cp/cfns.gperf
- ++++ ./gcc/cp/cfns.gperf
- +@@ -22,6 +22,9 @@ __inline
- + static unsigned int hash (const char *, unsigned int);
- + #ifdef __GNUC__
- + __inline
- ++#ifdef __GNUC_STDC_INLINE__
- ++__attribute__ ((__gnu_inline__))
- ++#endif
- + #endif
- + const char * libc_name_p (const char *, unsigned int);
- + %}
- +diff --git ../gcc-4.5.2/gcc/cp/cfns.h ../gcc-4.5.2/gcc/cp/cfns.h
- +--- ../gcc-4.5.2/gcc/cp/cfns.h
- ++++ ./gcc/cp/cfns.h
- +@@ -53,6 +53,9 @@ __inline
- + static unsigned int hash (const char *, unsigned int);
- + #ifdef __GNUC__
- + __inline
- ++#ifdef __GNUC_STDC_INLINE__
- ++__attribute__ ((__gnu_inline__))
- ++#endif
- + #endif
- + const char * libc_name_p (const char *, unsigned int);
- + /* maximum key range = 391, duplicates = 0 */
- --
- 2.13.0
Advertisement
Add Comment
Please, Sign In to add comment