Advertisement
Guest User

Untitled

a guest
Jan 19th, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. diff --git a/PKGBUILD b/PKGBUILD
  2. index 999de0e..3c5f316 100755
  3. --- a/PKGBUILD
  4. +++ b/PKGBUILD
  5. @@ -24,7 +24,8 @@ options=(staticlibs !libtool !emptydirs !strip zipman docs)
  6. source=(https://launchpad.net/gcc-linaro/${_relver}/${_relverdate}/+download/gcc-linaro-${_relverdate}.tar.bz2
  7. http://releases.linaro.org/14.09/components/toolchain/newlib-linaro/newlib-${_newlibver}.tar.bz2
  8. gcc-${_relver}-multilib2.patch
  9. - gcc-${_relver}-no-exceptions.patch)
  10. + gcc-${_relver}-no-exceptions.patch
  11. + gcc-${_relver}-cfns-attributes.patch)
  12. _basedir=gcc-linaro-${_relverdate}
  13.  
  14. build() {
  15. @@ -35,6 +36,7 @@ build() {
  16. cd ${srcdir}/${_basedir}
  17. patch -Np0 -i "${srcdir}/gcc-${_relver}-multilib2.patch"
  18. patch -Np0 -i "${srcdir}/gcc-${_relver}-no-exceptions.patch"
  19. + patch -Np1 -i "${srcdir}/gcc-${_relver}-cfns-attributes.patch"
  20.  
  21. mkdir build
  22. cd build
  23. @@ -80,4 +82,5 @@ package() {
  24. sha256sums=('4fc5c9fb78882857f988bec979947fc2e55a3ea31640b7ace601bcee3c86fd37'
  25. 'ed92e8547246834725a3c5743fa41d3f573e3e5d2e5066d433ac3c29e6676fc8'
  26. '104b9aa652804a56338470983e6975af1d1e5440eb8bddae3a01a966d2b332cf'
  27. - '3cd19aac3d1c4f46377bf6d82a0130686c6677ee5e817a702a34238f6a748dcd')
  28. + '3cd19aac3d1c4f46377bf6d82a0130686c6677ee5e817a702a34238f6a748dcd'
  29. + '9bc036c18d91593dc7cdece388723f38df9a7115d0c7857be35893f42ddda338')
  30. diff --git a/gcc-4.7-cfns-attributes.patch b/gcc-4.7-cfns-attributes.patch
  31. new file mode 100644
  32. index 0000000..81c93c9
  33. --- /dev/null
  34. +++ b/gcc-4.7-cfns-attributes.patch
  35. @@ -0,0 +1,28 @@
  36. +diff --git a/gcc/cp/cfns.gperf b/gcc/cp/cfns.gperf
  37. +index 68acd3d..953262f 100644
  38. +--- a/gcc/cp/cfns.gperf
  39. ++++ b/gcc/cp/cfns.gperf
  40. +@@ -22,6 +22,9 @@ __inline
  41. + static unsigned int hash (const char *, unsigned int);
  42. + #ifdef __GNUC__
  43. + __inline
  44. ++#ifdef __GNUC_STDC_INLINE__
  45. ++__attribute__ ((__gnu_inline__))
  46. ++#endif
  47. + #endif
  48. + const char * libc_name_p (const char *, unsigned int);
  49. + %}
  50. +diff --git a/gcc/cp/cfns.h b/gcc/cp/cfns.h
  51. +index 1c6665d..6d00c0e 100644
  52. +--- a/gcc/cp/cfns.h
  53. ++++ b/gcc/cp/cfns.h
  54. +@@ -53,6 +53,9 @@ __inline
  55. + static unsigned int hash (const char *, unsigned int);
  56. + #ifdef __GNUC__
  57. + __inline
  58. ++#ifdef __GNUC_STDC_INLINE__
  59. ++__attribute__ ((__gnu_inline__))
  60. ++#endif
  61. + #endif
  62. + const char * libc_name_p (const char *, unsigned int);
  63. + /* maximum key range = 391, duplicates = 0 */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement