Skip to content

Commit

Permalink
Merge pull request #55 from xantares/master
Browse files Browse the repository at this point in the history
fix gcc5 build
  • Loading branch information
artart78 committed Jul 6, 2015
2 parents ff6f2dd + a23bbeb commit f61857e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions patches/patch-gcc_cp_cfns.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- gcc/cp/cfns.h.orig 2015-02-13 08:27:46.000000000 +0200
+++ 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)
{

1 change: 1 addition & 0 deletions scripts/005-gcc-stage2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
## Enter the source directory and patch the source code.
cd gcc-$GCC_VERSION
patch -p1 -i ../../patches/gcc-$GCC_VERSION-PSP.patch
patch -p0 -i ../../patches/patch-gcc_cp_cfns.h

## Unpack the library source code.
ln -fs ../gmp-$GMP_VERSION gmp
Expand Down

0 comments on commit f61857e

Please sign in to comment.