head	1.41;
access;
symbols
	pkgsrc-2021Q1:1.40.0.4
	pkgsrc-2021Q1-base:1.40
	pkgsrc-2020Q4:1.40.0.2
	pkgsrc-2020Q4-base:1.40
	pkgsrc-2020Q3:1.37.0.2
	pkgsrc-2020Q3-base:1.37
	pkgsrc-2020Q2:1.36.0.2
	pkgsrc-2020Q2-base:1.36
	pkgsrc-2020Q1:1.34.0.2
	pkgsrc-2020Q1-base:1.34
	pkgsrc-2019Q4:1.33.0.4
	pkgsrc-2019Q4-base:1.33
	pkgsrc-2019Q3:1.32.0.2
	pkgsrc-2019Q3-base:1.32
	pkgsrc-2019Q2:1.31.0.6
	pkgsrc-2019Q2-base:1.31
	pkgsrc-2019Q1:1.31.0.4
	pkgsrc-2019Q1-base:1.31
	pkgsrc-2018Q4:1.31.0.2
	pkgsrc-2018Q4-base:1.31
	pkgsrc-2018Q3:1.30.0.2
	pkgsrc-2018Q3-base:1.30
	pkgsrc-2018Q2:1.27.0.4
	pkgsrc-2018Q2-base:1.27
	pkgsrc-2018Q1:1.27.0.2
	pkgsrc-2018Q1-base:1.27
	pkgsrc-2017Q4:1.26.0.2
	pkgsrc-2017Q4-base:1.26
	pkgsrc-2017Q3:1.23.0.4
	pkgsrc-2017Q3-base:1.23
	pkgsrc-2017Q2:1.19.0.2
	pkgsrc-2017Q2-base:1.19
	pkgsrc-2017Q1:1.15.0.2
	pkgsrc-2017Q1-base:1.15
	pkgsrc-2016Q4:1.14.0.4
	pkgsrc-2016Q4-base:1.14
	pkgsrc-2016Q3:1.14.0.2
	pkgsrc-2016Q3-base:1.14
	pkgsrc-2016Q2:1.9.0.4
	pkgsrc-2016Q2-base:1.9
	pkgsrc-2016Q1:1.9.0.2
	pkgsrc-2016Q1-base:1.9
	pkgsrc-2015Q4:1.7.0.2
	pkgsrc-2015Q4-base:1.7
	pkgsrc-2015Q3:1.4.0.2
	pkgsrc-2015Q3-base:1.4;
locks; strict;
comment	@# @;


1.41
date	2021.04.06.12.15.23;	author nia;	state dead;
branches;
next	1.40;
commitid	WXXWEdIOpFWieeOC;

1.40
date	2020.12.04.20.45.26;	author nia;	state Exp;
branches;
next	1.39;
commitid	FPz71MqRX3WN0tyC;

1.39
date	2020.10.23.00.45.48;	author gutteridge;	state Exp;
branches;
next	1.38;
commitid	IP5KF1amFQJLIXsC;

1.38
date	2020.10.03.14.04.18;	author schmonz;	state Exp;
branches;
next	1.37;
commitid	97cfXcSXMpYgNsqC;

1.37
date	2020.08.31.18.09.48;	author wiz;	state Exp;
branches;
next	1.36;
commitid	7zxRbfOkDOoxbfmC;

1.36
date	2020.05.02.07.45.05;	author rillig;	state Exp;
branches;
next	1.35;
commitid	cfjcMP7Msnv0ED6C;

1.35
date	2020.04.28.16.02.20;	author rillig;	state Exp;
branches;
next	1.34;
commitid	xFp2tkwk5w0ywa6C;

1.34
date	2020.01.18.23.32.43;	author rillig;	state Exp;
branches;
next	1.33;
commitid	shGUwZfkr7sleeTB;

1.33
date	2019.11.03.19.03.59;	author rillig;	state Exp;
branches;
next	1.32;
commitid	puQpdVbj8afCdrJB;

1.32
date	2019.08.11.13.21.20;	author wiz;	state Exp;
branches;
next	1.31;
commitid	Ifet9Pg6Qt99ZByB;

1.31
date	2018.11.28.16.08.41;	author abs;	state Exp;
branches;
next	1.30;
commitid	f8boJzjCzrN1bJ1B;

1.30
date	2018.08.22.09.45.19;	author wiz;	state Exp;
branches;
next	1.29;
commitid	YLub8g3ofvFGb6PA;

1.29
date	2018.07.18.22.42.57;	author maya;	state Exp;
branches;
next	1.28;
commitid	JNZppcbe3pQ5DFKA;

1.28
date	2018.07.18.00.06.20;	author joerg;	state Exp;
branches;
next	1.27;
commitid	9fkLzQuPlqFC7yKA;

1.27
date	2018.01.28.16.24.14;	author wiz;	state Exp;
branches
	1.27.4.1;
next	1.26;
commitid	LOrJXggMMAXd2FoA;

