head	1.56;
access;
symbols
	netbsd-11-0-RC4:1.53
	netbsd-11-0-RC3:1.53
	netbsd-11-0-RC2:1.53
	netbsd-11-0-RC1:1.53
	perseant-exfatfs-base-20250801:1.53
	netbsd-11:1.53.0.4
	netbsd-11-base:1.53
	netbsd-10-1-RELEASE:1.52
	perseant-exfatfs-base-20240630:1.53
	perseant-exfatfs:1.53.0.2
	perseant-exfatfs-base:1.53
	netbsd-8-3-RELEASE:1.35.6.1
	netbsd-9-4-RELEASE:1.43
	netbsd-10-0-RELEASE:1.52
	netbsd-10-0-RC6:1.52
	netbsd-10-0-RC5:1.52
	netbsd-10-0-RC4:1.52
	netbsd-10-0-RC3:1.52
	netbsd-10-0-RC2:1.52
	netbsd-10-0-RC1:1.52
	netbsd-10:1.52.0.2
	netbsd-10-base:1.52
	netbsd-9-3-RELEASE:1.43
	cjep_sun2x-base1:1.51
	cjep_sun2x:1.51.0.4
	cjep_sun2x-base:1.51
	cjep_staticlib_x-base1:1.51
	netbsd-9-2-RELEASE:1.43
	cjep_staticlib_x:1.51.0.2
	cjep_staticlib_x-base:1.51
	netbsd-9-1-RELEASE:1.43
	phil-wifi-20200421:1.44
	phil-wifi-20200411:1.44
	is-mlppp:1.44.0.2
	is-mlppp-base:1.44
	phil-wifi-20200406:1.44
	netbsd-8-2-RELEASE:1.35.6.1
	netbsd-9-0-RELEASE:1.43
	netbsd-9-0-RC2:1.43
	netbsd-9-0-RC1:1.43
	phil-wifi-20191119:1.43
	netbsd-9:1.43.0.2
	netbsd-9-base:1.43
	phil-wifi-20190609:1.43
	netbsd-8-1-RELEASE:1.35.6.1
	netbsd-8-1-RC1:1.35.6.1
	pgoyette-compat-merge-20190127:1.35.12.3
	pgoyette-compat-20190127:1.38
	pgoyette-compat-20190118:1.37
	pgoyette-compat-1226:1.37
	pgoyette-compat-1126:1.37
	pgoyette-compat-1020:1.37
	pgoyette-compat-0930:1.37
	pgoyette-compat-0906:1.37
	netbsd-7-2-RELEASE:1.28.2.1
	pgoyette-compat-0728:1.36
	netbsd-8-0-RELEASE:1.35
	phil-wifi:1.35.0.14
	phil-wifi-base:1.35
	pgoyette-compat-0625:1.35
	netbsd-8-0-RC2:1.35
	pgoyette-compat-0521:1.35
	pgoyette-compat-0502:1.35
	pgoyette-compat-0422:1.35
	netbsd-8-0-RC1:1.35
	pgoyette-compat-0415:1.35
	pgoyette-compat-0407:1.35
	pgoyette-compat-0330:1.35
	pgoyette-compat-0322:1.35
	pgoyette-compat-0315:1.35
	netbsd-7-1-2-RELEASE:1.28.2.1
	pgoyette-compat:1.35.0.12
	pgoyette-compat-base:1.35
	netbsd-7-1-1-RELEASE:1.28.2.1
	matt-nb8-mediatek:1.35.0.10
	matt-nb8-mediatek-base:1.35
	perseant-stdc-iso10646:1.35.0.8
	perseant-stdc-iso10646-base:1.35
	netbsd-8:1.35.0.6
	netbsd-8-base:1.35
	prg-localcount2-base3:1.35
	prg-localcount2-base2:1.35
	prg-localcount2-base1:1.35
	prg-localcount2:1.35.0.4
	prg-localcount2-base:1.35
	pgoyette-localcount-20170426:1.35
	bouyer-socketcan-base1:1.35
	pgoyette-localcount-20170320:1.35
	netbsd-7-1:1.28.2.1.0.6
	netbsd-7-1-RELEASE:1.28.2.1
	netbsd-7-1-RC2:1.28.2.1
	netbsd-7-nhusb-base-20170116:1.28.2.1
	bouyer-socketcan:1.35.0.2
	bouyer-socketcan-base:1.35
	pgoyette-localcount-20170107:1.35
	netbsd-7-1-RC1:1.28.2.1
	pgoyette-localcount-20161104:1.35
	netbsd-7-0-2-RELEASE:1.28.2.1
	localcount-20160914:1.33
	netbsd-7-nhusb:1.28.2.1.0.4
	netbsd-7-nhusb-base:1.28.2.1
	pgoyette-localcount-20160806:1.33
	pgoyette-localcount-20160726:1.33
	pgoyette-localcount:1.33.0.2
	pgoyette-localcount-base:1.33
	netbsd-7-0-1-RELEASE:1.28.2.1
	netbsd-7-0:1.28.2.1.0.2
	netbsd-7-0-RELEASE:1.28.2.1
	gcc-4-8-5-pre-gcc-old-import:1.30
	netbsd-7-0-RC3:1.28.2.1
	netbsd-7-0-RC2:1.28.2.1
	netbsd-7-0-RC1:1.28.2.1
	netbsd-6-0-6-RELEASE:1.13
	netbsd-6-1-5-RELEASE:1.13.4.1
	netbsd-7:1.28.0.2
	netbsd-7-base:1.28
	yamt-pagecache-base9:1.26
	yamt-pagecache-tag8:1.13.2.3
	netbsd-6-1-4-RELEASE:1.13.4.1
	netbsd-6-0-5-RELEASE:1.13
	tls-earlyentropy:1.25.0.2
	tls-earlyentropy-base:1.28
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.25
	riastradh-drm2-base3:1.24
	imported-to-gcc-old-20140227-0107:1.22
	netbsd-6-1-3-RELEASE:1.13.4.1
	netbsd-6-0-4-RELEASE:1.13
	netbsd-6-1-2-RELEASE:1.13.4.1
	netbsd-6-0-3-RELEASE:1.13
	netbsd-6-1-1-RELEASE:1.13.4.1
	riastradh-drm2-base2:1.20
	riastradh-drm2-base1:1.20
	riastradh-drm2:1.19.0.2
	riastradh-drm2-base:1.19
	netbsd-6-1:1.13.4.1.0.2
	netbsd-6-0-2-RELEASE:1.13
	netbsd-6-1-RELEASE:1.13.4.1
	netbsd-6-1-RC4:1.13.4.1
	netbsd-6-1-RC3:1.13.4.1
	agc-symver:1.19.0.4
	agc-symver-base:1.19
	netbsd-6-1-RC2:1.13.4.1
	netbsd-6-1-RC1:1.13.4.1
	yamt-pagecache-base8:1.17
	netbsd-6-0-1-RELEASE:1.13
	yamt-pagecache-base7:1.16
	matt-nb6-plus-nbase:1.13
	yamt-pagecache-base6:1.15
	netbsd-6-0:1.13.0.8
	netbsd-6-0-RELEASE:1.13
	netbsd-6-0-RC2:1.13
	tls-maxphys:1.15.0.2
	tls-maxphys-base:1.28
	matt-nb6-plus:1.13.0.6
	matt-nb6-plus-base:1.13
	netbsd-6-0-RC1:1.13
	yamt-pagecache-base5:1.13
	yamt-pagecache-base4:1.13
	netbsd-6:1.13.0.4
	netbsd-6-base:1.13
	yamt-pagecache-base3:1.13
	yamt-pagecache-base2:1.13
	yamt-pagecache:1.13.0.2
	yamt-pagecache-base:1.13;
locks; strict;
comment	@# @;


1.56
date	2025.09.17.19.08.49;	author mrg;	state Exp;
branches;
next	1.55;
commitid	cbrLr8gypJixi6bG;

1.55
date	2025.09.10.23.26.10;	author nat;	state Exp;
branches;
next	1.54;
commitid	yZolz5lxrb2fWdaG;

1.54
date	2025.09.10.23.07.38;	author nat;	state Exp;
branches;
next	1.53;
commitid	YV26t9el8oopPdaG;

1.53
date	2023.08.01.05.57.56;	author mrg;	state Exp;
branches;
next	1.52;
commitid	wD6OCzrp5SXzV2zE;

1.52
date	2022.07.22.21.59.11;	author mrg;	state Exp;
branches;
next	1.51;
commitid	ObNDl7Fh7MbJiWMD;

1.51
date	2021.04.25.23.12.54;	author christos;	state Exp;
branches;
next	1.50;
commitid	PQiL6Di09KHLgJQC;

1.50
date	2021.04.24.06.34.52;	author rin;	state Exp;
branches;
next	1.49;
commitid	SRsGKm9rWMfvMvQC;

1.49
date	2021.04.17.22.01.02;	author mrg;	state Exp;
branches;
next	1.48;
commitid	Z9t0f2spVXWO7HPC;

1.48
date	2021.04.17.10.54.46;	author mrg;	state Exp;
branches;
next	1.47;
commitid	urD4HVDRhhajrDPC;

1.47
date	2021.04.12.00.05.55;	author mrg;	state Exp;
branches;
next	1.46;
commitid	ZkokfzMsklvk0WOC;

1.46
date	2020.09.05.11.40.56;	author mrg;	state Exp;
branches;
next	1.45;
commitid	HSBuDPzOtjKRTQmC;

1.45
date	2020.09.05.09.50.15;	author mrg;	state Exp;
branches;
next	1.44;
commitid	vaa00G6WuDcNhQmC;

1.44
date	2020.01.22.15.10.31;	author mgorny;	state Exp;
branches;
next	1.43;
commitid	SWVcyxDYPBhYlHTB;

1.43
date	2019.05.11.02.39.32;	author christos;	state Exp;
branches;
next	1.42;
commitid	W9TCaf3wCmGtqJmB;

1.42
date	2019.04.16.08.08.18;	author mrg;	state Exp;
branches;
next	1.41;
commitid	a4Sq8ZFPJwqN2yjB;

1.41
date	2019.04.03.02.13.56;	author mrg;	state Exp;
branches;
next	1.40;
commitid	b2CIB4GDHmWBvQhB;

1.40
date	2019.04.02.21.29.46;	author mrg;	state Exp;
branches;
next	1.39;
commitid	1kWtjYb3ZvCHVOhB;

1.39
date	2019.01.31.06.47.21;	author mrg;	state Exp;
branches;
next	1.38;
commitid	uBt18llyVw3W0U9B;

1.38
date	2019.01.19.17.11.02;	author mrg;	state Exp;
branches;
next	1.37;
commitid	Rkbokdbv0WLAQp8B;

1.37
date	2018.09.05.00.51.42;	author mrg;	state Exp;
branches;
next	1.36;
commitid	fg9L7LzWA1lMNQQA;

1.36
date	2018.07.14.23.40.19;	author christos;	state Exp;
branches;
next	1.35;
commitid	vMRWblAxiFh55aKA;

1.35
date	2016.10.22.20.33.28;	author christos;	state Exp;
branches
	1.35.6.1
	1.35.12.1
	1.35.14.1;
next	1.34;
commitid	jCZKfXH2MXlsibrz;

1.34
date	2016.10.22.03.55.03;	author christos;	state Exp;
branches;
next	1.33;
commitid	BKIUdtAO55eTL5rz;

1.33
date	2016.03.22.08.18.27;	author mrg;	state Exp;
branches
	1.33.2.1;
next	1.32;
commitid	GqdX7Bc400yJ6CZy;

1.32
date	2016.03.18.10.08.43;	author mrg;	state Exp;
branches;
next	1.31;
commitid	jVuAEjAM564CQ6Zy;

1.31
date	2016.03.16.05.44.16;	author mrg;	state Exp;
branches;
next	1.30;
commitid	N3syFcJA0tQnrPYy;

1.30
date	2015.04.15.19.13.46;	author mrg;	state Exp;
branches;
next	1.29;
commitid	1Gj8YOlUlCiaJIhy;

1.29
date	2014.08.21.08.52.23;	author christos;	state Exp;
branches;
next	1.28;
commitid	FwMPzrbdsGSVTcNx;

1.28
date	2014.06.01.19.51.01;	author mrg;	state Exp;
branches
	1.28.2.1;
next	1.27;
commitid	BOTK7lyw6Na69RCx;

1.27
date	2014.05.15.14.37.08;	author joerg;	state Exp;
branches;
next	1.26;
commitid	jb4TR3ZQU6JLXDAx;

1.26
date	2014.05.03.16.43.10;	author martin;	state Exp;
branches;
next	1.25;
commitid	yMO1DyZF2LDS27zx;

1.25
date	2014.03.21.20.54.13;	author joerg;	state Exp;
branches
	1.25.2.1;
next	1.24;
commitid	59jUiH8ZbT5KOBtx;

1.24
date	2014.03.09.23.23.09;	author mrg;	state Exp;
branches;
next	1.23;
commitid	l3wdXdSSqP7Q15sx;

1.23
date	2014.03.01.10.00.33;	author mrg;	state Exp;
branches;
next	1.22;
commitid	ls1VzPCZSNtqQYqx;

1.22
date	2014.02.26.09.54.32;	author mrg;	state Exp;
branches;
next	1.21;
commitid	tog8WsTJJZVqTAqx;

1.21
date	2013.08.22.00.16.54;	author matt;	state Exp;
branches;
next	1.20;
commitid	my4MtexPBiJJKn2x;

1.20
date	2013.07.18.22.39.57;	author matt;	state Exp;
branches;
next	1.19;
commitid	hHwNejyRouGlj0Yw;

1.19
date	2013.02.14.09.19.28;	author matt;	state Exp;
branches
	1.19.2.1;
next	1.18;

1.18
date	2013.02.03.01.59.55;	author matt;	state Exp;
branches;
next	1.17;

1.17
date	2012.12.16.15.32.38;	author skrll;	state Exp;
branches;
next	1.16;

1.16
date	2012.12.07.15.38.04;	author christos;	state Exp;
branches;
next	1.15;

