Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix gcc5 build #55

Merged
merged 1 commit into from Jul 6, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions patches/patch-gcc_cp_cfns.h
@@ -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
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