1.26
date	2017.12.13.10.54.53;	author jperkin;	state Exp;
branches;
next	1.25;
commitid	iabYkC3K5hPJGIiA;

1.25
date	2017.11.13.19.36.26;	author maya;	state Exp;
branches;
next	1.24;
commitid	GRkABw0aszBGxUeA;

1.24
date	2017.10.20.23.49.47;	author maya;	state Exp;
branches;
next	1.23;
commitid	Ib6yt51jaIlXHQbA;

1.23
date	2017.08.25.16.33.53;	author he;	state Exp;
branches;
next	1.22;
commitid	5ifYoPjXOYhW3C4A;

1.22
date	2017.07.29.00.42.35;	author maya;	state Exp;
branches;
next	1.21;
commitid	cVPl8bEhHfuKH31A;

1.21
date	2017.07.09.05.30.41;	author maya;	state Exp;
branches;
next	1.20;
commitid	4oMpAZoAcMT5WvYz;

1.20
date	2017.07.07.14.52.30;	author jperkin;	state Exp;
branches;
next	1.19;
commitid	rI4SyN6aY3xP6jYz;

1.19
date	2017.06.22.21.44.49;	author maya;	state Exp;
branches;
next	1.18;
commitid	GGmvaEaslzsTRpWz;

1.18
date	2017.06.21.21.16.36;	author maya;	state Exp;
branches;
next	1.17;
commitid	4ztbVJ2e0shrJhWz;

1.17
date	2017.06.08.09.52.48;	author maya;	state Exp;
branches;
next	1.16;
commitid	mfVsf31la6wVnyUz;

1.16
date	2017.05.28.01.36.11;	author maya;	state Exp;
branches;
next	1.15;
commitid	j51hKQI1ZqBIZ5Tz;

1.15
date	2017.01.25.15.17.41;	author adam;	state Exp;
branches;
next	1.14;
commitid	rYVfGmaLoAsSumDz;

1.14
date	2016.09.08.09.55.32;	author jperkin;	state Exp;
branches;
next	1.13;
commitid	wZTGPJzBFBDlbtlz;

1.13
date	2016.09.06.05.08.48;	author maya;	state Exp;
branches;
next	1.12;
commitid	4YgsbwIZHVZ9Eblz;

1.12
date	2016.07.09.06.38.25;	author wiz;	state Exp;
branches;
next	1.11;
commitid	dlqnocGpOoXV2Cdz;

1.11
date	2016.07.06.07.21.41;	author wiz;	state Exp;
branches;
next	1.10;
commitid	5Tno7JjIuye2oedz;

1.10
date	2016.07.05.18.55.08;	author ryoon;	state Exp;
branches;
next	1.9;
commitid	0k8shx2VpGQYfadz;

1.9
date	2016.02.25.14.42.56;	author jperkin;	state Exp;
branches;
next	1.8;
commitid	JSc9A5HC0VTu4jWy;

1.8
date	2016.02.06.22.19.55;	author ryoon;	state Exp;
branches;
next	1.7;
commitid	pX3vmyy5Se91dUTy;

1.7
date	2015.12.11.12.31.03;	author ryoon;	state Exp;
branches;
next	1.6;
commitid	TR0aWOIRimcIMwMy;

1.6
date	2015.11.17.10.19.40;	author wiz;	state Exp;
branches;
next	1.5;
commitid	O16X7silRKRrPqJy;

1.5
date	2015.10.14.20.17.39;	author ryoon;	state Exp;
branches;
next	1.4;
commitid	6NEgGn4lrOFqe7Fy;

1.4
date	2015.08.25.12.23.13;	author sevan;	state Exp;
branches;
next	1.3;
commitid	yjP2PXCDhsigcEyy;

1.3
date	2015.08.22.16.38.10;	author bsiegert;	state Exp;
branches;
next	1.2;
commitid	EbwuDkvCxAhfIhyy;

1.2
date	2015.07.25.03.46.02;	author ryoon;	state Exp;
branches;
next	1.1;
commitid	FfTCghrungpFlCuy;

1.1
date	2015.07.16.12.03.36;	author ryoon;	state Exp;
branches;
next	;
commitid	dSn6SllG8W8kovty;

1.27.4.1
date	2018.07.20.12.06.08;	author bsiegert;	state Exp;
branches;
next	;
commitid	NtTSxML46iM03SKA;


desc
@@


1.41
log
@remove gcc5, gcc5-libs

these were disabled in the pkgsrc infrastructure some time ago because
they cannot be built cleanly with older compilers while gcc6 can.

this all seems to be separate from the ada bits in gcc-5-aux which may
still be useful.
@
text
@# $NetBSD: Makefile,v 1.40 2020/12/04 20:45:26 nia Exp $

GCC_PKGNAME=		gcc5
PKGREVISION=		7
.include		"version.mk"

