Merge pull request #1 from 0x0d/master

Build fix for GCC 5
This commit is contained in:
Яницкий Вадим 2015-10-17 12:43:18 +05:00
commit 11a9b412b3
2 changed files with 23 additions and 0 deletions

View File

@ -62,6 +62,7 @@ unpack_source $(basename $NEWLIB_SRC)
#unpack_source $(basename $INSIGHT_SRC)
# Patch for texinfo5. Adapted from Marcello Pogliani
patch -p1 < ../gcc-texinfo5.patch
patch -p1 < ../fix-gcc5-build.patch
)
# Set the PATH to include the binaries we're going to build.

22
fix-gcc5-build.patch Normal file
View File

@ -0,0 +1,22 @@
--- src/gcc-4.5.2/gcc/cp/cfns.h.orig 2015-02-13 08:27:46.000000000 +0200
+++ src/gcc-4.5.2/gcc/cp/cfns.h 2015-02-13 10:23:53.000000000 +0200
@@ -53,6 +53,9 @@
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 */
@@ -96,7 +99,7 @@
400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
400, 400, 400, 400, 400, 400, 400
};
- register int hval = len;
+ register int hval = (int)len;
switch (hval)
{