1.15
date	2012.08.29.03.12.08;	author msaitoh;	state Exp;
branches
	1.15.2.1;
next	1.14;

1.14
date	2012.08.06.00.19.03;	author matt;	state Exp;
branches;
next	1.13;

1.13
date	2011.09.25.13.34.16;	author chs;	state Exp;
branches
	1.13.2.1
	1.13.4.1;
next	1.12;

1.12
date	2011.08.15.18.31.20;	author mrg;	state Exp;
branches;
next	1.11;

1.11
date	2011.08.15.09.19.21;	author mrg;	state Exp;
branches;
next	1.10;

1.10
date	2011.07.07.01.27.47;	author mrg;	state Exp;
branches;
next	1.9;

1.9
date	2011.07.03.08.35.41;	author mrg;	state Exp;
branches;
next	1.8;

1.8
date	2011.07.01.10.04.13;	author mrg;	state Exp;
branches;
next	1.7;

1.7
date	2011.07.01.05.07.06;	author mrg;	state Exp;
branches;
next	1.6;

1.6
date	2011.07.01.01.24.53;	author mrg;	state Exp;
branches;
next	1.5;

1.5
date	2011.06.29.08.05.52;	author mrg;	state Exp;
branches;
next	1.4;

1.4
date	2011.06.29.01.56.57;	author mrg;	state Exp;
branches;
next	1.3;

1.3
date	2011.06.28.04.03.56;	author mrg;	state Exp;
branches;
next	1.2;

1.2
date	2011.06.23.11.47.12;	author mrg;	state Exp;
branches;
next	1.1;

1.1
date	2011.06.21.06.02.25;	author mrg;	state Exp;
branches;
next	;

1.35.6.1
date	2018.09.06.07.58.57;	author martin;	state Exp;
branches;
next	;
commitid	dJT3y3wr0yky81RA;

1.35.12.1
date	2018.07.28.04.37.17;	author pgoyette;	state Exp;
branches;
next	1.35.12.2;
commitid	1UP1xAIUxv1ZgRLA;

1.35.12.2
date	2018.09.06.06.51.56;	author pgoyette;	state Exp;
branches;
next	1.35.12.3;
commitid	HCi1bXD317XIK0RA;

1.35.12.3
date	2019.01.26.21.59.41;	author pgoyette;	state Exp;
branches;
next	;
commitid	JKpcmvSjdT25dl9B;

1.35.14.1
date	2019.06.10.21.55.06;	author christos;	state Exp;
branches;
next	1.35.14.2;
commitid	jtc8rnCzWiEEHGqB;

1.35.14.2
date	2020.04.08.14.06.39;	author martin;	state Exp;
branches;
next	;
commitid	Qli2aW9E74UFuA3C;

1.33.2.1
date	2016.11.04.14.45.11;	author pgoyette;	state Exp;
branches;
next	;
commitid	2m1JRwYmpwPkOOsz;

1.28.2.1
date	2015.01.25.00.19.35;	author martin;	state Exp;
branches;
next	;
commitid	Zd18dL7rpT5Z0l7y;

1.25.2.1
date	2014.08.10.07.10.49;	author tls;	state Exp;
branches;
next	;
commitid	3hJZAsnr6L0lHMLx;

1.19.2.1
date	2013.07.23.21.07.26;	author riastradh;	state Exp;
branches;
next	;
commitid	rochtllMBJfBDDYw;

1.15.2.1
date	2013.02.25.00.26.55;	author tls;	state Exp;
branches;
next	1.15.2.2;

1.15.2.2
date	2014.08.19.23.56.39;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.13.2.1
date	2012.10.30.18.57.35;	author yamt;	state Exp;
branches;
next	1.13.2.2;

1.13.2.2
date	2013.01.16.05.28.01;	author yamt;	state Exp;
branches;
next	1.13.2.3;

1.13.2.3
date	2013.01.23.00.04.43;	author yamt;	state Exp;
branches;
next	1.13.2.4;

1.13.2.4
date	2014.05.22.16.53.16;	author yamt;	state Exp;
branches;
next	;
commitid	v7BzuaTHWIjEuyBx;

1.13.4.1
date	2012.10.22.19.28.43;	author riz;	state Exp;
branches;
next	;


desc
@@


1.56
log
@adjust the i386 list of -msse2 files.
@
text
@#	$NetBSD: Makefile.inc,v 1.55 2025/09/10 23:26:10 nat Exp $

LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
GCC_MACHINE_SUBDIR=${MACHINE_CPU:C/powerpc.*/rs6000/:C/x86_64/i386/}

