Date: Thu, 25 Jan 2018 15:00:28 +0000 (UTC) From: "Lev A. Serebryakov" <lev@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r459946 - in head/devel/gcc-msp430-ti-toolchain: . files Message-ID: <201801251500.w0PF0SEa098821@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lev Date: Thu Jan 25 15:00:27 2018 New Revision: 459946 URL: https://svnweb.freebsd.org/changeset/ports/459946 Log: Fix build with clang 6. Added: head/devel/gcc-msp430-ti-toolchain/files/patch-binutils_bfd_elflink.c (contents, props changed) Modified: head/devel/gcc-msp430-ti-toolchain/Makefile Modified: head/devel/gcc-msp430-ti-toolchain/Makefile ============================================================================== --- head/devel/gcc-msp430-ti-toolchain/Makefile Thu Jan 25 14:45:04 2018 (r459945) +++ head/devel/gcc-msp430-ti-toolchain/Makefile Thu Jan 25 15:00:27 2018 (r459946) @@ -2,7 +2,7 @@ PORTNAME= gcc-msp430-ti-toolchain PORTVERSION= ${GCC_VERSION}.${TI_VERSION}.${RELEASE_DATE} -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= devel MASTER_SITES= GCC/releases/gcc-${GCC_REL_VERSION}:gcc \ SOURCEWARE/binutils/releases:binutils \ @@ -45,6 +45,7 @@ USES= bison compiler cpe gmake iconv libtool makeinfo tar:bzip2 USE_CSTD= gnu89 + GNU_CONFIGURE= yes GNU_CONFIGURE_PREFIX= ${PREFIX}/${SUBPREFIX} @@ -66,6 +67,7 @@ CPE_VERSION= ${GCC_REL_VERSION} SUBPREFIX= ${PORTNAME}-${TI_VERSION} +PATCH_WRKSRC= ${WRKDIR} MANPREFIX= ${GNU_CONFIGURE_PREFIX} DOCSDIR= ${GNU_CONFIGURE_PREFIX}/docs PLIST_SUB+= TARGET=${TARGET} GCC_VERSION=${GCC_VERSION} \ Added: head/devel/gcc-msp430-ti-toolchain/files/patch-binutils_bfd_elflink.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/gcc-msp430-ti-toolchain/files/patch-binutils_bfd_elflink.c Thu Jan 25 15:00:27 2018 (r459946) @@ -0,0 +1,20 @@ +--- binutils-2.26/bfd/elflink.c.orig 2018-01-25 17:15:39.513265000 +0300 ++++ binutils-2.26/bfd/elflink.c 2018-01-25 17:16:03.663426000 +0300 +@@ -5058,7 +5058,7 @@ + len = strlen (name); + copy = (char *) bfd_alloc (abfd, len); + if (copy == NULL) +- return (struct elf_link_hash_entry *) 0 - 1; ++ return (struct elf_link_hash_entry *)(intptr_t)-1; + + first = p - name + 1; + memcpy (copy, name, first); +@@ -5156,7 +5156,7 @@ + } + + h = archive_symbol_lookup (abfd, info, symdef->name); +- if (h == (struct elf_link_hash_entry *) 0 - 1) ++ if (h == (struct elf_link_hash_entry *)(intptr_t)-1) + goto error_return; + + if (h == NULL)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801251500.w0PF0SEa098821>