head	1.11;
access;
symbols
	netbsd-11-0-RC4:1.11
	netbsd-11-0-RC3:1.11
	netbsd-11-0-RC2:1.11
	netbsd-11-0-RC1:1.11
	perseant-exfatfs-base-20250801:1.11
	netbsd-11:1.11.0.10
	netbsd-11-base:1.11
	netbsd-10-1-RELEASE:1.11
	perseant-exfatfs-base-20240630:1.11
	perseant-exfatfs:1.11.0.8
	perseant-exfatfs-base:1.11
	netbsd-8-3-RELEASE:1.10
	netbsd-9-4-RELEASE:1.10
	netbsd-10-0-RELEASE:1.11
	netbsd-10-0-RC6:1.11
	netbsd-10-0-RC5:1.11
	netbsd-10-0-RC4:1.11
	netbsd-10-0-RC3:1.11
	netbsd-10-0-RC2:1.11
	netbsd-10-0-RC1:1.11
	netbsd-10:1.11.0.6
	netbsd-10-base:1.11
	netbsd-9-3-RELEASE:1.10
	cjep_sun2x-base1:1.11
	cjep_sun2x:1.11.0.4
	cjep_sun2x-base:1.11
	cjep_staticlib_x-base1:1.11
	netbsd-9-2-RELEASE:1.10
	cjep_staticlib_x:1.11.0.2
	cjep_staticlib_x-base:1.11
	netbsd-9-1-RELEASE:1.10
	phil-wifi-20200421:1.10
	phil-wifi-20200411:1.10
	is-mlppp:1.10.0.28
	is-mlppp-base:1.10
	phil-wifi-20200406:1.10
	netbsd-8-2-RELEASE:1.10
	netbsd-9-0-RELEASE:1.10
	netbsd-9-0-RC2:1.10
	netbsd-9-0-RC1:1.10
	phil-wifi-20191119:1.10
	netbsd-9:1.10.0.26
	netbsd-9-base:1.10
	phil-wifi-20190609:1.10
	netbsd-8-1-RELEASE:1.10
	netbsd-8-1-RC1:1.10
	pgoyette-compat-merge-20190127:1.10
	pgoyette-compat-20190127:1.10
	pgoyette-compat-20190118:1.10
	pgoyette-compat-1226:1.10
	pgoyette-compat-1126:1.10
	pgoyette-compat-1020:1.10
	pgoyette-compat-0930:1.10
	pgoyette-compat-0906:1.10
	netbsd-7-2-RELEASE:1.10
	pgoyette-compat-0728:1.10
	netbsd-8-0-RELEASE:1.10
	phil-wifi:1.10.0.24
	phil-wifi-base:1.10
	pgoyette-compat-0625:1.10
	netbsd-8-0-RC2:1.10
	pgoyette-compat-0521:1.10
	pgoyette-compat-0502:1.10
	pgoyette-compat-0422:1.10
	netbsd-8-0-RC1:1.10
	pgoyette-compat-0415:1.10
	pgoyette-compat-0407:1.10
	pgoyette-compat-0330:1.10
	pgoyette-compat-0322:1.10
	pgoyette-compat-0315:1.10
	netbsd-7-1-2-RELEASE:1.10
	pgoyette-compat:1.10.0.22
	pgoyette-compat-base:1.10
	netbsd-7-1-1-RELEASE:1.10
	matt-nb8-mediatek:1.10.0.20
	matt-nb8-mediatek-base:1.10
	perseant-stdc-iso10646:1.10.0.18
	perseant-stdc-iso10646-base:1.10
	netbsd-8:1.10.0.16
	netbsd-8-base:1.10
	prg-localcount2-base3:1.10
	prg-localcount2-base2:1.10
	prg-localcount2-base1:1.10
	prg-localcount2:1.10.0.14
	prg-localcount2-base:1.10
	pgoyette-localcount-20170426:1.10
	bouyer-socketcan-base1:1.10
	pgoyette-localcount-20170320:1.10
	netbsd-7-1:1.10.0.12
	netbsd-7-1-RELEASE:1.10
	netbsd-7-1-RC2:1.10
	netbsd-7-nhusb-base-20170116:1.10
	bouyer-socketcan:1.10.0.10
	bouyer-socketcan-base:1.10
	pgoyette-localcount-20170107:1.10
	netbsd-7-1-RC1:1.10
	pgoyette-localcount-20161104:1.10
	netbsd-7-0-2-RELEASE:1.10
	localcount-20160914:1.10
	netbsd-7-nhusb:1.10.0.8
	netbsd-7-nhusb-base:1.10
	pgoyette-localcount-20160806:1.10
	pgoyette-localcount-20160726:1.10
	pgoyette-localcount:1.10.0.6
	pgoyette-localcount-base:1.10
	netbsd-7-0-1-RELEASE:1.10
	netbsd-7-0:1.10.0.4
	netbsd-7-0-RELEASE:1.10
	gcc-4-8-5-pre-gcc-old-import:1.10
	netbsd-7-0-RC3:1.10
	netbsd-7-0-RC2:1.10
	netbsd-7-0-RC1:1.10
	netbsd-6-0-6-RELEASE:1.4
	netbsd-6-1-5-RELEASE:1.4
	netbsd-7:1.10.0.2
	netbsd-7-base:1.10
	yamt-pagecache-base9:1.9
	yamt-pagecache-tag8:1.4.2.1
	netbsd-6-1-4-RELEASE:1.4
	netbsd-6-0-5-RELEASE:1.4
	tls-earlyentropy:1.9.0.2
	tls-earlyentropy-base:1.10
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.9
	riastradh-drm2-base3:1.8
	imported-to-gcc-old-20140227-0107:1.6
	netbsd-6-1-3-RELEASE:1.4
	netbsd-6-0-4-RELEASE:1.4
	netbsd-6-1-2-RELEASE:1.4
	netbsd-6-0-3-RELEASE:1.4
	netbsd-6-1-1-RELEASE:1.4
	riastradh-drm2-base2:1.5
	riastradh-drm2-base1:1.5
	riastradh-drm2:1.5.0.4
	riastradh-drm2-base:1.5
	netbsd-6-1:1.4.0.10
	netbsd-6-0-2-RELEASE:1.4
	netbsd-6-1-RELEASE:1.4
	netbsd-6-1-RC4:1.4
	netbsd-6-1-RC3:1.4
	agc-symver:1.5.0.6
	agc-symver-base:1.5
	netbsd-6-1-RC2:1.4
	netbsd-6-1-RC1:1.4
	yamt-pagecache-base8:1.5
	netbsd-6-0-1-RELEASE:1.4
	yamt-pagecache-base7:1.5
	matt-nb6-plus-nbase:1.4
	yamt-pagecache-base6:1.5
	netbsd-6-0:1.4.0.8
	netbsd-6-0-RELEASE:1.4
	netbsd-6-0-RC2:1.4
	tls-maxphys:1.5.0.2
	tls-maxphys-base:1.10
	matt-nb6-plus:1.4.0.6
	matt-nb6-plus-base:1.4
	netbsd-6-0-RC1:1.4
	yamt-pagecache-base5:1.4
	yamt-pagecache-base4:1.4
	netbsd-6:1.4.0.4
	netbsd-6-base:1.4
	yamt-pagecache-base3:1.4
	yamt-pagecache-base2:1.4
	yamt-pagecache:1.4.0.2
	yamt-pagecache-base:1.4;