.if ${MKGCC} != "no"
.if exists(${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk)
.include "${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk"
.endif
.endif

# Override libgcc_s included sources (m68k) to make it possibile to build
# all three(3) variants (hardfloat / libgcc_s softfloat / libc softfloat ).
.if ${LIBGCC_MACHINE_ARCH} == "m68k" && ${MKSOFTFLOAT} != "no" && \
    ${MKLIBCSOFTFLOAT} != "no"
EXCLUDE_FUNCS=	_mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 _floatex _float
EXCLUDE_FUNCS+=	_double _eqdf2 _nedf2 _gtdf2 _gedf2 _ltdf2 _ledf2 _eqsf2
EXCLUDE_FUNCS+=	_nesf2 _gtsf2 _gesf2 _ltsf2 _lesf2
NG_LIB1ASMFUNCS:=	${G_LIB1ASMFUNCS:${EXCLUDE_FUNCS:@@f@@S,$f,,@@:ts:}}

NG_LIB1ASMSRC:=		${G_LIB1ASMSRC:S,m68k/lb1sf68.S,,}

EXCLUDE_FUNCS=	_divdi3 _moddi3 _divmoddi4 _udivdi3 _umoddi3 _udivmoddi4
EXCLUDE_FUNCS+=	_udiv_w_sdiv
NG_LIB2_DIVMOD_FUNCS:=	${G_LIB2_DIVMOD_FUNCS:${EXCLUDE_FUNCS:@@f@@S,$f,,@@:ts:}}

G_LIB1ASMFUNCS=
G_LIB1ASMSRC=
G_LIB2_DIVMOD_FUNCS=

G_LIB1ASMFUNCS:=	${NG_LIB1ASMFUNCS}
G_LIB1ASMSRC:=		${NG_LIB1ASMSRC}
G_LIB2_DIVMOD_FUNCS:=	${NG_LIB2_DIVMOD_FUNCS}
.endif

UNSUPPORTED_COMPILER.clang=	# defined

DIST=		${GCCDIST}
GNUHOSTDIST=	${DIST}
GCCARCH=	${GCC_SUBDIR}/usr.bin/gcc/arch/${LIBGCC_MACHINE_ARCH}
GCCARCHLIBGCC=	${GCC_SUBDIR}/lib/libgcc/arch/${LIBGCC_MACHINE_ARCH}
GCCARCHXX=	${GCC_SUBDIR}/lib/libstdc++-v3/arch/${LIBGCC_MACHINE_ARCH}

GCPPFLAGS=	${G_LIBGCC2_CFLAGS} ${G_USE_COLLECT2} ${G_INCLUDES}
CPPFLAGS+=	-I${.CURDIR} -I${GCCARCHLIBGCC}
CPPFLAGS+=	-I${GCCARCH} ${GCPPFLAGS:M-D*} ${GCPPFLAGS:M-I*:N-I.*}
CPPFLAGS+=	${GCPPFLAGS:M-m*} ${GCPPFLAGS:M-f*}
CPPFLAGS+=	${G_EXTRA_HEADERS:M/*:H:u:S/^/-I/g}
CPPFLAGS+=	-I${DIST}/libgcc -I${DIST}/libgcc/config
CPPFLAGS+=	-I${DIST}/libgcc/config/${GCC_MACHINE_SUBDIR}
CPPFLAGS+=	-I${DIST}/gcc -I${DIST}/include -I.
CPPFLAGS+=	${G_INTERNAL_CFLAGS:M-DHAVE_CC_TLS}

.if ${LIBGCC_MACHINE_ARCH} == "powerpc" || \
    ${LIBGCC_MACHINE_ARCH} == "sh3el" || \
    ${LIBGCC_MACHINE_ARCH} == "sh3eb" || \
    ${LIBGCC_MACHINE_ARCH} == "m68000" || \
    ${LIBGCC_MACHINE_ARCH} == "aarch64" || \
    ${LIBGCC_MACHINE_ARCH} == "aarch64eb"
_TRADITIONAL_CPP=
COMPILE.S=	${CC} ${AFLAGS} ${CPPFLAGS} ${CPPFLAGS.${.IMPSRC:T}} -c 
.endif

.if ${LIBGCC_MACHINE_ARCH} == "powerpc"
CPPFLAGS+=	-I${DIST}/gcc/config/rs6000
.endif

#
# Old style libgcc build procedure.
#

# This is copied from dist/libgcc/Makefile.in:$lib2funcs
LIB2FUNCS_ALL= \
	_muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _cmpdi2 _ucmpdi2    \
	_clear_cache _trampoline __main \
	_absvsi2 _absvdi2 _addvsi3 _addvdi3 \
	_subvsi3 _subvdi3 _mulvsi3 _mulvdi3 \
	_negvsi2 _negvdi2 \
	_ctors \
	_ffssi2 _ffsdi2 _clz _clzsi2 _clzdi2  _ctzsi2 _ctzdi2 \
	_popcount_tab _popcountsi2 _popcountdi2 _paritysi2 _paritydi2 \
	_powisf2 _powidf2 _powixf2 _powitf2 \
	_mulsc3 _muldc3 _mulxc3 _multc3 _divsc3 _divdc3 _divxc3 _divtc3 \
	_bswapsi2 _bswapdi2 _clrsbsi2 _clrsbdi2

.if ${LIBGCC_MACHINE_ARCH} != "coldfire" && empty(LIBGCC_MACHINE_ARCH:Mearm*)

LIB2FUNCS_ALL+= \
	_muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3

.endif

.if ${LIBGCC_MACHINE_ARCH} != "coldfire" && \
    empty(LIBGCC_MACHINE_ARCH:Mearm*) && \
    empty(LIBGCC_MACHINE_ARCH:Maarch64*) && \
    empty(LIBGCC_MACHINE_ARCH:Mmips64*) && \
    empty(LIBGCC_MACHINE_ARCH:Mmipsn64*)

EXTRA_FUNC_SIZES=	sf df xf

.if ${LIBGCC_MACHINE_ARCH} != "x86_64" && \
    ${LIBGCC_MACHINE_ARCH} != "i386" && \
    ${LIBGCC_MACHINE_ARCH} != "ia64"
EXTRA_FUNC_SIZES+=	tf
.endif

# non swfloat versions 
.for _p in _fix _fixuns
. for _m in ${EXTRA_FUNC_SIZES}
LIB2FUNCS_ALL+=	${_p}${_m}di
. endfor
.endfor

.for _p in _float _floatun
. for _m in ${EXTRA_FUNC_SIZES}
LIB2FUNCS_ALL+=	${_p}di${_m}
. endfor
.endfor

.for _m in sf df xf
LIB2FUNCS_ALL+=	_fixuns${_m}si
.endfor
.endif

LIB2FUNCS_SHORT:=${LIB2FUNCS_ALL}
LIB2_DIVMOD_FUNCS:=${G_LIB2_DIVMOD_FUNCS}
.for f in ${G_LIB1ASMFUNCS}; do
LIB2FUNCS_SHORT:=${LIB2FUNCS_SHORT:N${f}}
LIB2_DIVMOD_FUNCS:=${LIB2_DIVMOD_FUNCS:N${f}}
.endfor

LIB2FUNCS=	${LIB2FUNCS_SHORT:=.c}
_LIB2FUNCS=	${G_LIB2FUNCS_ST}
.for _f in ${LIB2FUNCS_EXCLUDE}
_LIB2FUNCS=	${_LIB2FUNCS:N${_f}}
.endfor
LIB2FUNCS_ST=	${_LIB2FUNCS:=.c}
LIB2DIVMOD=	${LIB2_DIVMOD_FUNCS:=.c}
.if ${HAVE_LIBGCC_EH} == "no"
LIB2_EH=	${G_LIB2ADDEH:M*.c:T:Nunwind-dw2.c:Nunwind-dw2-fde-dip.c:Nunwind-sjlj.c:Nunwind-c.c:Nunwind-arm.c:Npr-support.c}
LIB2_EHASM=	${G_LIB2ADDEH:M*.S:T:Nlibunwind.S}
.else
LIB2_EH=	${G_LIB2ADDEH:M*.c:T}
LIB2_EHASM=	${G_LIB2ADDEH:M*.S:T}

INCSDIR=	/usr/include
# originally copied from unwind-*.h
INCS+=		unwind.h
.endif

# We have to weed out any existing func.S file that may exist
# from the list of files we create.
.if !empty(G_LIB1ASMFUNCS)
. for f in ${G_LIB1ASMFUNCS:=.S}
.  if !exists(${DIST}/libgcc/config/${GCC_MACHINE_SUBDIR}/${f})
LIB1ASMFUNCS+=	${f}
.  endif
. endfor
.endif

.if exists(${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk)
DPSRCS+=	${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk
.endif
CLEANFILES+=	${LIB2FUNCS} ${LIB2FUNCS_ST} ${LIB2DIVMOD} cs-tconfig.h
.if !empty(G_LIB1ASMFUNCS)
CLEANFILES+=	${LIB1ASMFUNCS}
.endif

.for file in ${G_LIB2ADD:M${GNUHOSTDIST}*:N*.c}
BUILDSYMLINKS+=	${file} ${file:T:S/.asm$/.S/}
.endfor

# XXX
.if (${LIBGCC_MACHINE_ARCH} == "m68000" || ${LIBGCC_MACHINE_ARCH} == "m68k" || \
     ${LIBGCC_MACHINE_ARCH} == "coldfire")
CPICFLAGS:=
BUILDSYMLINKS+=	${DIST}/libgcc/config/m68k/fpgnulib.c fpgnulib.c
BUILDSYMLINKS+=	${DIST}/libgcc/config/m68k/fpgnulib.c xfgnulib.c
CPPFLAGS.xfgnulib.c+=	-DEXTFLOAT=1
.  if ${MKLIBCSOFTFLOAT} != "no"
CPPFLAGS.fpgnulib.c+=-DLIBCSOFTFLOAT=1
CPPFLAGS.xfgnulib.c+=-DLIBCSOFTFLOAT=1
.  endif
.endif

${LIB2FUNCS} ${LIB2FUNCS_ST}: ${.CURDIR}/Makefile
	${_MKTARGET_CREATE}
	printf '#define L${.PREFIX}\n#include <libgcc2.c>\n' >${.TARGET}

${LIB2DIVMOD}: ${.CURDIR}/Makefile
	${_MKTARGET_CREATE}
	printf '#define L${.PREFIX}\n#include <libgcc2.c>\n' >${.TARGET}

.if !empty(G_LIB1ASMFUNCS)
${LIB1ASMFUNCS}: ${.CURDIR}/Makefile
	${_MKTARGET_CREATE}
	printf '#define L${.PREFIX}\n#include <${G_LIB1ASMSRC}>\n' >${.TARGET}
.endif

.if ${LIB} == "gcc" && \
    (${LIBGCC_MACHINE_ARCH} == "aarch64" || \
     ${LIBGCC_MACHINE_ARCH} == "aarch64eb") # {
# XXX lse.S objects are placed directly into "libgcc-objects" for GCC, and
# are not pulled out by mknative-gcc easily.
. for s in 1 2 4 8 16
.  for m in 1 2 3 4 5
.   for n in cas
LSE_NAMES+=			${n}_${s}_${m}
CPPFLAGS.${n}_${s}_${m}+=	-DL_${n} -DSIZE=${s} -DMODEL=${m}
.   endfor
.  endfor
. endfor

. for s in 1 2 4 8
.  for m in 1 2 3 4 5
.   for n in swp ldadd ldclr ldeor ldset
LSE_NAMES+=			${n}_${s}_${m}
CPPFLAGS.${n}_${s}_${m}+=	-DL_${n} -DSIZE=${s} -DMODEL=${m}
.   endfor
.  endfor
. endfor

LSE_SRC=	${GNUHOSTDIST}/libgcc/config/aarch64/lse.S

${LSE_NAMES:=.o}: ${LSE_SRC} Makefile
	${_MKTARGET_COMPILE}
	${COMPILE.S} ${CPPFLAGS.${.TARGET:T:.o=}} -o ${.TARGET} ${LSE_SRC}

${LSE_NAMES:=.go}: ${LSE_SRC} Makefile
	${_MKTARGET_COMPILE}
	${COMPILE.S} ${DEBUGFLAGS} ${CPPFLAGS.${.TARGET:T:.go=}} -o ${.TARGET} \
		${LSE_SRC}

# lse-init.c currently compiles to nothing for us
G_LIB2ADD+=	${GNUHOSTDIST}/libgcc/config/aarch64/lse-init.c

.endif # } arm64

.if (${LIBGCC_MACHINE_ARCH} == "x86_64" || \
     ${LIBGCC_MACHINE_ARCH} == "i386") # {

.if ${LIBGCC_MACHINE_ARCH} == "x86_64"
MSSE_FILES=	fixhfti.c fixunshfti.c floattihf.c floatunstihf.c
.endif

.if ${LIBGCC_MACHINE_ARCH} == "i386" # {
MSSE_FILES= \
	extendhfsf2.c \
	extendhfdf2.c \
	extendhftf2.c \
	extendhfxf2.c \
	extendbfsf2.c \
	truncsfhf2.c \
	truncdfhf2.c \
	truncxfhf2.c \
	trunctfhf2.c \
	truncsfbf2.c \
	truncdfbf2.c \
	truncxfbf2.c \
	trunctfbf2.c \
	trunchfbf2.c \
	floatbitintbf.c \
	floatbitinthf.c \
	eqhf2.c \
	_divhc3.c \
	_mulhc3.c \
	_hf_to_sd.c\
	_hf_to_dd.c \
	_hf_to_td.c \
	_sd_to_hf.c \
	_dd_to_hf.c \
	_td_to_hf.c 
.endif # } i386

.for _f in ${MSSE_FILES}
COPTS.${_f}+=	-msse2
.endfor

.endif # } x86

# Use dynamic sources to arrange for the C file to be the first dependency
# so ${.IMPSRC} will work.

${LIB2_EH:.c=.o}: $(.PREFIX).c
	${_MKTARGET_COMPILE}
	${COMPILE.c} -fexceptions ${COPTS.${.IMPSRC:T}} -o ${.TARGET} ${.IMPSRC}

${LIB2_EH:.c=.pico}: $(.PREFIX).c
	${_MKTARGET_COMPILE}
	${COMPILE.c} ${CPICFLAGS} -fexceptions ${COPTS.${.IMPSRC:T}} -o ${.TARGET} ${.IMPSRC}

${G_LIB2_DIVMOD_FUNCS:=.o}: $(.PREFIX).c
	${_MKTARGET_COMPILE}
	${COMPILE.c} -fexceptions -fnon-call-exceptions ${COPTS.${.IMPSRC:T}} -o ${.TARGET} ${.IMPSRC}

${G_LIB2_DIVMOD_FUNCS:=.pico}: $(.PREFIX).c
	${_MKTARGET_COMPILE}
	${COMPILE.c} ${CPICFLAGS} -fexceptions -fnon-call-exceptions ${COPTS.${.IMPSRC:T}} -o ${.TARGET} ${.IMPSRC}

CPPFLAGS.fp-bit.c+=	-DFLOAT=1
dp-bit.c: ${.CURDIR}/Makefile
	${_MKTARGET_CREATE}
	printf '#include <fp-bit.c>\n' >${.TARGET}

#
# Common rules.
#

.PATH: ${DIST}/gcc ${DIST}/gcc/cp ${DIST}/gcc/cp/inc ${DIST}/gcc/config \
	${DIST}/libgcc/config ${DIST}/libgcc/config/${GCC_MACHINE_SUBDIR} \
	${G_LIB2ADD:H:O:u} ${G_LIB2ADDEH:H:O:u} ${GCCARCHLIBGCC}

.include "../Makefile.tconfigh"
DPSRCS+=	tconfig.h

.include "../Makefile.gthr"

EXTRA_FAKEHEADERS=	options.h libgcc_tm.h
.include "../../Makefile.hacks"

# XXX insn-modes.h
BINBACKENDOBJ!=	cd ${.CURDIR}/../../../usr.bin/backend && ${PRINTOBJDIR}
CPPFLAGS+=	-I${BINBACKENDOBJ}

#.if !empty(LIBGCC_MACHINE_ARCH:Mearm*)
COPTS.unwind-dw2.c+=	-Wno-discarded-qualifiers
#.endif
@


1.55
log
@Exclude libgcc_s softfloat functions (m68k).

This is for when builing with libc/softfloat (the default).

Addresses PR/59393.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.54 2025/09/10 23:07:38 nat Exp $
d246 27
a272 5
.if ${LIBGCC_MACHINE_ARCH} == "i386"
MSSE_FILES=	extendhfsf2.c extendhfdf2.c extendhftf2.c extendhfxf2.c \
		truncsfhf2.c truncdfhf2.c truncxfhf2.c trunctfhf2.c \
		eqhf2.c _divhc3.c _mulhc3.c

@


1.54
log
@Switch over m68k soffloat build to libc/softfloat.

m68k would previously use softfloat functions contained in libgcc_s.

This change aligns m68k with other platforms built with softfloat.

It is still possible to build the gcc_s softfloat impementation by setting
MKSOFFTFLOAT=yes MKLIBCSOFTFLOAT=no

Addresses PR/59393.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.53 2023/08/01 05:57:56 mrg Exp $
d12 24
@


1.53
log
@various updates to build native GCC 12.

- for usr.bin, build libcody and link it into cc1*plus
- move makefile code for auto-build.h and version.h (was gcov-iov.h)
  into makefile fragment to share them.  (XXX probably best to only do
  this in one place, but that's a future step.)
- many updates to handle the .c -> .cc renames
- build some x86 files with -msse2
- bump shlib versions for libgomp and libstdc++v3
- fix MKGCCCMDS=no builds
- updates for new rtl-ssa subdir
- use -std=gnu++11 for various places
- define TARGET_MACHINE and HOST_MACHINE for some places
- avoid a .BEGIN rule that writes to missing obj (ie src) sometimes

cleanups still needed:
- remove a bunch of commented -Wno* that don't seem to be needed anymore
- leave or remove various vax-specific -O0s that should no longer be
  necessary for the vax-gcc port
- some "XXXGCC12" that should be may be fixable or converted to using our
  standard ${CC_...} warnings (but may need to remain, in which case the
  XXXGCC12 marker will be removed.)

with these, and a few other changes around the tree, i've able to build
gcc12 releases for several ports that seem to work (arm64, sparc, amd64,
i386 at least so far, have run, several others have built.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.52 2022/07/22 21:59:11 mrg Exp $
d156 4
@


1.52
log
@arm64 needs additional lse.S builds with GCC 10.4.0.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.51 2021/04/25 23:12:54 christos Exp $
d211 20
@


1.51
log
@Add support for mipsn64 targets which build 64 bit binaries by default
on instead of n32
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.50 2021/04/24 06:34:52 rin Exp $
d178 1
a178 1
.  for m in 1 2 3 4
d187 1
a187 1
.  for m in 1 2 3 4
@


1.50
log
@Fix build with MKDEBUG=yes for aarch64.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.49 2021/04/17 22:01:02 mrg Exp $
d72 2
a73 1
    empty(LIBGCC_MACHINE_ARCH:Mmips64*)
@


1.49
log
@it's spelled aarch64eb.  now aarch64eb userland builds, too.
update arm64 status (kernels still need new libkern help.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.48 2021/04/17 10:54:46 mrg Exp $
d200 5
@


1.48
log
@add support for arm64 lse.S.

arm64 userland much happier now.  /usr/bin/gcc as gcc 10 on arm64
is fine, build is complete, though i did not test xsrc yet.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.47 2021/04/12 00:05:55 mrg Exp $
d173 1
a173 1
     ${LIBGCC_MACHINE_ARCH} == "aarch64be") # {
@


1.47
log
@various changes to get GCC 10 to build here.

- fix path to compiler-specific includes
- missing (void) for (older) C
- fix __is_signed/__is_signed_val change
- avoid compiler warning-as-errors
- add to existing COPTS.file values, instead of setting
- bump libgomp minor; functions were added
- add new 'compare' c++ header
- handle new analyzer subdirectory.  set TARGET_MACHINE for lto-streamer-in.c.
  remove params.list etc handling.
- coroutines.cc is another .cc not .c.  adjust .PATH to suit.
- add new lto1 sources
- couple of files not in /arch/ subdirs missed in mknative update.

rs6000.c is still not merged.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.46 2020/09/05 11:40:56 mrg Exp $
d33 3
a35 1
    ${LIBGCC_MACHINE_ARCH} == "m68000"
d37 1
a37 1
COMPILE.S=	${CC} ${AFLAGS} ${CPPFLAGS} -c
d171 34
@


1.46
log
@endfor not endif
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.45 2020/09/05 09:50:15 mrg Exp $
d212 4
@


1.45
log
@port reachover framework to GCC 9.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.44 2020/01/22 15:10:31 mgorny Exp $
d109 1
a109 1
.endif
@


1.44
log
@Install gcc's unwind.h instead of libexecinfo's

The prototypes in libexecinfo's unwind.h do not match those commonly
used (e.g. by gcc, clang, GNU libunwind, LLVM libunwind...), causing
C++ programs to fail to build on type mismatches (e.g. compiler-rt,
libc++abi).  Rather than providing our own header, reuse the one
included in gcc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.43 2019/05/11 02:39:32 christos Exp $
d106 5
a110 1
LIB2FUNCS_ST=	${G_LIB2FUNCS_ST:=.c}
@


1.43
log
@remove the ppc64 long-double-128; the default is 64 now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.42 2019/04/16 08:08:18 mrg Exp $
d114 4
@


1.42
log
@fix -I paths for powerpc*.  convert amd64 specific hack.

we've been building dp-bit.c and fp-bit.c backwards, but as they
use the same input source, they just had opposite objects and
the right total was provided.  oops.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.41 2019/04/03 02:13:56 mrg Exp $
a146 4
.if ${LIBGCC_MACHINE_ARCH} == "powerpc64"
COPTS+=	-mlong-double-128
.endif

@


1.41
log
@fix error in previous
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.40 2019/04/02 21:29:46 mrg Exp $
d4 1
d26 1
a26 5
.if ${LIBGCC_MACHINE_ARCH} == "x86_64"
CPPFLAGS+=	-I${DIST}/libgcc/config/i386
.else
CPPFLAGS+=	-I${DIST}/libgcc/config/${LIBGCC_MACHINE_ARCH}
.endif
d120 1
a120 1
.  if !exists(${DIST}/libgcc/config/${MACHINE_CPU}/${f})
d184 1
d187 1
a187 1
	printf '#define FLOAT\n#include <fp-bit.c>\n' >${.TARGET}
d194 1
a194 1
	${DIST}/libgcc/config ${DIST}/libgcc/config/${MACHINE_CPU} \
@


1.40
log
@make ia64 build with gcc7:
- catch up tmake_file list for ia64-netbsd to gcc 7 standards
- don't build the "tf" extra size version on ia64 like x86.
- regen mknative files
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.39 2019/01/31 06:47:21 mrg Exp $
d79 1
a79 1
    ${LIBGCC_MACHINE_ARCH} != "ia64" &&
@


1.39
log
@don't build the ditf files on x86 anymore.  they come from soft-fp now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.38 2019/01/19 17:11:02 mrg Exp $
d77 3
a79 1
.if ${LIBGCC_MACHINE_ARCH} != "x86_64" && ${LIBGCC_MACHINE_ARCH} != "i386"
@


1.38
log
@begin to handle new unwind.h and gthr-default.h stuff.
put gthr stuff in a common makefile.

remove ancient unused Makefile.srcs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.37 2018/09/05 00:51:42 mrg Exp $
d75 6
d83 1
a83 1
. for _m in sf df xf tf
d89 1
a89 1
. for _m in sf df xf tf
@


1.37
log
@pull -DHAVE_CC_TLS out of $(INTERNAL_CFLAGS) if it is there, and add
it to CPPFLAGS.

this fixes PR#53567 for me.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.36 2018/07/14 23:40:19 christos Exp $
a105 1
G_CONFIGLINKS:= ${G_CONFIGLINKS:S,libgcc/config/arm/unwind-arm.h,libgcc/unwind-generic.h,}
d194 1
a194 8
.if ${MKGCC} != "no"
.if defined(G_CONFIGLINKS) && !empty(G_CONFIGLINKS)
BUILDSYMLINKS+=	${G_CONFIGLINKS}
.for _src _dst in ${G_CONFIGLINKS}
DPSRCS+=	${_dst}
.endfor
.endif
.endif
@


1.36
log
@avoid dups for aarch64
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.35 2016/10/22 20:33:28 christos Exp $
d31 1
@


1.35
log
@use LIBGCC_MACHINE_ARCH for the compat build
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.34 2016/10/22 03:55:03 christos Exp $
d71 1
@


1.35.14.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.43 2019/05/11 02:39:32 christos Exp $
a3 1
GCC_MACHINE_SUBDIR=${MACHINE_CPU:C/powerpc.*/rs6000/:C/x86_64/i386/}
d25 5
a29 1
CPPFLAGS+=	-I${DIST}/libgcc/config/${GCC_MACHINE_SUBDIR}
a30 1
CPPFLAGS+=	${G_INTERNAL_CFLAGS:M-DHAVE_CC_TLS}
a70 1
    empty(LIBGCC_MACHINE_ARCH:Maarch64*) && \
a72 8
EXTRA_FUNC_SIZES=	sf df xf

.if ${LIBGCC_MACHINE_ARCH} != "x86_64" && \
    ${LIBGCC_MACHINE_ARCH} != "i386" && \
    ${LIBGCC_MACHINE_ARCH} != "ia64"
EXTRA_FUNC_SIZES+=	tf
.endif

d75 1
a75 1
. for _m in ${EXTRA_FUNC_SIZES}
d81 1
a81 1
. for _m in ${EXTRA_FUNC_SIZES}
d104 1
d114 1
a114 1
.  if !exists(${DIST}/libgcc/config/${GCC_MACHINE_SUBDIR}/${f})
d141 4
a177 1
CPPFLAGS.fp-bit.c+=	-DFLOAT=1
d180 1
a180 1
	printf '#include <fp-bit.c>\n' >${.TARGET}
d187 1
a187 1
	${DIST}/libgcc/config ${DIST}/libgcc/config/${GCC_MACHINE_SUBDIR} \
d193 8
a200 1
.include "../Makefile.gthr"
@


1.35.14.2
log
@Merge changes from current as of 20200406
@
text
@d1 1
a1 1
#	$NetBSD$
a113 4

INCSDIR=	/usr/include
# originally copied from unwind-*.h
INCS+=		unwind.h
@


1.35.6.1
log
@Pull up following revision(s) (requested by mrg in ticket #1009):

	external/gpl3/gcc/lib/libgcc/Makefile.inc: revision 1.37

pull -DHAVE_CC_TLS out of $(INTERNAL_CFLAGS) if it is there, and add
it to CPPFLAGS.

this fixes PR#53567 for me.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.35 2016/10/22 20:33:28 christos Exp $
a30 1
CPPFLAGS+=	${G_INTERNAL_CFLAGS:M-DHAVE_CC_TLS}
@


1.35.12.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.36 2018/07/14 23:40:19 christos Exp $
a70 1
    empty(LIBGCC_MACHINE_ARCH:Maarch64*) && \
@


1.35.12.2
log
@Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.37 2018/09/05 00:51:42 mrg Exp $
a30 1
CPPFLAGS+=	${G_INTERNAL_CFLAGS:M-DHAVE_CC_TLS}
@


1.35.12.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.35.12.2 2018/09/06 06:51:56 pgoyette Exp $
d106 1
d195 8
a202 1
.include "../Makefile.gthr"
@


1.34
log
@regen and include the proper directory for x86_64
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.33 2016/03/22 08:18:27 mrg Exp $
d25 1
a25 1
.if ${MACHINE_ARCH} == "x86_64"
@


1.33
log
@mips64 does not get (all?) the non sw-float version.  fixes double symbol issues.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.32 2016/03/18 10:08:43 mrg Exp $
d25 5
a29 1
CPPFLAGS+=	-I${DIST}/libgcc/config/${MACHINE_CPU}
@


1.33.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.35 2016/10/22 20:33:28 christos Exp $
d25 1
a25 5
.if ${LIBGCC_MACHINE_ARCH} == "x86_64"
CPPFLAGS+=	-I${DIST}/libgcc/config/i386
.else
CPPFLAGS+=	-I${DIST}/libgcc/config/${LIBGCC_MACHINE_ARCH}
.endif
@


1.32
log
@find all libgcc sources
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.31 2016/03/16 05:44:16 mrg Exp $
d65 3
a67 1
.if ${LIBGCC_MACHINE_ARCH} != "coldfire" && empty(LIBGCC_MACHINE_ARCH:Mearm*)
@


1.31
log
@apply an ugly hack to force-build insn-modes.h for libgcc and libobjc
since they want it now.

XXX:  super ugly, probably can be fixed by rearranging a bunch of what
XXX:  is currently in ../usr.bin/backend/ that builds insn-modes.h.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.30 2015/04/15 19:13:46 mrg Exp $
d25 1
d108 1
a108 1
.  if !exists(${DIST}/libgcc/config/${MACHINE_GNU_ARCH}/${f})
d181 1
@


1.30
log
@remove various HAVE_GCC=45 fragments.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.29 2014/08/21 08:52:23 christos Exp $
d196 4
@


1.29
log
@PR/49087: Jarmo Jaakkola: Make sure that the first dependency is the C source
file so ${.IMPSRC} gets set correctly.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.28 2014/06/01 19:51:01 mrg Exp $
a195 5

# XXX
.if defined(HAVE_GCC) && ${HAVE_GCC} == 45 && ${LIBGCC_MACHINE_ARCH} == "m68k"
COPTS._fixunsxfdi.c+=	-O0
.endif
@


1.28
log
@port over 3 changes made here in the GCC 4.5 tree that we'll need
when GCC 4.8 becomes "gcc.old" eventually.

this tree still needs to be tested for more, but this should be the
bulk of the work.

----
Log Message:
prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
  because it arranges for ../Makefile.inc to be included earlier, and
  don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
  valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
    is kind of sketchy, it would be great if this was fixed.

----
Log Message:
oops, avoid re-setting DIST to something that might be wrong now.

----
Log Message:
fix another dated DIST.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.27 2014/05/15 14:37:08 joerg Exp $
d152 4
a155 1
${LIB2_EH:.c=.o}:
d159 1
a159 1
${LIB2_EH:.c=.pico}:
d163 1
a163 1
${G_LIB2_DIVMOD_FUNCS:=.o}:
d167 1
a167 1
${G_LIB2_DIVMOD_FUNCS:=.pico}:
@


1.28.2.1
log
@Sync gcc with -current, requested by skrll in ticket #448:

tools/gcc/Makefile                              up to 1.74
tools/gcc/gcc-version.mk                        up to 1.3
external/gpl3/gcc/dist/config/mh-alpha-linux    up to 1.1.1.1
external/gpl3/gcc/dist/gcc/config/or1k/constraints.md up to 1.1
external/gpl3/gcc/dist/gcc/config/or1k/elf.h    up to 1.1
external/gpl3/gcc/dist/gcc/config/or1k/linux-elf.h up to 1.1
external/gpl3/gcc/dist/gcc/config/or1k/linux-gas.h up to 1.1
external/gpl3/gcc/dist/gcc/config/or1k/netbsd.h up to 1.2
external/gpl3/gcc/dist/gcc/config/or1k/or1k-modes.def up to 1.1
external/gpl3/gcc/dist/gcc/config/or1k/or1k-opts.h up to 1.1
external/gpl3/gcc/dist/gcc/config/or1k/or1k-protos.h up to 1.1
external/gpl3/gcc/dist/gcc/config/or1k/or1k.c   up to 1.2
external/gpl3/gcc/dist/gcc/config/or1k/or1k.h   up to 1.1
external/gpl3/gcc/dist/gcc/config/or1k/or1k.md  up to 1.1
external/gpl3/gcc/dist/gcc/config/or1k/or1k.opt up to 1.1
external/gpl3/gcc/dist/gcc/config/or1k/predicates.md up to 1.1
external/gpl3/gcc/dist/gcc/config/or1k/t-linux  up to 1.1
external/gpl3/gcc/dist/gcc/config/or1k/t-or1k   up to 1.1
external/gpl3/gcc/dist/gcc/config/or1k/t-or1knd up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/constraints.md up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/crti.asm up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/crtn.asm up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/div.S   up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/elf.h   up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/generic.md up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/linux-unwind.h up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/linux.h up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/linux64.h up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/opcode-riscv.h up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/peephole.md up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/predicates.md up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/riscv-fp.c up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/riscv-ftypes.def up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/riscv-modes.def up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/riscv-opc.h up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/riscv-protos.h up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/riscv.c up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/riscv.h up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/riscv.md up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/riscv.opt up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/sync.md up to 1.2
external/gpl3/gcc/dist/gcc/config/riscv/t-elf   up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/t-linux64 up to 1.1
external/gpl3/gcc/dist/gcc/config/riscv/t-netbsd64 up to 1.1
external/gpl3/gcc/dist/gcc/common/config/or1k/or1k-common.c up to 1.1
external/gpl3/gcc/dist/gcc/common/config/riscv/riscv-common.c up to 1.1
external/gpl3/gcc/dist/libgcc/config/or1k/or1k-asm.h up to 1.1
external/gpl3/gcc/dist/libgcc/config/or1k/crti.S up to 1.1
external/gpl3/gcc/dist/libgcc/config/or1k/crtn.S up to 1.1
external/gpl3/gcc/dist/libgcc/config/or1k/linux-unwind.h up to 1.1
external/gpl3/gcc/dist/libgcc/config/or1k/or1k.S up to 1.1
external/gpl3/gcc/dist/libgcc/config/or1k/sfp-machine.h up to 1.1
external/gpl3/gcc/dist/libgcc/config/or1k/t-crtstuff up to 1.1
external/gpl3/gcc/dist/libgcc/config/or1k/t-linux up to 1.1
external/gpl3/gcc/dist/libgcc/config/or1k/t-or1k up to 1.1
external/gpl3/gcc/dist/libgcc/config/riscv/riscv-fp.c up to 1.1
external/gpl3/gcc/dist/libgcc/config/riscv/crti.S up to 1.1
external/gpl3/gcc/dist/libgcc/config/riscv/crtn.S up to 1.1
external/gpl3/gcc/dist/libgcc/config/riscv/t-dpbit up to 1.1
external/gpl3/gcc/dist/libgcc/config/riscv/t-elf up to 1.1
external/gpl3/gcc/dist/libgcc/config/riscv/t-fpbit up to 1.1
external/gpl3/gcc/dist/libgcc/config/riscv/t-linux up to 1.1
external/gpl3/gcc/dist/libgcc/config/riscv/t-tpbit up to 1.1
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_netbsd.cc up to 1.3
external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/powerpc/Makefile up to 1.1
external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/powerpc64/Makefile up to 1.1
external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/riscv32/Makefile up to 1.1
external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/riscv64/Makefile up to 1.1
external/gpl3/gcc/lib/libtsan/Makefile          up to 1.2
external/gpl3/gcc/lib/libtsan/shlib_version     up to 1.1
external/gpl3/gcc/lib/libasan/Makefile          up to 1.9
external/gpl3/gcc/lib/libasan/shlib_version     up to 1.1
external/gpl3/gcc/usr.bin/lto-wrapper/Makefile  up to 1.1
external/gpl3/gcc/usr.bin/lto1/Makefile         up to 1.2
external/gpl3/gcc/Makefile                      up to 1.2
external/gpl3/gcc/README.gcc48                  up to 1.6
external/gpl3/gcc/dist/ChangeLog                up to 1.1.1.6
external/gpl3/gcc/dist/LAST_UPDATED             up to 1.5
external/gpl3/gcc/dist/MD5SUMS                  up to 1.5
external/gpl3/gcc/dist/Makefile.def             up to 1.1.1.4
external/gpl3/gcc/dist/Makefile.in              up to 1.1.1.4
external/gpl3/gcc/dist/configure                up to 1.8
external/gpl3/gcc/dist/configure.ac             up to 1.7
external/gpl3/gcc/dist/config/ChangeLog         up to 1.1.1.6
external/gpl3/gcc/dist/contrib/ChangeLog        up to 1.1.1.6
external/gpl3/gcc/dist/contrib/reghunt/ChangeLog up to 1.1.1.5
external/gpl3/gcc/dist/contrib/regression/ChangeLog up to 1.1.1.5
external/gpl3/gcc/dist/fixincludes/ChangeLog    up to 1.1.1.5
external/gpl3/gcc/dist/fixincludes/fixincl.x    up to 1.1.1.3
external/gpl3/gcc/dist/fixincludes/inclhack.def up to 1.1.1.3
external/gpl3/gcc/dist/fixincludes/tests/base/assert.h up to 1.1.1.2
external/gpl3/gcc/dist/gcc/ChangeLog            up to 1.11
external/gpl3/gcc/dist/gcc/DATESTAMP            up to 1.1.1.7
external/gpl3/gcc/dist/gcc/DEV-PHASE            up to 1.1.1.5
external/gpl3/gcc/dist/gcc/config.gcc           up to 1.32
external/gpl3/gcc/dist/gcc/config.in            up to 1.1.1.4
external/gpl3/gcc/dist/gcc/configure            up to 1.11
external/gpl3/gcc/dist/gcc/configure.ac         up to 1.9
external/gpl3/gcc/dist/gcc/convert.c            up to 1.1.1.4
external/gpl3/gcc/dist/gcc/expr.c               up to 1.7
external/gpl3/gcc/dist/gcc/fold-const.c         up to 1.1.1.7
external/gpl3/gcc/dist/gcc/graphite-clast-to-gimple.c up to 1.1.1.3
external/gpl3/gcc/dist/gcc/graphite-interchange.c up to 1.1.1.3
external/gpl3/gcc/dist/gcc/graphite-optimize-isl.c up to 1.1.1.2
external/gpl3/gcc/dist/gcc/graphite-poly.c      up to 1.1.1.3
external/gpl3/gcc/dist/gcc/graphite-sese-to-poly.c up to 1.1.1.3
external/gpl3/gcc/dist/gcc/ipa-pure-const.c     up to 1.1.1.3
external/gpl3/gcc/dist/gcc/omp-low.c            up to 1.1.1.4
external/gpl3/gcc/dist/gcc/ree.c                up to 1.1.1.2
external/gpl3/gcc/dist/gcc/rtlanal.c            up to 1.2
external/gpl3/gcc/dist/gcc/stor-layout.c        up to 1.1.1.3
external/gpl3/gcc/dist/gcc/tree-data-ref.c      up to 1.1.1.3
external/gpl3/gcc/dist/gcc/tree-data-ref.h      up to 1.1.1.3
external/gpl3/gcc/dist/gcc/tree-nrv.c           up to 1.1.1.3
external/gpl3/gcc/dist/gcc/tree-ssa-forwprop.c  up to 1.1.1.3
external/gpl3/gcc/dist/gcc/tree-ssa-reassoc.c   up to 1.1.1.4
external/gpl3/gcc/dist/gcc/tree-ssa-strlen.c    up to 1.1.1.2
external/gpl3/gcc/dist/gcc/tree-ssa-tail-merge.c up to 1.1.1.3
external/gpl3/gcc/dist/gcc/tree-vect-slp.c      up to 1.1.1.4
external/gpl3/gcc/dist/gcc/tree.c               up to 1.1.1.4
external/gpl3/gcc/dist/gcc/tsan.c               up to 1.1.1.2
external/gpl3/gcc/dist/gcc/c/ChangeLog          up to 1.1.1.4
external/gpl3/gcc/dist/gcc/c-family/ChangeLog   up to 1.1.1.3
external/gpl3/gcc/dist/gcc/config/darwin-c.c    up to 1.1.1.3
external/gpl3/gcc/dist/gcc/config/darwin-driver.c up to 1.1.1.3
external/gpl3/gcc/dist/gcc/config/netbsd.h      up to 1.14
external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-elf-raw.h up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-linux.h up to 1.1.1.3
external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-protos.h up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.c up to 1.1.1.5
external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h up to 1.1.1.3
external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.opt up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/arm/arm.h     up to 1.10
external/gpl3/gcc/dist/gcc/config/arm/arm.md    up to 1.8
external/gpl3/gcc/dist/gcc/config/i386/i386.c   up to 1.9
external/gpl3/gcc/dist/gcc/config/pa/pa.md      up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/rs6000/altivec.h up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/rs6000/altivec.md up to 1.1.1.5
external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h up to 1.8
external/gpl3/gcc/dist/gcc/config/rs6000/rs6000-builtin.def up to 1.1.1.5
external/gpl3/gcc/dist/gcc/config/rs6000/rs6000-c.c up to 1.1.1.5
external/gpl3/gcc/dist/gcc/config/rs6000/rs6000-protos.h up to 1.1.1.5
external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c up to 1.10
external/gpl3/gcc/dist/gcc/config/rs6000/vsx.md up to 1.1.1.6
external/gpl3/gcc/dist/gcc/config/rs6000/xcoff.h up to 1.1.1.3
external/gpl3/gcc/dist/gcc/config/sh/sh.c       up to 1.7
external/gpl3/gcc/dist/gcc/config/sh/sh.md      up to 1.1.1.5
external/gpl3/gcc/dist/gcc/config/sparc/leon.md up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/sparc/sparc-opts.h up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/sparc/sparc.c up to 1.1.1.5
external/gpl3/gcc/dist/gcc/config/sparc/sparc.h up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/sparc/sparc.md up to 1.4
external/gpl3/gcc/dist/gcc/config/sparc/sparc.opt up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/sparc/t-rtems up to 1.1.1.2
external/gpl3/gcc/dist/gcc/cp/ChangeLog         up to 1.1.1.7
external/gpl3/gcc/dist/gcc/cp/parser.c          up to 1.1.1.6
external/gpl3/gcc/dist/gcc/cp/pt.c              up to 1.1.1.5
external/gpl3/gcc/dist/gcc/cp/semantics.c       up to 1.1.1.5
external/gpl3/gcc/dist/gcc/doc/extend.texi      up to 1.1.1.5
external/gpl3/gcc/dist/gcc/doc/install.texi     up to 1.1.1.5
external/gpl3/gcc/dist/gcc/doc/invoke.texi      up to 1.7
external/gpl3/gcc/dist/gcc/doc/md.texi          up to 1.1.1.6
external/gpl3/gcc/dist/gcc/doc/tm.texi          up to 1.1.1.4
external/gpl3/gcc/dist/gcc/doc/tm.texi.in       up to 1.1.1.3
external/gpl3/gcc/dist/gcc/lto/ChangeLog        up to 1.1.1.5
external/gpl3/gcc/dist/gcc/objc/ChangeLog       up to 1.1.1.5
external/gpl3/gcc/dist/gcc/objcp/ChangeLog      up to 1.1.1.5
external/gpl3/gcc/dist/gnattools/ChangeLog      up to 1.1.1.3
external/gpl3/gcc/dist/include/ChangeLog        up to 1.1.1.5
external/gpl3/gcc/dist/intl/ChangeLog           up to 1.1.1.5
external/gpl3/gcc/dist/libbacktrace/ChangeLog   up to 1.1.1.4
external/gpl3/gcc/dist/libcpp/ChangeLog         up to 1.1.1.5
external/gpl3/gcc/dist/libcpp/lex.c             up to 1.5
external/gpl3/gcc/dist/libcpp/line-map.c        up to 1.1.1.4
external/gpl3/gcc/dist/libdecnumber/ChangeLog   up to 1.1.1.5
external/gpl3/gcc/dist/libgcc/ChangeLog         up to 1.1.1.7
external/gpl3/gcc/dist/libgcc/config/libbid/ChangeLog up to 1.1.1.5
external/gpl3/gcc/dist/libgcc/config/pa/linux-unwind.h up to 1.1.1.2
external/gpl3/gcc/dist/libgcc/config/sh/lib1funcs.S up to 1.1.1.2
external/gpl3/gcc/dist/libgomp/ChangeLog        up to 1.1.1.5
external/gpl3/gcc/dist/libgomp/configure.tgt    up to 1.1.1.3
external/gpl3/gcc/dist/libiberty/ChangeLog      up to 1.1.1.5
external/gpl3/gcc/dist/libitm/ChangeLog         up to 1.1.1.3
external/gpl3/gcc/dist/libitm/configure.tgt     up to 1.1.1.3
external/gpl3/gcc/dist/libitm/libitm.info       up to 1.1.1.2
external/gpl3/gcc/dist/libmudflap/ChangeLog     up to 1.1.1.5
external/gpl3/gcc/dist/libobjc/ChangeLog        up to 1.1.1.6
external/gpl3/gcc/dist/libsanitizer/ChangeLog   up to 1.1.1.3
external/gpl3/gcc/dist/libsanitizer/configure.tgt up to 1.3
external/gpl3/gcc/dist/libsanitizer/asan/asan_intercepted_functions.h up to 1.2
external/gpl3/gcc/dist/libsanitizer/asan/asan_internal.h up to 1.2
external/gpl3/gcc/dist/libsanitizer/asan/asan_linux.cc up to 1.5
external/gpl3/gcc/dist/libsanitizer/asan/asan_malloc_linux.cc up to 1.2
external/gpl3/gcc/dist/libsanitizer/asan/asan_posix.cc up to 1.2
external/gpl3/gcc/dist/libsanitizer/interception/interception.h up to 1.2
external/gpl3/gcc/dist/libsanitizer/interception/interception_linux.cc up to 1.3
external/gpl3/gcc/dist/libsanitizer/interception/interception_linux.h up to 1.2
external/gpl3/gcc/dist/libsanitizer/interception/interception_type_test.cc up to 1.2
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc up to 1.2
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_internal_defs.h up to 1.2
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_placement_new.h up to 1.2
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc up to 1.2
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_posix.cc up to 1.2
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_procmaps.h up to 1.2
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_symbolizer_linux.cc up to 1.2
external/gpl3/gcc/dist/libsanitizer/tsan/tsan_symbolize_addr2line_linux.cc up to 1.2
external/gpl3/gcc/dist/libssp/ChangeLog         up to 1.1.1.5
external/gpl3/gcc/dist/libstdc++-v3/ChangeLog   up to 1.1.1.7
external/gpl3/gcc/dist/libstdc++-v3/configure.host up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/config/os/mingw32/os_defines.h up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/config/os/mingw32-w64/os_defines.h up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/doc/html/manual/status.html up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/include/bits/stl_algo.h up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/include/std/functional up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/std/tuple up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/tr1/functional up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/libsupc++/dyncast.cc up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/libsupc++/eh_personality.cc up to 1.1.1.3
external/gpl3/gcc/dist/lto-plugin/ChangeLog     up to 1.1.1.5
external/gpl3/gcc/dist/maintainer-scripts/ChangeLog up to 1.1.1.6
external/gpl3/gcc/lib/Makefile                  up to 1.8
external/gpl3/gcc/lib/crtstuff/arch/coldfire.mk up to 1.3
external/gpl3/gcc/lib/crtstuff/arch/m68000.mk   up to 1.6
external/gpl3/gcc/lib/libbacktrace/arch/alpha/backtrace-supported.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/alpha/config.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/arm/backtrace-supported.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/arm/config.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/armeb/backtrace-supported.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/armeb/config.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/coldfire/backtrace-supported.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/coldfire/config.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/hppa/backtrace-supported.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/hppa/config.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/i386/backtrace-supported.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/i386/config.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/m68000/backtrace-supported.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/m68000/config.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/m68k/backtrace-supported.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/m68k/config.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/mips64eb/backtrace-supported.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/mips64eb/config.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/mips64el/backtrace-supported.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/mips64el/config.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/mipseb/backtrace-supported.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/mipseb/config.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/mipsel/backtrace-supported.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/mipsel/config.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/powerpc/backtrace-supported.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/powerpc/config.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/backtrace-supported.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/config.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/sh3eb/backtrace-supported.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/sh3eb/config.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/sh3el/backtrace-supported.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/sh3el/config.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/sparc/backtrace-supported.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/sparc/config.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/sparc64/backtrace-supported.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/sparc64/config.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/vax/backtrace-supported.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/vax/config.h up to 1.3
external/gpl3/gcc/lib/libbacktrace/arch/x86_64/backtrace-supported.h up to 1.2
external/gpl3/gcc/lib/libbacktrace/arch/x86_64/config.h up to 1.2
external/gpl3/gcc/lib/libgcc/Makefile.inc       up to 1.29
external/gpl3/gcc/lib/libgcc/arch/m68000/defs.mk up to 1.2
external/gpl3/gcc/lib/libgcc/arch/powerpc64/defs.mk up to 1.3
external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile  up to 1.11
external/gpl3/gcc/lib/libgcc/libgcov/arch/alpha/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/arm/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/armeb/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/coldfire/gcov-iov.h up to 1.5
external/gpl3/gcc/lib/libgcc/libgcov/arch/earm/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmeb/gcov-iov.h up to 1.5
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmhf/gcov-iov.h up to 1.5
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmhfeb/gcov-iov.h up to 1.5
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4/gcov-iov.h up to 1.5
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4eb/gcov-iov.h up to 1.5
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6/gcov-iov.h up to 1.5
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6eb/gcov-iov.h up to 1.5
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6hf/gcov-iov.h up to 1.5
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6hfeb/gcov-iov.h up to 1.5
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7/gcov-iov.h up to 1.5
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7eb/gcov-iov.h up to 1.5
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7hf/gcov-iov.h up to 1.5
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7hfeb/gcov-iov.h up to 1.5
external/gpl3/gcc/lib/libgcc/libgcov/arch/hppa/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/i386/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/m68000/gcov-iov.h up to 1.5
external/gpl3/gcc/lib/libgcc/libgcov/arch/m68k/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/mips64eb/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/mips64el/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/mipseb/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/mipsel/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc64/gcov-iov.h up to 1.4
external/gpl3/gcc/lib/libgcc/libgcov/arch/sh3eb/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/sh3el/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/sparc/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/sparc64/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/vax/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/x86_64/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgomp/arch/m68000/config.h up to 1.3
external/gpl3/gcc/lib/libgomp/arch/m68000/libgomp.spec up to 1.3
external/gpl3/gcc/lib/libiberty/arch/coldfire/config.h up to 1.3
external/gpl3/gcc/lib/libiberty/arch/m68000/config.h up to 1.3
external/gpl3/gcc/lib/liblto_plugin/Makefile    up to 1.3
external/gpl3/gcc/lib/libmudflap/Makefile       up to 1.6
external/gpl3/gcc/lib/libobjc/arch/m68000/config.h up to 1.3
external/gpl3/gcc/lib/libstdc++-v3/Makefile     up to 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/alpha/c++config.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/alpha/gstdint.h up to 1.9
external/gpl3/gcc/lib/libstdc++-v3/arch/arm/c++config.h up to 1.16
external/gpl3/gcc/lib/libstdc++-v3/arch/arm/gstdint.h up to 1.9
external/gpl3/gcc/lib/libstdc++-v3/arch/armeb/c++config.h up to 1.15
external/gpl3/gcc/lib/libstdc++-v3/arch/armeb/gstdint.h up to 1.9
external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/c++config.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/gstdint.h up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/earm/c++config.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/earm/gstdint.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb/c++config.h up to 1.11
external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb/gstdint.h up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/c++config.h up to 1.11
external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/gstdint.h up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb/c++config.h up to 1.9
external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb/gstdint.h up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4/c++config.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4/gstdint.h up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb/c++config.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb/gstdint.h up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6/c++config.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6/gstdint.h up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb/c++config.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb/gstdint.h up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf/c++config.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf/gstdint.h up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb/c++config.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb/gstdint.h up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7/c++config.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7/gstdint.h up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb/c++config.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb/gstdint.h up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf/c++config.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf/gstdint.h up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hfeb/c++config.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hfeb/gstdint.h up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/hppa/c++config.h up to 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/hppa/gstdint.h up to 1.10
external/gpl3/gcc/lib/libstdc++-v3/arch/i386/c++config.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/i386/gstdint.h up to 1.9
external/gpl3/gcc/lib/libstdc++-v3/arch/m68000/c++config.h up to 1.10
external/gpl3/gcc/lib/libstdc++-v3/arch/m68000/gstdint.h up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/m68k/c++config.h up to 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/m68k/gstdint.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/mips64eb/c++config.h up to 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/mips64eb/gstdint.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/mips64el/c++config.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/mips64el/gstdint.h up to 1.9
external/gpl3/gcc/lib/libstdc++-v3/arch/mipseb/c++config.h up to 1.15
external/gpl3/gcc/lib/libstdc++-v3/arch/mipseb/gstdint.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/mipsel/c++config.h up to 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/mipsel/gstdint.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h up to 1.15
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/gstdint.h up to 1.9
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/defs.mk up to 1.3
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/gstdint.h up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb/c++config.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb/gstdint.h up to 1.9
external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/c++config.h up to 1.15
external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/gstdint.h up to 1.9
external/gpl3/gcc/lib/libstdc++-v3/arch/sparc/c++config.h up to 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/sparc/gstdint.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/sparc64/c++config.h up to 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/sparc64/gstdint.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/vax/c++config.h up to 1.16
external/gpl3/gcc/lib/libstdc++-v3/arch/vax/gstdint.h up to 1.8
external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64/c++config.h up to 1.15
external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64/gstdint.h up to 1.9
external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/Makefile up to 1.3
external/gpl3/gcc/usr.bin/Makefile              up to 1.7
external/gpl3/gcc/usr.bin/backend/Makefile      up to 1.23
external/gpl3/gcc/usr.bin/frontend/Makefile     up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/alpha/auto-host.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/alpha/configargs.h up to 1.15
external/gpl3/gcc/usr.bin/gcc/arch/alpha/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/arm/auto-host.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/arm/configargs.h up to 1.17
external/gpl3/gcc/usr.bin/gcc/arch/arm/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/armeb/auto-host.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/armeb/configargs.h up to 1.17
external/gpl3/gcc/usr.bin/gcc/arch/armeb/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/coldfire/auto-host.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/coldfire/bversion.h up to 1.3
external/gpl3/gcc/usr.bin/gcc/arch/coldfire/configargs.h up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/coldfire/defs.mk up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/coldfire/plugin-version.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/coldfire/tm.h up to 1.3
external/gpl3/gcc/usr.bin/gcc/arch/earm/auto-host.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/earm/configargs.h up to 1.15
external/gpl3/gcc/usr.bin/gcc/arch/earm/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/earmeb/auto-host.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/earmeb/configargs.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/earmeb/plugin-version.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/earmhf/auto-host.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/earmhf/configargs.h up to 1.12
external/gpl3/gcc/usr.bin/gcc/arch/earmhf/plugin-version.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/earmhfeb/auto-host.h up to 1.4
external/gpl3/gcc/usr.bin/gcc/arch/earmhfeb/configargs.h up to 1.10
external/gpl3/gcc/usr.bin/gcc/arch/earmhfeb/plugin-version.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/earmv4/auto-host.h up to 1.4
external/gpl3/gcc/usr.bin/gcc/arch/earmv4/configargs.h up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv4/plugin-version.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/earmv4eb/auto-host.h up to 1.4
external/gpl3/gcc/usr.bin/gcc/arch/earmv4eb/configargs.h up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv4eb/plugin-version.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/earmv6/auto-host.h up to 1.4
external/gpl3/gcc/usr.bin/gcc/arch/earmv6/configargs.h up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv6/plugin-version.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/earmv6eb/auto-host.h up to 1.4
external/gpl3/gcc/usr.bin/gcc/arch/earmv6eb/configargs.h up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv6eb/plugin-version.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/earmv6hf/auto-host.h up to 1.4
external/gpl3/gcc/usr.bin/gcc/arch/earmv6hf/configargs.h up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv6hf/plugin-version.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/earmv6hfeb/auto-host.h up to 1.4
external/gpl3/gcc/usr.bin/gcc/arch/earmv6hfeb/configargs.h up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv6hfeb/plugin-version.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/earmv7/auto-host.h up to 1.4
external/gpl3/gcc/usr.bin/gcc/arch/earmv7/configargs.h up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv7/plugin-version.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/earmv7eb/auto-host.h up to 1.4
external/gpl3/gcc/usr.bin/gcc/arch/earmv7eb/configargs.h up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv7eb/plugin-version.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/auto-host.h up to 1.4
external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/configargs.h up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/plugin-version.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/earmv7hfeb/auto-host.h up to 1.4
external/gpl3/gcc/usr.bin/gcc/arch/earmv7hfeb/configargs.h up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv7hfeb/plugin-version.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/hppa/auto-host.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/hppa/configargs.h up to 1.17
external/gpl3/gcc/usr.bin/gcc/arch/hppa/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/i386/auto-host.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/i386/configargs.h up to 1.19
external/gpl3/gcc/usr.bin/gcc/arch/i386/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/m68000/auto-host.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/m68000/bversion.h up to 1.4
external/gpl3/gcc/usr.bin/gcc/arch/m68000/configargs.h up to 1.12
external/gpl3/gcc/usr.bin/gcc/arch/m68000/defs.mk up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/m68000/plugin-version.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/m68000/tm.h  up to 1.3
external/gpl3/gcc/usr.bin/gcc/arch/m68k/auto-host.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/m68k/configargs.h up to 1.14
external/gpl3/gcc/usr.bin/gcc/arch/m68k/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/mips64eb/auto-host.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/mips64eb/configargs.h up to 1.15
external/gpl3/gcc/usr.bin/gcc/arch/mips64eb/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/mips64el/auto-host.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/mips64el/configargs.h up to 1.16
external/gpl3/gcc/usr.bin/gcc/arch/mips64el/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/mipseb/auto-host.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/mipseb/configargs.h up to 1.15
external/gpl3/gcc/usr.bin/gcc/arch/mipseb/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/mipsel/auto-host.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/mipsel/configargs.h up to 1.16
external/gpl3/gcc/usr.bin/gcc/arch/mipsel/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/powerpc/auto-host.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/powerpc/configargs.h up to 1.21
external/gpl3/gcc/usr.bin/gcc/arch/powerpc/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/auto-host.h up to 1.4
external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/bversion.h up to 1.3
external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/configargs.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/defs.mk up to 1.4
external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/gtyp-input.list up to 1.3
external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/multilib.h up to 1.3
external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/plugin-version.h up to 1.3
external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/tm.h up to 1.3
external/gpl3/gcc/usr.bin/gcc/arch/sh3eb/auto-host.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/sh3eb/configargs.h up to 1.16
external/gpl3/gcc/usr.bin/gcc/arch/sh3eb/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/sh3el/auto-host.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/sh3el/configargs.h up to 1.18
external/gpl3/gcc/usr.bin/gcc/arch/sh3el/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/sparc/auto-host.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/sparc/configargs.h up to 1.16
external/gpl3/gcc/usr.bin/gcc/arch/sparc/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/sparc64/auto-host.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/sparc64/configargs.h up to 1.17
external/gpl3/gcc/usr.bin/gcc/arch/sparc64/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/vax/auto-host.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/vax/configargs.h up to 1.17
external/gpl3/gcc/usr.bin/gcc/arch/vax/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/x86_64/auto-host.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/x86_64/configargs.h up to 1.20
external/gpl3/gcc/usr.bin/gcc/arch/x86_64/plugin-version.h up to 1.7
external/gpl3/gcc/usr.bin/libcpp/arch/alpha/config.h up to 1.3
external/gpl3/gcc/usr.bin/libcpp/arch/armeb/config.h up to 1.2
external/gpl3/gcc/usr.bin/libcpp/arch/x86_64/config.h up to 1.3
distrib/sets/lists/base/ad.arm			1.58
distrib/sets/lists/base/ad.arm			1.61
distrib/sets/lists/base/ad.mips			1.53
distrib/sets/lists/base/ad.mips			1.56
distrib/sets/lists/base/ad.powerpc		1.22
distrib/sets/lists/base/ad.powerpc		1.25
distrib/sets/lists/base/ad.powerpc		1.26
distrib/sets/lists/base/md.amd64		1.249
distrib/sets/lists/base/md.amd64		1.252
distrib/sets/lists/base/md.sparc64		1.237
distrib/sets/lists/base/md.sparc64		1.240
distrib/sets/lists/base/shl.mi			1.718
distrib/sets/lists/base/shl.mi			1.721
distrib/sets/lists/base/shl.mi			1.722
distrib/sets/lists/comp/ad.arm			1.62
distrib/sets/lists/comp/ad.mips			1.52
distrib/sets/lists/comp/ad.powerpc		1.74
distrib/sets/lists/comp/ad.powerpc		1.75
distrib/sets/lists/comp/md.amd64		1.226
distrib/sets/lists/comp/md.sparc64		1.189
distrib/sets/lists/comp/mi			1.1918
distrib/sets/lists/comp/mi			1.1919
distrib/sets/lists/comp/mi			1.1937
distrib/sets/lists/comp/mi			1.1937
distrib/sets/lists/comp/shl.mi			1.268
distrib/sets/lists/comp/shl.mi			1.268
distrib/sets/lists/comp/shl.mi			1.269
distrib/sets/lists/debug/ad.arm			1.47
distrib/sets/lists/debug/ad.arm			1.50
distrib/sets/lists/debug/ad.mips		1.43
distrib/sets/lists/debug/ad.mips		1.46
distrib/sets/lists/debug/ad.powerpc		1.23
distrib/sets/lists/debug/ad.powerpc		1.26
distrib/sets/lists/debug/md.amd64		1.67
distrib/sets/lists/debug/md.amd64		1.70
distrib/sets/lists/debug/md.evbmips		1.5
distrib/sets/lists/debug/md.sparc64		1.66
distrib/sets/lists/debug/md.sparc64		1.69
distrib/sets/lists/debug/mi			1.101
distrib/sets/lists/debug/mi			1.101
distrib/sets/lists/debug/mi			1.90
distrib/sets/lists/debug/mi			1.91
distrib/sets/lists/debug/shl.mi			1.77
distrib/sets/lists/debug/shl.mi			1.80
distrib/sets/lists/debug/shl.mi			1.81
lib/Makefile					1.216
lib/Makefile					1.217
lib/Makefile					1.218
lib/libexecinfo/Makefile			1.6
lib/libexecinfo/Makefile			1.7
lib/libexecinfo/Makefile			1.8
lib/libexecinfo/unwind.h			1.3
sys/lib/libunwind/Makefile.inc			1.10

Sync gcc and its libraries with -current, including the import
of gcc 4.8.4, fixes to the use of cpu specific string instructions
on powerpc and a branch delay slot fix for SH from upstream.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.29 2014/08/21 08:52:23 christos Exp $
d152 1
a152 4
# Use dynamic sources to arrange for the C file to be the first dependency
# so ${.IMPSRC} will work.

${LIB2_EH:.c=.o}: $(.PREFIX).c
d156 1
a156 1
${LIB2_EH:.c=.pico}: $(.PREFIX).c
d160 1
a160 1
${G_LIB2_DIVMOD_FUNCS:=.o}: $(.PREFIX).c
d164 1
a164 1
${G_LIB2_DIVMOD_FUNCS:=.pico}: $(.PREFIX).c
@


1.27
log
@Skip assembler helpers when using HAVE_LIBGCC_EH=no. Always use the
generic unwind.h version in that case, even on ARM.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.26 2014/05/03 16:43:10 martin Exp $
d13 1
a13 1
DIST=		${NETBSDSRCDIR}/external/gpl3/gcc/dist
d15 3
a17 3
GCCARCH=	${NETBSDSRCDIR}/external/gpl3/gcc/usr.bin/gcc/arch/${LIBGCC_MACHINE_ARCH}
GCCARCHLIBGCC=	${NETBSDSRCDIR}/external/gpl3/gcc/lib/libgcc/arch/${LIBGCC_MACHINE_ARCH}
GCCARCHXX=	${NETBSDSRCDIR}/external/gpl3/gcc/lib/libstdc++-v3/arch/${LIBGCC_MACHINE_ARCH}
@


1.26
log
@Fix comment pointing at the source of the list of functions and add
two missing ones: _clrsbsi2 and _clrsbdi2
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.25 2014/03/21 20:54:13 joerg Exp $
d95 3
a97 1
LIB2_EH=	${G_LIB2ADDEH:M*.c:T:Nunwind-dw2.c:Nunwind-dw2-fde-dip.c:Nunwind-sjlj.c:Nunwind-c.c}
d100 1
a101 1
LIB2_EHASM=	${G_LIB2ADDEH:M*.S:T}
@


1.25
log
@For HAVE_LIBGCC_EH=no, skip libgcc's unwind code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.24 2014/03/09 23:23:09 mrg Exp $
d43 1
a43 1
# This is copied from gcc/mklibgcc.in:$lib2funcs
d55 1
a55 1
	_bswapsi2 _bswapdi2
@


1.25.2.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.28 2014/06/01 19:51:01 mrg Exp $
d13 1
a13 1
DIST=		${GCCDIST}
d15 3
a17 3
GCCARCH=	${GCC_SUBDIR}/usr.bin/gcc/arch/${LIBGCC_MACHINE_ARCH}
GCCARCHLIBGCC=	${GCC_SUBDIR}/lib/libgcc/arch/${LIBGCC_MACHINE_ARCH}
GCCARCHXX=	${GCC_SUBDIR}/lib/libstdc++-v3/arch/${LIBGCC_MACHINE_ARCH}
d43 1
a43 1
# This is copied from dist/libgcc/Makefile.in:$lib2funcs
d55 1
a55 1
	_bswapsi2 _bswapdi2 _clrsbsi2 _clrsbdi2
d95 1
a95 3
LIB2_EH=	${G_LIB2ADDEH:M*.c:T:Nunwind-dw2.c:Nunwind-dw2-fde-dip.c:Nunwind-sjlj.c:Nunwind-c.c:Nunwind-arm.c:Npr-support.c}
LIB2_EHASM=	${G_LIB2ADDEH:M*.S:T:Nlibunwind.S}
G_CONFIGLINKS:= ${G_CONFIGLINKS:S,libgcc/config/arm/unwind-arm.h,libgcc/unwind-generic.h,}
d98 1
a99 1
.endif
@


1.24
log
@more ia64 support:

# We have to weed out any existing func.S file that may exist
# from the list of files we create.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.23 2014/03/01 10:00:33 mrg Exp $
d94 3
d98 1
@


1.23
log
@merge GCC 4.8 build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.20 2013/07/18 22:39:57 matt Exp $
d96 3
d100 5
a104 1
LIB1ASMFUNCS=	${G_LIB1ASMFUNCS:=.S}
@


1.22
log
@prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
  because it arranges for ../Makefile.inc to be included earlier, and
  don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
  valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
    is kind of sketchy, it would be great if this was fixed.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile.inc,v 1.21 2013/08/22 00:16:54 matt Exp $
d6 2
a7 3
LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
.if exists(${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}.mk)
.include "${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}.mk"
d13 1
a13 1
DIST=		${GCCDIST}
d15 3
a17 3
GCCARCH=	${GCC_SUBDIR}/usr.bin/gcc/arch/${LIBGCC_MACHINE_ARCH}
GCCARCHLIBGCC=	${GCC_SUBDIR}/lib/libgcc/arch/${LIBGCC_MACHINE_ARCH}
GCCARCHXX=	${GCC_SUBDIR}/lib/libstdc++-v3/arch/${LIBGCC_MACHINE_ARCH}
d24 2
a25 1
CPPFLAGS+=	-I${DIST} -I${DIST}/gcc/cp -I${DIST}/gcc/config -I${GCCARCHXX} -I.
d35 4
d46 10
a55 7
	_clear_cache _enable_execute_stack _trampoline __main _absvsi2 \
	_absvdi2 _addvsi3 _addvdi3 _subvsi3 _subvdi3 _mulvsi3 _mulvdi3 \
	_negvsi2 _negvdi2 _ctors _ffssi2 _ffsdi2 _clz _clzsi2 _clzdi2  \
	_ctzsi2 _ctzdi2 _popcount_tab _popcountsi2 _popcountdi2        \
	_paritysi2 _paritydi2 _powisf2 _powidf2 _powixf2 _powitf2      \
	_mulsc3 _muldc3 _mulxc3 _multc3 _divsc3 _divdc3 _divxc3        \
	_divtc3 _bswapsi2 _bswapdi2
d100 3
a102 1
DPSRCS+=	${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}.mk
d113 2
a114 1
.if (${LIBGCC_MACHINE_ARCH} == "m68000" || ${LIBGCC_MACHINE_ARCH} == "m68k")
d116 3
a118 3
BUILDSYMLINKS+=	${DIST}/gcc/config/m68k/fpgnulib.c fpgnulib.c
BUILDSYMLINKS+=	${DIST}/gcc/config/m68k/fpgnulib.c xfgnulib.c
CPPFLAGS.xfgnulib.c+=-DEXTFLOAT=1
d164 1
a164 1
	${G_LIB2ADD:H:O:u} ${G_LIB2ADDEH:H:O:u}
d169 7
a175 4
.if ${MKGCC} != "no" && defined(G_UNWIND_H) && !empty(G_UNWIND_H)
# XXX figure out why Makefile.hacks doesn't work
BUILDSYMLINKS+=	${G_UNWIND_H} unwind.h
DPSRCS+=	unwind.h
d178 2
a179 19
# these aren't necessary but are #include'd
FAKEHEADERS=options.h insn-flags.h insn-constants.h sysroot-suffix.h
${FAKEHEADERS}:
	${_MKTARGET_CREATE}
	touch ${.TARGET}
DPSRCS+=	${FAKEHEADERS}
CLEANFILES+=	${FAKEHEADERS}

# XXX arm hack
.if !empty(LIBGCC_MACHINE_ARCH:M*arm*)
${SRCS}: insn-modes.h
# XXX XXX
${__DPSRCS.d}: insn-modes.h
insn-modes.h:
	${_MKTARGET_CREATE}
	echo "enum machine_mode { X };" > ${.TARGET}
DPSRCS+=	insn-modes.h
CLEANFILES+=	insn-modes.h
.endif
@


1.21
log
@Add MACHINE_ARCH's evbearmv5-e[bl] to work
Don't build _muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 on earm and coldfire
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.20 2013/07/18 22:39:57 matt Exp $
d12 1
a12 1
DIST=		${NETBSDSRCDIR}/external/gpl3/gcc/dist
d14 3
a16 3
GCCARCH=	${NETBSDSRCDIR}/external/gpl3/gcc/usr.bin/gcc/arch/${LIBGCC_MACHINE_ARCH}
GCCARCHLIBGCC=	${NETBSDSRCDIR}/external/gpl3/gcc/lib/libgcc/arch/${LIBGCC_MACHINE_ARCH}
GCCARCHXX=	${NETBSDSRCDIR}/external/gpl3/gcc/lib/libstdc++-v3/arch/${LIBGCC_MACHINE_ARCH}
@


1.20
log
@Don't emit _fix _floatun for coldfire
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.19 2013/02/14 09:19:28 matt Exp $
d4 1
a4 2
LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH}
#.info LIBGCC_MACHINE_ARCH=${LIBGCC_MACHINE_ARCH}
d48 8
a55 1
.if ${MACHINE_ARCH} != "coldfire"
d172 1
a172 1
.if ${MACHINE_CPU} == "arm"
@


1.19
log
@For compat, use LIBGCC_MACHINE_ARCH (which defaults to MACHINE_ARCH).
When generating .hidden stub, use ${COPTS}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.18 2013/02/03 01:59:55 matt Exp $
d49 2
d67 1
@


1.19.2.1
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.20 2013/07/18 22:39:57 matt Exp $
a48 2
.if ${MACHINE_ARCH} != "coldfire"

a64 1
.endif
@


1.18
log
@Use MACHINE_CPU for arm instead of MACHINE_ARCH
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.17 2012/12/16 15:32:38 skrll Exp $
d4 4
a7 2
.if exists(${.CURDIR}/../arch/${MACHINE_ARCH}.mk)
.include "${.CURDIR}/../arch/${MACHINE_ARCH}.mk"
d15 3
a17 3
GCCARCH=	${NETBSDSRCDIR}/external/gpl3/gcc/usr.bin/gcc/arch/${MACHINE_ARCH}
GCCARCHLIBGCC=	${NETBSDSRCDIR}/external/gpl3/gcc/lib/libgcc/arch/${MACHINE_ARCH}
GCCARCHXX=	${NETBSDSRCDIR}/external/gpl3/gcc/lib/libstdc++-v3/arch/${MACHINE_ARCH}
d26 4
a29 4
.if ${MACHINE_ARCH} == "powerpc" || \
    ${MACHINE_ARCH} == "sh3el" || \
    ${MACHINE_ARCH} == "sh3eb" || \
    ${MACHINE_ARCH} == "m68000"
d82 1
a82 1
DPSRCS+=	${.CURDIR}/../arch/${MACHINE_ARCH}.mk
d93 1
a93 1
.if (${MACHINE_ARCH} == "m68000" || ${MACHINE_ARCH} == "m68k")
d100 1
a100 1
.if ${MACHINE_ARCH} == "powerpc64"
d175 1
a175 1
.if defined(HAVE_GCC) && ${HAVE_GCC} == 45 && ${MACHINE_ARCH} == "m68k"
@


1.17
log
@Remove G_CONFIGDIR from .PATH as nothing defines it (anymore)

Add the paths from G_LIB2ADDEH to .PATH (for ia64)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.16 2012/12/07 15:38:04 christos Exp $
d161 1
a161 1
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "armeb"
@


1.16
log
@If we did not include a specific arch file G_UNWIND_H will not be defined.
Perhaps it is better to error out in that case?
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.15 2012/08/29 03:12:08 msaitoh Exp $
d141 1
a141 1
	${G_CONFIGDIR} ${G_LIB2ADD:H:O:u}
@


1.15
log
@Don't add unwind.h stuff into BUILDSYMLINKS when MKGCC=="no".
Fixes "Wrong number of words (1) in .for substitution list with 2 vars" problem
while mknative-ing. Approved by mrg.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.14 2012/08/06 00:19:03 matt Exp $
d146 1
a146 1
.if ${MKGCC} != "no"
@


1.15.2.1
log
@resync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.15 2012/08/29 03:12:08 msaitoh Exp $
d4 2
a5 4
LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH}
#.info LIBGCC_MACHINE_ARCH=${LIBGCC_MACHINE_ARCH}
.if exists(${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}.mk)
.include "${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}.mk"
d13 3
a15 3
GCCARCH=	${NETBSDSRCDIR}/external/gpl3/gcc/usr.bin/gcc/arch/${LIBGCC_MACHINE_ARCH}
GCCARCHLIBGCC=	${NETBSDSRCDIR}/external/gpl3/gcc/lib/libgcc/arch/${LIBGCC_MACHINE_ARCH}
GCCARCHXX=	${NETBSDSRCDIR}/external/gpl3/gcc/lib/libstdc++-v3/arch/${LIBGCC_MACHINE_ARCH}
d24 4
a27 4
.if ${LIBGCC_MACHINE_ARCH} == "powerpc" || \
    ${LIBGCC_MACHINE_ARCH} == "sh3el" || \
    ${LIBGCC_MACHINE_ARCH} == "sh3eb" || \
    ${LIBGCC_MACHINE_ARCH} == "m68000"