DISTNAME=	gcc-${GCC5_DIST_VERSION}
PKGNAME=	${GCC_PKGNAME}-${GCC5_DIST_VERSION}
## When bumping the PKGREVISION of this package the PKGREVISION of
## lang/gcc5-libs needs to be bumped to be at least 1 more than the
## PKGREVISION of this package!
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_GNU:=gcc/gcc-${GCC5_DIST_VERSION}/}
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://gcc.gnu.org/
COMMENT=	The GNU Compiler Collection (GCC) - 5 Release Series
LICENSE=	gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3

DISTFILES=		${DEFAULT_DISTFILES}
EXTRACT_ONLY=		${DEFAULT_DISTFILES}

NOT_FOR_PLATFORM=	Interix-*-*

USE_LANGUAGES=		c99 c++03
USE_TOOLS+=		gmake makeinfo sed:run tar:build
USE_TOOLS.NetBSD+=	gsed

# These are not used during the build.
CHECK_PORTABILITY_SKIP+=	contrib/*

GNU_CONFIGURE=		yes
GNU_CONFIGURE_STRICT=	no # has sub-configures
## Build outside ${WRKSRC}
OBJDIR=			../build
CONFIGURE_DIRS=		${OBJDIR}
CONFIGURE_SCRIPT=	../${DISTNAME}/configure
GCC_SUBPREFIX=		${GCC_PKGNAME}
GCC_PREFIX=		${PREFIX}/${GCC_SUBPREFIX}
GNU_CONFIGURE_PREFIX=	${GCC_PREFIX}
INFO_FILES=		yes
CONFIGURE_ARGS+=	--disable-libstdcxx-pch
GCC_TARGET_MACHINE=	${MACHINE_GNU_PLATFORM}

UNLIMIT_RESOURCES+=	datasize
UNLIMIT_RESOURCES+=	stacksize

SUBST_CLASSES+=		vars
SUBST_MESSAGE.vars=	Setting target machine name path in ${SUBST_FILES.vars}
SUBST_STAGE.vars=	pre-configure
SUBST_FILES.vars=	gcc/Makefile.in
SUBST_VARS.vars=	GCC_TARGET_MACHINE

.include "../../mk/bsd.prefs.mk"

LANGS=			c

# In some cases LINKER_RPATH_FLAG needs a trailing space.
LINKER_RPATH_FLAG:=	${LINKER_RPATH_FLAG:S/-rpath/& /}

## The Library rpath to use in end programs.
LDFLAGS_FOR_TARGET=	${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*}

# The "-static-libstdc++ -static-libgcc" flags are normally added to the
# boot-ldflags by configure but because we are supply the boot-ldflags
# we mash supply them.
BOOT_LDFLAGS=		-static-libstdc++ -static-libgcc ${LDFLAGS_FOR_TARGET}
# Needed on Darwin when LDFLAGS point to a SDK
BOOT_LDFLAGS+=		${LDFLAGS:M-Wl,-syslibroot*}
# GCC does not understand this option; remove it, or stage build will fail
BUILDLINK_TRANSFORM+=	rm:-stdlib=libc++

# Disable fixincludes on SmartOS, header changes result in broken includes
# being generated, see https://github.com/joyent/pkgsrc-legacy/issues/270
.if ${OS_VARIANT} == "SmartOS"
SUBST_CLASSES+=		fixinc
SUBST_STAGE.fixinc=	pre-configure
SUBST_FILES.fixinc=	gcc/Makefile.in
SUBST_SED.fixinc=	-e "s,\./fixinc.sh,-c true,"
.endif

.include "options.mk"

## For graphite support.
.if !empty(PKG_OPTIONS:Mgcc-graphite)

post-extract:
	${TAR} -jxf ${DISTDIR}/${ISL14}.tar.bz2 -C ${WRKSRC}
	${MV} ${WRKSRC}/${ISL14} ${WRKSRC}/isl
.endif

## For target librarys and libjava programs.
CONFIGURE_ENV+=		LDFLAGS_FOR_TARGET=${LDFLAGS_FOR_TARGET:Q}

CONFIGURE_ARGS+=	--enable-languages=${LANGS:Q}
CONFIGURE_ARGS+=	--enable-shared
CONFIGURE_ARGS+=	--enable-long-long
CONFIGURE_ARGS+=	--with-local-prefix=${GCC_PREFIX:Q}
.if !empty(MACHINE_PLATFORM:MNetBSD-*-*)
# native SSP conflicts with gcc's libssp
CONFIGURE_ARGS+=	--disable-libssp
# Match base libstdc++ major
SUBST_CLASSES+=		libstdc
SUBST_STAGE.libstdc=	pre-configure
SUBST_FILES.libstdc=	libstdc++-v3/configure
SUBST_MESSAGE.libstdc=	Bumping libstdc++ major to 7
SUBST_SED.libstdc=	-e 's,libtool_VERSION=6:,libtool_VERSION=7:,g'
.else
CONFIGURE_ARGS+=	--enable-libssp
.endif
CONFIGURE_ARGS+=	--enable-threads=posix
CONFIGURE_ARGS+=	--with-boot-ldflags=${BOOT_LDFLAGS:Q}

# multilib on Darwin requires fat-binaries
CONFIGURE_ARGS.Darwin+=	--disable-multilib
.if !empty(OSX_SDK_PATH)
CONFIGURE_ARGS.Darwin+=	--with-sysroot=${OSX_SDK_PATH}
.endif
CONFIGURE_ARGS.NetBSD+=	--with-gnu-ld --with-ld=/usr/bin/ld
CONFIGURE_ARGS.NetBSD+=	--with-gnu-as --with-as=/usr/bin/as
MAKE_ENV.NetBSD+=	ac_cv_func_clock_gettime=yes
MAKE_ENV.NetBSD+=	ac_cv_func_gethostbyname_r=no
MAKE_ENV.NetBSD+=	ac_cv_func_freelocale=no
MAKE_ENV.NetBSD+=	ac_cv_func_newlocale=no
MAKE_ENV.NetBSD+=	ac_cv_func_uselocale=no
MAKE_ENV.SunOS+=	ac_cv_func_mkostemp=no

CONFIGURE_ARGS.DragonFly+=	--disable-bootstrap

.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || !empty(MACHINE_PLATFORM:MLinux-*-i386)
CONFIGURE_ARGS+=	--with-arch=i486 --with-tune=i486
.endif

.if !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64) || !empty(MACHINE_PLATFORM:MLinux-*-x86_64)
CONFIGURE_ARGS+=	--with-arch=nocona --with-tune=nocona --with-fpmath=sse
.endif

.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
CONFIGURE_ARGS+=	--with-dwarf2
.endif

# ${WRKSRC}/fixincludes/ looks for sed and compiles the path to sed into
# a binary so we need to make sure we give it the installed sed and not
# the tool wrapped one.
MAKE_ENV+=		ac_cv_path_SED=${TOOLS_SED}
MAKE_ENV+=		lt_cv_path_SED=${TOOLS_SED}

# Determine whether to use binutils
.if ${OPSYS} == "SunOS"
.  if exists(/usr/sfw/bin/gobjdump)
CONFIGURE_ENV+=		OBJDUMP=/usr/sfw/bin/gobjdump
.  endif
.  if exists(/usr/bin/ld)
CONFIGURE_ARGS+=	--without-gnu-ld --with-ld=/usr/bin/ld
.  else
CONFIGURE_ARGS+=	--without-gnu-ld --with-ld=/usr/ccs/bin/ld
.  endif
.  if exists(/usr/sfw/bin/gas)
CONFIGURE_ARGS+=	--with-gnu-as --with-as=/usr/sfw/bin/gas
.  elif exists(/usr/ccs/bin/as)
CONFIGURE_ARGS+=	--without-gnu-as --with-as=/usr/ccs/bin/as
.  else
BUILDLINK_DEPMETHOD.binutils=	full
.    include "../../devel/binutils/buildlink3.mk"
CONFIGURE_ARGS+=	--with-gnu-as --with-as=${PREFIX}/bin/gas
.  endif
.endif

.if ${OS_VARIANT} == "SmartOS"
SUBST_CLASSES+=		ccs
SUBST_STAGE.ccs=	pre-configure
SUBST_FILES.ccs=	contrib/make_sunver.pl
SUBST_SED.ccs=		-e 's,/usr/ccs/bin,/usr/bin,g'
.endif

pre-configure:
	${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}

TEST_TARGET=	-k check || ${TRUE}
pre-test:
	${RUN} 							\
	if runtest --version >/dev/null 2>/dev/null ; then	\
		: ;						\
	else							\
	  ${ECHO} "ERROR: Please install devel/dejagnu in order to run the test suite." ; \
	  exit 1 ;						\
	fi
post-test:
	${RUN} cd ${WRKSRC} && cd ${OBJDIR} &&		\
	${SHELL} ${WRKSRC}/contrib/test_summary >${WRKDIR}/test_summary.log
	${INFO_MSG} "Test summary are available in ${WRKDIR}/test_summary.log"

post-install:
	${TEST} -f ${DESTDIR}${GCC_PREFIX}/bin/cc || \
		( cd ${DESTDIR}${GCC_PREFIX}/bin ; ${LN} -f gcc cc )
.if !empty(PKG_OPTIONS:Mgcc-java)
	${RM} -f ${DESTDIR}${JAVA_HOME}/bin/javadoc
	${RM} -f ${DESTDIR}${JAVA_HOME}/jre/lib/${JAVA_ARCH}/libjawt.so
.endif
.if !empty(MACHINE_PLATFORM:MSunOS-*-*86*) && ${OS_VERSION} != "5.11"
	${SH} files/values.c ${DESTDIR}${GCC_PREFIX}/bin/gcc -m32 || ${TRUE}
	${SH} files/values.c ${DESTDIR}${GCC_PREFIX}/bin/gcc -m64 || ${TRUE}
.endif

GENERATE_PLIST+= \
	cd ${DESTDIR}${PREFIX} && 					\
	${FIND} ${GCC_SUBPREFIX} \( -type f -o -type l \) -print | ${SORT} ;

.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.40
log
@Revbump packages with a runtime Python dep but no version prefix.

For the Python 3.8 default switch.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.39 2020/10/23 00:45:48 gutteridge Exp $
@


1.39
log
@Fix grammar in a comment in gcc* Makefiles
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2020/10/03 14:04:18 schmonz Exp $
d4 1
a4 1
PKGREVISION=		6
@


1.38
log
@On CentOS 7 with the system gcc 4.8.5, we get a bunch of these:

error: 'for' loop initial declarations are only allowed in C99 mode

Bump USE_LANGUAGES c to c99.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2020/08/31 18:09:48 wiz Exp $
d10 1
a10 1
## lang/gcc5-libs needs to be bump to be at least 1 more than the
@


1.37
log
@*: bump PKGREVISION for perl-5.32.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2020/05/02 07:45:05 rillig Exp $
d26 1
a26 1
USE_LANGUAGES=		c c++03
@


1.36
log
@lang/gcc5: skip check for unknown configure options
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2020/04/28 16:02:20 rillig Exp $
d4 1
a4 1
PKGREVISION=		5
@


1.35
log
@lang/gcc5: skip portability check for files in contrib/
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2020/01/18 23:32:43 rillig Exp $
d34 1
@


1.34
log
@all: migrate several HOMEPAGEs to https

pkglint --only "https instead of http" -r -F

With manual adjustments afterwards since pkglint 19.4.4 fixed a few
indentations in unrelated lines.

This mainly affects projects hosted at SourceForce, as well as
freedesktop.org, CTAN and GNU.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2019/11/03 19:03:59 rillig Exp $
d30 3
@


1.33
log
@lang: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2019/08/11 13:21:20 wiz Exp $
d17 1
a17 1
HOMEPAGE=	http://gcc.gnu.org/
@


1.32
log
@Bump PKGREVISIONs for perl 5.30.0
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2018/11/28 16:08:41 abs Exp $
d26 1
a26 1
USE_LANGUAGES=	c c++03
@


1.31
log
@Set GCC_TARGET_MACHINE so RPATH set correctly to pickup libs from gcc5-libs

Bump PKGREVISION
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2018/08/22 09:45:19 wiz Exp $
d4 1
a4 1
PKGREVISION=		4
@


1.30
log
@Recursive bump for perl5-5.28.0
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2018/07/18 22:42:57 maya Exp $
d4 1
a4 1
PKGREVISION=		3
d40 1
@


1.29
log
@gcc5: don't try to make references to stack_chk_fail_local on netbsd/sun
sun was added as joyent is patching for the same.

this code is only reached if compiling for i386 (or some variation of ppc)
netbsd's stack_chk_fail_local won't work for this.

PR pkg/53436
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2018/07/18 00:06:20 joerg Exp $
d4 1
a4 1
PKGREVISION=		2
@


1.28
log
@Mark packages that require C++03 (or the GNU variants) if they fail with
C++14 default language.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2018/01/28 16:24:14 wiz Exp $
d4 1
a4 1
PKGREVISION=		1
@


1.27
log
@recursive bump after mpfr shlib major bump
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2017/12/13 10:54:53 jperkin Exp $
d26 1
a26 1
USE_LANGUAGES=	c c++
@


1.27.4.1
log
@Pullup ticket #5795 - requested by maya
lang/gcc48: i386 build fix
lang/gcc5: i386 build fix
lang/gcc6: i386 build fix
lang/gcc7: i386 build fix
lang/gcc8: i386 build fix

Revisions pulled up:
- lang/gcc48-libs/Makefile                                      1.29
- lang/gcc48/Makefile                                           1.41
- lang/gcc48/distinfo                                           1.38
- lang/gcc48/patches/patch-gcc_targhooks.c                      1.1
- lang/gcc5-libs/Makefile                                       1.13
- lang/gcc5/Makefile                                            1.29
- lang/gcc5/distinfo                                            1.19
- lang/gcc5/patches/patch-gcc_targhooks.c                       1.1
- lang/gcc6-libs/Makefile                                       1.7
- lang/gcc6/Makefile                                            1.14
- lang/gcc6/distinfo                                            1.11
- lang/gcc6/patches/patch-gcc_targhooks.c                       1.1
- lang/gcc7-libs/Makefile                                       1.3
- lang/gcc7/Makefile                                            1.19
- lang/gcc7/distinfo                                            1.11
- lang/gcc7/patches/patch-gcc_targhooks.c                       1.1
- lang/gcc8/Makefile                                            1.2
- lang/gcc8/distinfo                                            1.2
- lang/gcc8/patches/patch-gcc_targhooks.c                       1.1

---
   Module Name:    pkgsrc
   Committed By:   maya
   Date:           Wed Jul 18 22:42:57 UTC 2018

   Modified Files:
           pkgsrc/lang/gcc5: Makefile distinfo
           pkgsrc/lang/gcc5-libs: Makefile
   Added Files:
           pkgsrc/lang/gcc5/patches: patch-gcc_targhooks.c

   Log Message:
   gcc5: don't try to make references to stack_chk_fail_local on netbsd/sun
   sun was added as joyent is patching for the same.

   this code is only reached if compiling for i386 (or some variation of ppc)
   netbsd's stack_chk_fail_local won't work for this.

   PR pkg/53436

---
   Module Name:    pkgsrc
   Committed By:   maya
   Date:           Wed Jul 18 22:35:44 UTC 2018

   Modified Files:
           pkgsrc/lang/gcc6: Makefile distinfo
           pkgsrc/lang/gcc6-libs: Makefile
   Added Files:
           pkgsrc/lang/gcc6/patches: patch-gcc_targhooks.c

   Log Message:
   gcc6: don't try to make references to stack_chk_fail_local on netbsd/sun
   sun was added as joyent is patching for the same.

   this code is only reached if compiling for i386 (or some variation of ppc)
   netbsd's stack_chk_fail_local won't work for this.

   PR pkg/53436.

---
   Module Name:    pkgsrc
   Committed By:   maya
   Date:           Wed Jul 18 22:55:08 UTC 2018

   Modified Files:
           pkgsrc/lang/gcc7: Makefile distinfo
           pkgsrc/lang/gcc7-libs: Makefile
   Added Files:
           pkgsrc/lang/gcc7/patches: patch-gcc_targhooks.c

   Log Message:
   gcc7: don't try to make references to stack_chk_fail_local on netbsd/sun
   sun was added as joyent is patching for the same.

   this code is only reached if compiling for i386 (or some variation of ppc)
   netbsd's stack_chk_fail_local won't work for this.

   PR pkg/53436.

---
   Module Name:    pkgsrc
   Committed By:   maya
   Date:           Wed Jul 18 22:56:23 UTC 2018

   Modified Files:
           pkgsrc/lang/gcc8: Makefile distinfo
   Added Files:
           pkgsrc/lang/gcc8/patches: patch-gcc_targhooks.c

   Log Message:
   gcc8: don't try to make references to stack_chk_fail_local on netbsd/sun
   sun was added as joyent is patching for the same.

   this code is only reached if compiling for i386 (or some variation of ppc)
   netbsd's stack_chk_fail_local won't work for this.

   PR pkg/53436.

---
   Module Name:	pkgsrc
   Committed By:	maya
   Date:		Wed Jul 18 23:15:42 UTC 2018

   Modified Files:
   	pkgsrc/lang/gcc48: Makefile distinfo
   	pkgsrc/lang/gcc48-libs: Makefile
   Added Files:
   	pkgsrc/lang/gcc48/patches: patch-gcc_targhooks.c

   Log Message:
   gcc48: don't try to make references to stack_chk_fail_local on netbsd/sun
   sun was added as joyent is patching for the same.

   this code is only reached if compiling for i386 (or some variation of ppc)
   netbsd's stack_chk_fail_local won't work for this.

   bump gcc48-libs PKGREVISION above gcc48

   PR pkg/53436.
@
text
@d1 1
a1 1
# $NetBSD$
d4 1
a4 1
PKGREVISION=		2
@


1.26
log
@gcc{5,6,7}: Disable fixincludes on SmartOS like gcc49.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2017/11/13 19:36:26 maya Exp $
d4 1
@


1.25
log
@reset maintainer
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2017/10/20 23:49:47 maya Exp $
d68 9
@


1.24
log
@gcc5: update to 5.5.0

Changes:
IA-32/x86-64
    Support for the deprecated pcommit instruction has been removed.
see: https://software.intel.com/en-us/blogs/2016/09/12/deprecate-pcommit-instruction

Incomplete list of bug fixes:
https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=5.5
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2017/08/25 16:33:53 he Exp $
d15 1
a15 1
MAINTAINER=	maya@@NetBSD.org
@


1.23
log
@Add fixes for powerpc and alpha on NetBSD: ensure we have the
correct order of the include files, and use this also for i386 and
amd64 as well.  For alpha, move the Linux-specific settings into the
alpha/linux.h file.
Verified that this package now builds on powerpc.
This is largely the patches posted by maya@@ on Jul 23, I just mirrored
the changes to include order to NetBSD/powerpc as well.  Thanks!
Bump PKGREVISION, bump to gcc5-libs to follow shortly.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2017/07/29 00:42:35 maya Exp $
a3 1
PKGREVISION=		6
d13 1
a13 1
EXTRACT_SUFX=	.tar.bz2
@


1.22
log
@gcc5: Incorrect codegen from rdseed intrinsic use (CVE-2017-11671)

We should not expand call arguments in between flags reg setting and
flags reg using instructions, as it may expand with flags reg
clobbering insn (ADD in this case).

Attached patch moves expansion out of the link. Also, change
zero-extension to non-flags reg clobbering sequence in case we perform
zero-extension with and.

2017-03-25  Uros Bizjak
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2017/07/09 05:30:41 maya Exp $
d4 1
a4 1
PKGREVISION=		5
@


1.21
log
@gcc{48,49,5,7}: on netbsd only, bump libstdc++ major to 7.
bump pkgrevision.

while here, synchronize libssp comment to a clearer one.

bump gcc*-lib revision to be one higher.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2017/07/07 14:52:30 jperkin Exp $
d4 1
a4 1
PKGREVISION=		4
@


1.20
log
@Explicitly disable mkostemp on SunOS.  It was shipped as part of libc for
a while without the corresponding entry in stdlib.h, thus falling foul of
-Werror=implicit-function-declaration checks.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2017/06/22 21:44:49 maya Exp $
d4 1
a4 1
PKGREVISION=		3
d87 1
a87 1
# on NetBSD, use the native SSP code in libc
d89 6
@


1.19
log
@Restrict gcc gsed usage to NetBSD
(NetBSD/mips64 progress further with gsed)

Adding gsed as a tool creates circular dependencies if pkgsrc gcc is used
as the bootstrap compiler.

Pointed out by jperkin, sorry.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2017/06/21 21:16:36 maya Exp $
d107 1
@


1.18
log
@Use gsed when building GCC.

This is a somewhat blind commit. I've long had issues on various platforms
with libgcc getting misconfigured (on netbsd/mips,arm,powerpc), for example
build failures see:
http://mail-index.netbsd.org/port-mips/2017/06/21/msg000832.html

testing GCC 7.1 with netbsd/mips64el I got a lot further using it, but
still didn't complete the build. It took hours to reach this failure,
so I'd rather blindly commit the same change in the hopes it might help
other architectures.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2017/06/08 09:52:48 maya Exp $
d27 2
a28 1
USE_TOOLS+=		gmake makeinfo gsed tar:build
@


1.17
log
@Take maintainership of all (recent-ish) GCC packages

I have gone into the depths of GCC and came back alive, so feel free
to ask me about it.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2017/05/28 01:36:11 maya Exp $
d27 1
a27 1
USE_TOOLS+=		gmake makeinfo sed:run tar:build
@


1.16
log
@gcc5: remove wip package leftover. fix typo in patch.
from Kai-Uwe Eckhardt

on netbsd, always link against libgcc.

bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2017/01/25 15:17:41 adam Exp $
d16 1
a16 1
MAINTAINER=	ryoon@@NetBSD.org
@


1.15
log
@Fix building on macOS: disable multilib (it requires fat-binaries); now builds without Command Line Tools.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2016/09/08 09:55:32 jperkin Exp $
d4 1
a4 1
PKGREVISION=		2
@


1.14
log
@Fix path to elfdump on SmartOS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2016/09/06 05:08:48 maya Exp $
d94 5
@


1.13
log
@gcc5: netbsd-only: unconditionally disable libssp, use a saner specfile.

because we unconditionally disable libssp, we don't need the workaround
for ssp.h not found, so we can remove that part of that makefile.

bump gcc5 PKGREVISION
bump gcc5-libs PKGREVISION further than gcc5.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2016/07/09 06:38:25 wiz Exp $
d143 7
@


1.12
log
@Bump PKGREVISION for perl-5.24.0 for everything mentioning perl.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2016/07/06 07:21:41 wiz Exp $
d4 1
a4 1
PKGREVISION=		1
a67 8
# Avoid ssp.h not found error.
.if !empty(MACHINE_PLATFORM:MNetBSD-*-*)
SUBST_CLASSES+=		fixinc
SUBST_STAGE.fixinc=	pre-configure
SUBST_FILES.fixinc=	gcc/Makefile.in
SUBST_SED.fixinc=	-e "s,\./fixinc.sh,-c true,"
.endif

d85 2
a86 2
.if !empty(MACHINE_PLATFORM:MNetBSD-*-*) && ${PKGSRC_USE_SSP:Uno} != "no"
# on NetBSD with stack protector, use the native SSP code in libc
@


1.11
log
@Restore PKGSRC_USE_SSP test to the version before the update to 5.4.0,
so it works again (at least for me; if it doesn't for you, please
let me know).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2016/07/05 18:55:08 ryoon Exp $
d4 1
@


1.10
log
@Update gcc5 to 5.4.0 and gcc5-libs to 5.4.0nb1

Changelog:
* Many bugs are fixed
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2016/02/25 14:42:56 jperkin Exp $
d92 1
a92 1
.if !empty(MACHINE_PLATFORM:MNetBSD-*-*) && ${PKGSRC_USE_SSP:Uno} == "no"
@


1.9
log
@Use OPSYSVARS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2016/02/06 22:19:55 ryoon Exp $
a4 1
PKGREVISION=	1
d92 1
a92 1
.if !empty(MACHINE_PLATFORM:MNetBSD-*-*) && ${PKGSRC_USE_SSP:Uno} != "no"
@


1.8
log
@Do not generate fixed include files under NetBSD. Bump PKGREVISION

Fix graphics/cairo build failure (ssp.h not found error) as outer compiler.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2015/12/11 12:31:03 ryoon Exp $
a100 12
.if ${OPSYS} == "NetBSD"
CONFIGURE_ARGS+=	--with-gnu-ld --with-ld=/usr/bin/ld
CONFIGURE_ARGS+=	--with-gnu-as --with-as=/usr/bin/as
MAKE_ENV+=		ac_cv_func_clock_gettime=yes
MAKE_ENV+=		ac_cv_func_gethostbyname_r=no
MAKE_ENV+=		ac_cv_func_freelocale=no
MAKE_ENV+=		ac_cv_func_newlocale=no
MAKE_ENV+=		ac_cv_func_uselocale=no
.endif
.if ${OPSYS} == "DragonFly"
CONFIGURE_ARGS+=	--disable-bootstrap
.endif
d102 7
d110 1
@


1.7
log
@Update gcc5 to 5.3.0 and gcc-libs to 5.3.0nb1

Changelog:
Target Specific Changes
IA-32/x86-64

    GCC now supports the Intel CPU named Skylake with AVX-512 extensions
    through -march=skylake-avx512. The switch enables the following ISA
    extensions: AVX-512F, AVX512VL, AVX-512CD, AVX-512BW, AVX-512DQ.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2015/11/17 10:19:40 wiz Exp $
d5 1
d68 8
@


1.6
log
@Fix build on NetBSD with PKGSRC_USE_SSP.

Thanks to mrg for hints.

Some pkglint cleanup while here.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2015/10/14 20:17:39 ryoon Exp $
a10 1
PKGREVISION=	1
@


1.5
log
@Fix stall during build under NetBSD/i386. Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2015/08/25 12:23:13 sevan Exp $
d85 4
d90 1
d162 1
a162 1
	@@${INFO_MSG} "Test summary are available in ${WRKDIR}/test_summary.log"
@


1.4
log
@Unbreak on OS X Tiger
- remove the space between flags and path passed to linker as it's not supported
- force the use of Dwarf2
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2015/08/22 16:38:10 bsiegert Exp $
d11 1
a11 1
#PKGREVISION=	1
d38 1
@


1.3
log
@Add "tar:build" to TOOLS. From Matthias Ferdinand via mail to pkgsrc-users.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2015/07/25 03:46:02 ryoon Exp $
d110 3
@


1.2
log
@Update to 5.2.0

Changelog:
GCC 5.2

   This is the [42]list of problem reports (PRs) from GCC's bug tracking
   system that are known to be fixed in the 5.2 release. This list might
   not be complete (that is, it is possible that some PRs that have been
   fixed are not listed here).

Target Specific Changes

  IA-32/x86-64

     * Support for new AMD instructions monitorx and mwaitx has been
       added. This includes new intrinsic and built-in support. It is
       enabled through option -mmwaitx. The instructions monitorx and
       mwaitx implement the same functionality as the old monitor and
       mwait instructions. In addition mwaitx adds a configurable timer.
       The timer value is received as third argument and stored in
       register %ebx.


    For questions related to the use of GCC, please consult these web
    pages and the [43]GCC manuals. If that fails, the
    [44]gcc-help@@gcc.gnu.org mailing list might help. Comments on these
    web pages and the development of GCC are welcome on our developer
    list at [45]gcc@@gcc.gnu.org. All of [46]our lists have public
    archives.

   Copyright (C) [47]Free Software Foundation, Inc. Verbatim copying and
   distribution of this entire article is permitted in any medium,
   provided this notice is preserved.

   These pages are [48]maintained by the GCC team. Last modified
   2015-07-16[49].

References

  42. https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=5.2.0
  43. https://gcc.gnu.org/onlinedocs/
  44. mailto:gcc-help@@gcc.gnu.org
  45. mailto:gcc@@gcc.gnu.org
  46. https://gcc.gnu.org/lists.html
  47. http://www.fsf.org/
  48. https://gcc.gnu.org/about.html
  49. http://validator.w3.org/check/referer
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2015/07/16 12:03:36 ryoon Exp $
d27 1
a27 1
USE_TOOLS+=		gmake makeinfo sed:run
@


1.1
log
@Import gcc5-5.1.0 as lang/gcc5.

The GNU Compiler Collection (GCC) includes front ends for C, C++, Objective-C,
Fortran, Java, and Go, as well as libraries for these languages (libstdc++,
libgcj,...). This package provides the snapshot release of version 5.

On NetBSD a working cabsl function must be present in libm to build gfortran.
This has been added to -current on 2014/10/10 and to NetBSD7 on 2014/10/13.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2013/02/05 07:12:23 adam Exp $
d13 1
a13 2
MASTER_SITES=	${MASTER_SITE_GNU:=gcc/snapshots/${GCC5-DIST_VERSION}/}
MASTER_SITES+=	ftp://ftp.fu-berlin.de/unix/languages/gcc/snapshots/${GCC5_DIST_VERSION}/
@