locks; strict;
comment	@# @;


1.11
date	2021.04.12.00.05.55;	author mrg;	state Exp;
branches;
next	1.10;
commitid	ZkokfzMsklvk0WOC;

1.10
date	2014.06.01.19.51.01;	author mrg;	state Exp;
branches;
next	1.9;
commitid	BOTK7lyw6Na69RCx;

1.9
date	2014.03.21.20.54.13;	author joerg;	state Exp;
branches
	1.9.2.1;
next	1.8;
commitid	59jUiH8ZbT5KOBtx;

1.8
date	2014.03.05.21.37.02;	author tron;	state Exp;
branches;
next	1.7;
commitid	2uZUOAcUTCXlzyrx;

1.7
date	2014.03.01.10.00.36;	author mrg;	state Exp;
branches;
next	1.6;
commitid	ls1VzPCZSNtqQYqx;

1.6
date	2014.02.26.09.54.32;	author mrg;	state Exp;
branches;
next	1.5;
commitid	tog8WsTJJZVqTAqx;

1.5
date	2012.08.06.00.21.09;	author matt;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	2011.10.17.14.20.54;	author chs;	state Exp;
branches
	1.4.2.1;
next	1.3;

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

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

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

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

1.5.2.1
date	2014.08.19.23.56.42;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.4.2.1
date	2012.10.30.18.57.36;	author yamt;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	2014.05.22.16.53.19;	author yamt;	state Exp;
branches;
next	;
commitid	v7BzuaTHWIjEuyBx;