d80 1
a80 1
DPSRCS+=	${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}.mk
d91 1
a91 1
.if (${LIBGCC_MACHINE_ARCH} == "m68000" || ${LIBGCC_MACHINE_ARCH} == "m68k")
d98 1
a98 1
.if ${LIBGCC_MACHINE_ARCH} == "powerpc64"
d141 1
a141 1
	${G_LIB2ADD:H:O:u} ${G_LIB2ADDEH:H:O:u}
d146 1
a146 1
.if ${MKGCC} != "no" && defined(G_UNWIND_H) && !empty(G_UNWIND_H)
d161 1
a161 1
.if ${MACHINE_CPU} == "arm"
d173 1
a173 1
.if defined(HAVE_GCC) && ${HAVE_GCC} == 45 && ${LIBGCC_MACHINE_ARCH} == "m68k"
@


1.15.2.2
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 3
#	$NetBSD$

LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
d4 4
a7 2
.if exists(${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk)
.include "${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk"
d13 1
a13 1
DIST=		${GCCDIST}
d15 3
a17 3
GCCARCH=	${GCC_SUBDIR}/usr.bin/gcc/arch/${LIBGCC_MACHINE_ARCH}
GCCARCHLIBGCC=	${GCC_SUBDIR}/lib/libgcc/arch/${LIBGCC_MACHINE_ARCH}
GCCARCHXX=	${GCC_SUBDIR}/lib/libstdc++-v3/arch/${LIBGCC_MACHINE_ARCH}
d24 1
a24 2
CPPFLAGS+=	-I${DIST}/libgcc -I${DIST}/libgcc/config
CPPFLAGS+=	-I${DIST}/gcc -I${DIST}/include -I.
a33 4
.if ${LIBGCC_MACHINE_ARCH} == "powerpc"
CPPFLAGS+=	-I${DIST}/gcc/config/rs6000
.endif

d38 1
a38 1
# This is copied from dist/libgcc/Makefile.in:$lib2funcs
d41 7
a47 19
	_clear_cache _trampoline __main \
	_absvsi2 _absvdi2 _addvsi3 _addvdi3 \
	_subvsi3 _subvdi3 _mulvsi3 _mulvdi3 \
	_negvsi2 _negvdi2 \
	_ctors \
	_ffssi2 _ffsdi2 _clz _clzsi2 _clzdi2  _ctzsi2 _ctzdi2 \
	_popcount_tab _popcountsi2 _popcountdi2 _paritysi2 _paritydi2 \
	_powisf2 _powidf2 _powixf2 _powitf2 \
	_mulsc3 _muldc3 _mulxc3 _multc3 _divsc3 _divdc3 _divxc3 _divtc3 \
	_bswapsi2 _bswapdi2 _clrsbsi2 _clrsbdi2

.if ${LIBGCC_MACHINE_ARCH} != "coldfire" && empty(LIBGCC_MACHINE_ARCH:Mearm*)

LIB2FUNCS_ALL+= \
	_muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3

.endif

.if ${LIBGCC_MACHINE_ARCH} != "coldfire" && empty(LIBGCC_MACHINE_ARCH:Mearm*)
a64 1
.endif
a75 5
.if ${HAVE_LIBGCC_EH} == "no"
LIB2_EH=	${G_LIB2ADDEH:M*.c:T:Nunwind-dw2.c:Nunwind-dw2-fde-dip.c:Nunwind-sjlj.c:Nunwind-c.c:Nunwind-arm.c:Npr-support.c}
LIB2_EHASM=	${G_LIB2ADDEH:M*.S:T:Nlibunwind.S}
G_CONFIGLINKS:= ${G_CONFIGLINKS:S,libgcc/config/arm/unwind-arm.h,libgcc/unwind-generic.h,}
.else
a77 4
.endif

# We have to weed out any existing func.S file that may exist
# from the list of files we create.
d79 1
a79 5
. for f in ${G_LIB1ASMFUNCS:=.S}
.  if !exists(${DIST}/libgcc/config/${MACHINE_GNU_ARCH}/${f})
LIB1ASMFUNCS+=	${f}
.  endif
. endfor
d82 1
a82 3
.if exists(${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk)
DPSRCS+=	${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk
.endif
d93 1
a93 2
.if (${LIBGCC_MACHINE_ARCH} == "m68000" || ${LIBGCC_MACHINE_ARCH} == "m68k" || \
     ${LIBGCC_MACHINE_ARCH} == "coldfire")
d95 3
a97 3
BUILDSYMLINKS+=	${DIST}/libgcc/config/m68k/fpgnulib.c fpgnulib.c
BUILDSYMLINKS+=	${DIST}/libgcc/config/m68k/fpgnulib.c xfgnulib.c
CPPFLAGS.xfgnulib.c+=	-DEXTFLOAT=1
d143 1
a143 1
	${G_LIB2ADD:H:O:u} ${G_LIB2ADDEH:H:O:u} ${GCCARCHLIBGCC}
d148 4
a151 6
.if ${MKGCC} != "no"
.if defined(G_CONFIGLINKS) && !empty(G_CONFIGLINKS)
BUILDSYMLINKS+=	${G_CONFIGLINKS}
.for _src _dst in ${G_CONFIGLINKS}
DPSRCS+=	${_dst}
.endfor
d153 19
a173 3
EXTRA_FAKEHEADERS=	options.h libgcc_tm.h
.include "../../Makefile.hacks"

@


1.14
log
@deal with LIB2_EH has ASM (.S) files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.13 2011/09/25 13:34:16 chs Exp $
d146 1
d150 1
@


1.13
log
@m68k needs fpgnulib.c just like m68000 does.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.12 2011/08/15 18:31:20 mrg Exp $
d75 1
@


1.13.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.13 2011/09/25 13:34:16 chs Exp $
a74 1
LIB2_EHASM=	${G_LIB2ADDEH:M*.S:T}
a144 1
.if ${MKGCC} != "no"
a147 1
.endif
@


1.13.2.2
log
@sync with (a bit old) head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.13.2.1 2012/10/30 18:57:35 yamt Exp $
d146 1
a146 1
.if ${MKGCC} != "no" && defined(G_UNWIND_H) && !empty(G_UNWIND_H)
@


1.13.2.3
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.13.2.2 2013/01/16 05:28:01 yamt Exp $
d141 1
a141 1
	${G_LIB2ADD:H:O:u} ${G_LIB2ADDEH:H:O:u}
@


1.13.2.4
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 3
#	$NetBSD: Makefile.inc,v 1.13.2.3 2013/01/23 00:04:43 yamt Exp $

LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
d4 2
a5 2
.if exists(${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk)
.include "${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk"
d13 3
a15 3
GCCARCH=	${NETBSDSRCDIR}/external/gpl3/gcc/usr.bin/gcc/arch/${LIBGCC_MACHINE_ARCH}
GCCARCHLIBGCC=	${NETBSDSRCDIR}/external/gpl3/gcc/lib/libgcc/arch/${LIBGCC_MACHINE_ARCH}
GCCARCHXX=	${NETBSDSRCDIR}/external/gpl3/gcc/lib/libstdc++-v3/arch/${LIBGCC_MACHINE_ARCH}
d22 1
a22 2
CPPFLAGS+=	-I${DIST}/libgcc -I${DIST}/libgcc/config
CPPFLAGS+=	-I${DIST}/gcc -I${DIST}/include -I.
d24 4
a27 4
.if ${LIBGCC_MACHINE_ARCH} == "powerpc" || \
    ${LIBGCC_MACHINE_ARCH} == "sh3el" || \
    ${LIBGCC_MACHINE_ARCH} == "sh3eb" || \
    ${LIBGCC_MACHINE_ARCH} == "m68000"
a31 4
.if ${LIBGCC_MACHINE_ARCH} == "powerpc"
CPPFLAGS+=	-I${DIST}/gcc/config/rs6000
.endif

d36 1
a36 1
# This is copied from dist/libgcc/Makefile.in:$lib2funcs
d39 7
a45 19
	_clear_cache _trampoline __main \
	_absvsi2 _absvdi2 _addvsi3 _addvdi3 \
	_subvsi3 _subvdi3 _mulvsi3 _mulvdi3 \
	_negvsi2 _negvdi2 \
	_ctors \
	_ffssi2 _ffsdi2 _clz _clzsi2 _clzdi2  _ctzsi2 _ctzdi2 \
	_popcount_tab _popcountsi2 _popcountdi2 _paritysi2 _paritydi2 \
	_powisf2 _powidf2 _powixf2 _powitf2 \
	_mulsc3 _muldc3 _mulxc3 _multc3 _divsc3 _divdc3 _divxc3 _divtc3 \
	_bswapsi2 _bswapdi2 _clrsbsi2 _clrsbdi2

.if ${LIBGCC_MACHINE_ARCH} != "coldfire" && empty(LIBGCC_MACHINE_ARCH:Mearm*)

LIB2FUNCS_ALL+= \
	_muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3

.endif

.if ${LIBGCC_MACHINE_ARCH} != "coldfire" && empty(LIBGCC_MACHINE_ARCH:Mearm*)
a62 1
.endif
a73 3
.if ${HAVE_LIBGCC_EH} == "no"
LIB2_EH=	${G_LIB2ADDEH:M*.c:T:Nunwind-dw2.c:Nunwind-dw2-fde-dip.c:Nunwind-sjlj.c:Nunwind-c.c}
.else
a74 1
.endif
a75 3

# We have to weed out any existing func.S file that may exist
# from the list of files we create.
d77 1
a77 5
. for f in ${G_LIB1ASMFUNCS:=.S}
.  if !exists(${DIST}/libgcc/config/${MACHINE_GNU_ARCH}/${f})
LIB1ASMFUNCS+=	${f}
.  endif
. endfor
d80 1
a80 3
.if exists(${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk)
DPSRCS+=	${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk
.endif
d91 1
a91 2
.if (${LIBGCC_MACHINE_ARCH} == "m68000" || ${LIBGCC_MACHINE_ARCH} == "m68k" || \
     ${LIBGCC_MACHINE_ARCH} == "coldfire")
d93 3
a95 3
BUILDSYMLINKS+=	${DIST}/libgcc/config/m68k/fpgnulib.c fpgnulib.c
BUILDSYMLINKS+=	${DIST}/libgcc/config/m68k/fpgnulib.c xfgnulib.c
CPPFLAGS.xfgnulib.c+=	-DEXTFLOAT=1
d98 1
a98 1
.if ${LIBGCC_MACHINE_ARCH} == "powerpc64"
d141 1
a141 1
	${G_LIB2ADD:H:O:u} ${G_LIB2ADDEH:H:O:u} ${GCCARCHLIBGCC}
d146 4
a149 6
.if ${MKGCC} != "no"
.if defined(G_CONFIGLINKS) && !empty(G_CONFIGLINKS)
BUILDSYMLINKS+=	${G_CONFIGLINKS}
.for _src _dst in ${G_CONFIGLINKS}
DPSRCS+=	${_dst}
.endfor
d151 19
a171 3
EXTRA_FAKEHEADERS=	options.h libgcc_tm.h
.include "../../Makefile.hacks"

d173 1
a173 1
.if defined(HAVE_GCC) && ${HAVE_GCC} == 45 && ${LIBGCC_MACHINE_ARCH} == "m68k"
@


1.13.4.1
log
@Pull up following revision(s) (requested by msaitoh in ticket #612):
	external/gpl3/gcc/lib/libgcc/Makefile.inc: revision 1.15
Don't add unwind.h stuff into BUILDSYMLINKS when MKGCC=="no".
Fixes "Wrong number of words (1) in .for substitution list with 2 vars" problem
while mknative-ing. Approved by mrg.
@
text
@d1 1
a1 1
#	$NetBSD$
a144 1
.if ${MKGCC} != "no"
a147 1
.endif
@


1.12
log
@also copy -m and -f flags from the GCC headers.

fixes PR#45253.  (i'm going to leave that bug open for now because i
want to re-work a bunch of the libgcc framework.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.11 2011/08/15 09:19:21 mrg Exp $
d90 1
a90 1
.if ${MACHINE_ARCH} == "m68000"
@


1.11
log
@clean out some unused code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.10 2011/07/07 01:27:47 mrg Exp $
d20 1
@


1.10
log
@add ${G_LIB2ADD:H:O:u} to the .PATH to find all headers
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.9 2011/07/03 08:35:41 mrg Exp $
a30 2
.if !defined(MKNATIVE_LIBGCC_NEW)

a133 8
.else	# defined(MKNATIVE_LIBGCC_NEW)

#
# New style libgcc build procedure.
#

.endif	# defined(MKNATIVE_LIBGCC_NEW)

@


1.9
log
@- Makefile.hacks isn't working here; revert this portion for now.
- support ${COPTS.${.IMPSRC:T}} in the .c.pico rule
- add a hack for m68k and _fixunsxfdi, uses above
- add support to build LIB2ADD_ST stuff
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 2011/07/01 10:04:13 mrg Exp $
d149 1
a149 1
	${G_CONFIGDIR}
@


1.8
log
@everyone needs the options* stuff here.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.7 2011/07/01 05:07:06 mrg Exp $
d154 1
a154 1
${SRCS}: unwind.h
d158 19
a176 1
.include "../../Makefile.hacks"
d178 4
a181 12
${SRCS}: options.h

optionlist: ${G_ALL_OPT_FILES} ${GCCARCH}/defs.mk Makefile ${DIST}/gcc/opt-gather.awk
	${TOOL_AWK} -f ${DIST}/gcc/opt-gather.awk ${G_ALL_OPT_FILES} \
		> ${.TARGET}

options.h: optionlist ${DIST}/gcc/opt-functions.awk ${DIST}/gcc/opth-gen.awk
	${TOOL_AWK} -f ${DIST}/gcc/opt-functions.awk \
		-f ${DIST}/gcc/opth-gen.awk \
		< optionlist > ${.TARGET}

CLEANFILES+=	options.h optionlist
@


1.7
log
@fix the _fixunssfsi _fixunsdfsi _fixunsxfsi functions.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 2011/07/01 01:24:53 mrg Exp $
a159 2
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 && \
    (${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "armeb")
a171 1
.endif
@


1.6
log
@consolidate unwind.h and other hacks into a new Makefile.hacks that
everyone else can use
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 2011/06/29 08:05:52 mrg Exp $
d50 2
a51 2
. for _s in sf df xf tf
LIB2FUNCS_ALL+=	${_p}${_s}di
d54 1
d56 2
a57 2
. for _s in sf df xf tf
LIB2FUNCS_ALL+=	${_p}di${_s}
d62 1
a62 1
LIB2FUNCS_ALL+=	fixuns${_p}si
d159 16
@


1.5
log
@mknative-gcc output for i386 with GCC 4.5.3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2011/06/29 01:56:57 mrg Exp $
d85 1
a85 1
.for file in ${G_LIB2ADD:M${GNUHOSTDIST}*}
d153 1
d157 1
a157 7
# these aren't necessary but are #include'd
FAKEHEADERS=options.h insn-flags.h insn-constants.h
${FAKEHEADERS}:
	${_MKTARGET_CREATE}
	touch ${.TARGET}
DPSRCS+=	${FAKEHEADERS}
CLEANFILES+=	${FAKEHEADERS}
@


1.4
log
@consolidate the tconfig.h generation.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2011/06/28 04:03:56 mrg Exp $
d38 21
a58 9
LIB2FUNCS_ALL=	_muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 \
        _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi \
        _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi \
        _floatdixf _floatundixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf _clear_cache \
        _enable_execute_stack _trampoline __main _absvsi2 _absvdi2 _addvsi3 \
        _addvdi3 _subvsi3 _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2 _ctors \
        _ffssi2 _ffsdi2 _clz _clzsi2 _clzdi2 _ctzsi2 _ctzdi2 _popcount_tab \
        _popcountsi2 _popcountdi2 _paritysi2 _paritydi2 _powisf2 _powidf2 \
        _powixf2 _powitf2 \
d60 3
a62 2
LIB2FUNCS_ALL+=	\
	_mulsc3 _muldc3 _mulxc3 _multc3 _divsc3 _divdc3 _divxc3 _divtc3
@


1.3
log
@add _floatundixf to the normal list.  fix the G_EXTRA_HEADERS.  from chuq.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 2011/06/23 11:47:12 mrg Exp $
d137 1
a137 5
tconfig.h:
	${_MKTARGET_CREATE}
	TARGET_CPU_DEFAULT="" \
	HEADERS="$(G_xm_include_list)" DEFINES="USED_FOR_TARGET $(G_xm_defines)" \
	${HOST_SH} $(GNUHOSTDIST)/gcc/mkconfig.sh tconfig.h
a138 1
CLEANFILES+=	tconfig.h
@


1.2
log
@fix a bunch of paths to look in the right places for gcc 4.5.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1 2011/06/21 06:02:25 mrg Exp $
d20 1
a20 1
CPPFLAGS+=	-I${G_EXTRA_HEADERS:M/*:H:u}
d41 1
a41 1
        _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf _clear_cache \
@


1.1
log
@*sigh* move these files into the directories i meant for them to exist in.
start actually porting to gcc 4.5 in the process.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
d11 1
a11 1
DIST=		${NETBSDSRCDIR}/gnu/dist/gcc4
d13 3
a15 3
GCCARCH=	${NETBSDSRCDIR}/gnu/usr.bin/gcc4/arch/${MACHINE_ARCH}
GCCARCHLIBGCC=	${NETBSDSRCDIR}/gnu/lib/libgcc4/arch/${MACHINE_ARCH}
GCCARCHXX=	${NETBSDSRCDIR}/gnu/lib/libstdc++-v3_4/arch/${MACHINE_ARCH}
@

