Guest User

Untitled

a guest
May 23rd, 2017
508
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. From d3499b11d75f73744414640a3cc8901c6743fd47 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Felix=20Quei=C3=9Fner?= <[email protected]>
  3. Date: Tue, 23 May 2017 12:24:00 +0200
  4. Subject: [PATCH] Fixes GCC not building, adds patch.
  5.  
  6. ---
  7. patches/gcc/4.5.2/gcc-4.5.2.patch | 26 ++++++++++++++++++++++++++
  8. 1 file changed, 26 insertions(+)
  9.  
  10. diff --git a/patches/gcc/4.5.2/gcc-4.5.2.patch b/patches/gcc/4.5.2/gcc-4.5.2.patch
  11. index d7482ab..63ecea0 100644
  12. --- a/patches/gcc/4.5.2/gcc-4.5.2.patch
  13. +++ b/patches/gcc/4.5.2/gcc-4.5.2.patch
  14. @@ -461,3 +461,29 @@ diff -urN ../gcc-4.5.2/libgcc/config.host ../gcc-4.5.2/libgcc/config.host.new
  15. i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu*)
  16. extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
  17. tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
  18. +diff --git ../gcc-4.5.2/gcc/cp/cfns.gperf ../gcc-4.5.2/gcc/cp/cfns.gperf
  19. +--- ../gcc-4.5.2/gcc/cp/cfns.gperf
  20. ++++ ./gcc/cp/cfns.gperf
  21. +@@ -22,6 +22,9 @@ __inline
  22. + static unsigned int hash (const char *, unsigned int);
  23. + #ifdef __GNUC__
  24. + __inline
  25. ++#ifdef __GNUC_STDC_INLINE__
  26. ++__attribute__ ((__gnu_inline__))
  27. ++#endif
  28. + #endif
  29. + const char * libc_name_p (const char *, unsigned int);
  30. + %}
  31. +diff --git ../gcc-4.5.2/gcc/cp/cfns.h ../gcc-4.5.2/gcc/cp/cfns.h
  32. +--- ../gcc-4.5.2/gcc/cp/cfns.h
  33. ++++ ./gcc/cp/cfns.h
  34. +@@ -53,6 +53,9 @@ __inline
  35. + static unsigned int hash (const char *, unsigned int);
  36. + #ifdef __GNUC__
  37. + __inline
  38. ++#ifdef __GNUC_STDC_INLINE__
  39. ++__attribute__ ((__gnu_inline__))
  40. ++#endif
  41. + #endif
  42. + const char * libc_name_p (const char *, unsigned int);
  43. + /* maximum key range = 391, duplicates = 0 */
  44. --
  45. 2.13.0
Advertisement
Add Comment
Please, Sign In to add comment