desc
@@


1.11
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
@#	$NetBSD: Makefile,v 1.10 2014/06/01 19:51:01 mrg Exp $

REQUIRETOOLS=	yes
NOLINT=		# defined
NOPIC=		# defined
NOPROFILE=	# defined

LIB=		gcc_eh

.include "../../../Makefile.gcc_path"
.include <bsd.own.mk>

.if ${MKGCC} != "no"

.cc: # disable .cc->NULL transform

SRCS+=		${LIB2_EH} ${LIB2_EHASM} empty.c
COPTS.c-typeck.c+=	-Wno-stack-protector
COPTS.unwind-dw2.c+=	-Wno-stack-protector

MKPIC:=	no

.include <bsd.lib.mk>

.else
.include <bsd.prog.mk> # do nothing
.endif
@


1.10
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,v 1.9 2014/03/21 20:54:13 joerg Exp $
d18 2
a19 2
COPTS.c-typeck.c=	-Wno-stack-protector
COPTS.unwind-dw2.c=	-Wno-stack-protector
@


1.9
log
@For HAVE_LIBGCC_EH=no, skip libgcc's unwind code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2014/03/05 21:37:02 tron Exp $
d10 1
@


1.9.2.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2014/06/01 19:51:01 mrg Exp $
a9 1
.include "../../../Makefile.gcc_path"
@


1.8
log
@Get GCC 4.8 closer to build with "USE_SSP" set to "yes".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2014/03/01 10:00:36 mrg Exp $
d16 1
a16 1
SRCS+=		${LIB2_EH} ${LIB2_EHASM}
@


1.7
log
@merge GCC 4.8 build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2011/10/17 14:20:54 chs Exp $
d17 2
a18 1
COPTS.unwind-dw2.c = -Wno-stack-protector
@


1.6
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 1
a1 1
#	$NetBSD: Makefile,v 1.5 2012/08/06 00:21:09 matt Exp $
a9 1
.include "../../../Makefile.gcc_path"
@


1.5
log
@Deal with LIB2_EHASM
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2011/10/17 14:20:54 chs Exp $
d10 1
@


1.5.2.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
a9 1
.include "../../../Makefile.gcc_path"
d16 2
a17 3
SRCS+=		${LIB2_EH} ${LIB2_EHASM} empty.c
COPTS.c-typeck.c=	-Wno-stack-protector
COPTS.unwind-dw2.c=	-Wno-stack-protector
@


1.4
log
@do not build profiling versions of libgcc or libgcc_eh.
they are not used, and they don't build on arm with gcc 4.5.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2011/10/07 09:15:22 mrg Exp $
d16 1
a16 1
SRCS+=		${LIB2_EH}
@


1.4.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2011/10/17 14:20:54 chs Exp $
d16 1
a16 1
SRCS+=		${LIB2_EH} ${LIB2_EHASM}
@


1.4.2.2
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 1
#	$NetBSD: Makefile,v 1.4.2.1 2012/10/30 18:57:36 yamt Exp $
d16 2
a17 3
SRCS+=		${LIB2_EH} ${LIB2_EHASM} empty.c
COPTS.c-typeck.c=	-Wno-stack-protector
COPTS.unwind-dw2.c=	-Wno-stack-protector
@


1.3
log
@obsolete libgcc_pic and friends.  all libgcc's are supposed to be pic
for platforms with shlibs already (and are.)

this obsoletes our hacks for the libgcc specs to use libgcc_pic, and
fixes a couple of other issues reported to me directly.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2011/08/15 09:19:21 mrg Exp $
d5 2
@


1.2
log
@clean out some unused code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2011/06/21 06:02:26 mrg Exp $
d17 2
@


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,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
a13 2
.if !defined(MKNATIVE_LIBGCC_NEW)

a16 14
.else	# defined(MKNATIVE_LIBGCC_NEW)

.include "../Makefile.srcs"

# New style.
TMPLSRCS=	${TMPLSRCS.libgcc_eh.a}
TMPLFPSRCS=	${TMPLFPSRCS.libgcc_eh.a}
TMPLASMSRCS=	${TMPLASMSRCS.libgcc_eh.a}
SRCS=		${SRCS.libgcc_eh.a}

.include "../Makefile.wrapper"

.endif	# defined(MKNATIVE_LIBGCC_NEW)

@

