History log of /netbsd-current/external/gpl3/gcc/usr.bin/Makefile.inc
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.39 04-Aug-2023 rin

gcc/usr.bin: Sprinkle -fno-jump-tables more for m68k and friends

Now, gcc builds for m68k native.


# 1.38 03-Aug-2023 mrg

many fixes for native GCC 12 builds

- default to dwarf4 since out ctf tools fail with dwarf5. i tried to
do this via subtarget options as other ports do, but this would
require adjusting several of the targets non-netbsd code, and ideally
we'll fix our tools sooner than later, so just hack it here for now.
- catch up config/rs6000/netbsd64.h (mostly delete things)
- remove some more upstream diffs in config/vax, though it does not work
currently - libc.so link fails due to weird relocations.
- include some headers to ensure types are available
- add missing sanitizer netbsd files to the 'dist' tree
- remove no longer present TIOCRCVFRAME and TIOCXMTFRAME interceptors
- expanding the sanitizer OS/cpu defs to cover more netbsd platforms
- copy across a few minor changes from gcc.old's sanitizer's (eg,
disabling linux-specific code, adding netbsd specific code.)
- add (untested, but building) tsan support for arm64
- re-enable the sanitzers, at least simple -fsanitize=address builds a
working application on amd64 now
- fix the source lists (mostly .cc -> .cpp rename here)
- add some missing new defines, -f*, and -W*
- bump sanitizer shlib version
- apply -fno-jump-tables in some more places on m68k
- update the list in README.gcc12 to note many things now work or a few
things to do not work (although there are many uncommited changes at
this point across the rest of 'src' and 'xsrc'.) main points are that
vax, hppa, ppc, and sh3 don't build yet, but most other things are
either testing and working or at least building.


# 1.37 01-Aug-2023 mrg

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.)


# 1.36 12-Jul-2023 mrg

don't force gnu++98 here.

fixes build issues seen with GCC 10.5, as well as hopefully ones reported
by Andrew Cagney on current-users.


# 1.35 01-Feb-2023 mrg

for MKDEBUG builds, set CXXFLAGS += -g1 for all GCC binaries.

reduces the size of a non-x11 i386 build by 38% - 992MiB -> 612MiB,
and likely similar reductions elsewhere. it also reduced the build
time by about 3%, perhaps from less IO to write and less data to
compress. for amd64, the size was reduced 1137MiB -> 741MiB, about
35%, though i don't have timing guesses here.

note that these are sizes of .gz not .xz (i enable pigz for my
builds), and this probably has a much greater benefit for xz builds
as the sets creation phase is much slower there.


Revision tags: netbsd-10-base
# 1.34 15-Dec-2021 christos

branches: 1.34.2;
no lint (c++)


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.33 12-Apr-2021 mrg

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.


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.32 01-Feb-2019 mrg

- update source lists
- XXX: pull out OBJS-libcommon-target and OBJS-libcommon-target
in mknative


Revision tags: pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.31 11-Feb-2018 christos

branches: 1.31.4;
Use bsd.init.mk (instead of bsd.own.mk) consistently so that
Makefile.inc gets called before bsd.own.mk so that we get a chance
to use NOFOO easily in Makefile.inc. Use that to turn CTF off for
everything.


# 1.30 04-Feb-2018 mrg

partial work-in-progress to build GCC 6.4 natively:
- use -std=gnu++98 by default.
- add build support for new GCC generators, etc.
- regen i386 mknative files.


# 1.29 22-Aug-2017 mrg

move the GMP_MACHINE_ARCH definition into external/lgpl3/gmp/Makefile.arch.
soon to be GMP 6 allows us to have only two arm copies.


# 1.28 04-Aug-2017 mrg

put the location of gmp/mpc/mpfr in a variable so we can .old them.


Revision tags: matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 19-Apr-2016 christos

branches: 1.27.8;
Enable minimal warnings, disabling the unused and narrowing ones that gcc
authors don't seem to pay attention to.


# 1.26 15-Mar-2016 mrg

build a host version of libcpp, same as we do for libiberty.
the new genmatch generator program needs libcpp.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE gcc-4-8-5-pre-gcc-old-import netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.25 27-Jul-2014 dholland

Update the bug report URL as per PR 48712. I assume in order for this
to propagate to where it'll be seen we need to rerun mknative, which
I'm not in a position to do right now; but this way it'll update the
next time someone else does that.


# 1.24 01-Jun-2014 mrg

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.


# 1.23 31-May-2014 mrg

make sure that files containing version numbers are rebuilt when
the version actually changes.


# 1.22 29-May-2014 mrg

commonize the netbsd local version string. (the native one wasn't
updated, and now that won't be a problem again.)


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.21 09-Mar-2014 martin

branches: 1.21.2;
Fix variable name, so BUGURL gets properly defined


# 1.20 04-Mar-2014 mrg

bump local pkg version.


# 1.19 01-Mar-2014 mrg

merge GCC 4.8 build.


Revision tags: imported-to-gcc-old-20140227-0107
# 1.18 26-Feb-2014 mrg

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.


# 1.17 28-Nov-2013 mrg

handle with moved mpfr*.h files.


# 1.16 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.15 22-Aug-2013 matt

Add MACHINE_ARCH's evbearmv5-e[bl] to work


# 1.14 06-Aug-2013 matt

Use armv[4-7] to be consistent


# 1.13 05-Aug-2013 matt

Use GMP_MACHINE_ARCH which is MACHINE_ARCH with arm substituted for armv[467].


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
# 1.12 02-Dec-2012 apb

Adjust everything under src (but outside src/tools) to use
the TOOLDIR version of libnbcompat, associated include files,
and associated defs.mk file, instead of the version from the
.OBJDIR of src/tools/compat. This should fix PR 47188.


Revision tags: yamt-pagecache-base6
# 1.11 18-Sep-2012 skrll

Update for gcc 4.5.4


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.10 07-Aug-2011 mrg

branches: 1.10.2; 1.10.8;
after all the recent fixes, let's call this "NetBSD nb2 20110806"


# 1.9 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.8 01-Jul-2011 mrg

fix version.c defines. now the version says:
gcc version 4.5.3 (NetBSD nb1 20110620)
instead of:
gcc version 4.5.320110428


# 1.7 29-Jun-2011 mrg

add G_BUGURL and G_PKGVERSION variables that are unquoted versions.


# 1.6 28-Jun-2011 mrg

build libdecnumber.


# 1.5 28-Jun-2011 mrg

- add LIBDECNUMBEROBJ.
- update the VER_CPPFLAGS for GCC 4.5.


# 1.4 28-Jun-2011 mrg

DEVPHASE of an actual gcc release is empty. do that.


# 1.3 24-Jun-2011 mrg

- fix the path for GCCARCH and GCCARCH
- force DEVPHASE to "release"
-


# 1.2 23-Jun-2011 mrg

fix a bunch of paths to look in the right places for gcc 4.5.


# 1.1 21-Jun-2011 mrg

move the gcc 4.5 usr.bin build makefiles to the right place.


# 1.38 03-Aug-2023 mrg

many fixes for native GCC 12 builds

- default to dwarf4 since out ctf tools fail with dwarf5. i tried to
do this via subtarget options as other ports do, but this would
require adjusting several of the targets non-netbsd code, and ideally
we'll fix our tools sooner than later, so just hack it here for now.
- catch up config/rs6000/netbsd64.h (mostly delete things)
- remove some more upstream diffs in config/vax, though it does not work
currently - libc.so link fails due to weird relocations.
- include some headers to ensure types are available
- add missing sanitizer netbsd files to the 'dist' tree
- remove no longer present TIOCRCVFRAME and TIOCXMTFRAME interceptors
- expanding the sanitizer OS/cpu defs to cover more netbsd platforms
- copy across a few minor changes from gcc.old's sanitizer's (eg,
disabling linux-specific code, adding netbsd specific code.)
- add (untested, but building) tsan support for arm64
- re-enable the sanitzers, at least simple -fsanitize=address builds a
working application on amd64 now
- fix the source lists (mostly .cc -> .cpp rename here)
- add some missing new defines, -f*, and -W*
- bump sanitizer shlib version
- apply -fno-jump-tables in some more places on m68k
- update the list in README.gcc12 to note many things now work or a few
things to do not work (although there are many uncommited changes at
this point across the rest of 'src' and 'xsrc'.) main points are that
vax, hppa, ppc, and sh3 don't build yet, but most other things are
either testing and working or at least building.


# 1.37 01-Aug-2023 mrg

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.)


# 1.36 12-Jul-2023 mrg

don't force gnu++98 here.

fixes build issues seen with GCC 10.5, as well as hopefully ones reported
by Andrew Cagney on current-users.


# 1.35 01-Feb-2023 mrg

for MKDEBUG builds, set CXXFLAGS += -g1 for all GCC binaries.

reduces the size of a non-x11 i386 build by 38% - 992MiB -> 612MiB,
and likely similar reductions elsewhere. it also reduced the build
time by about 3%, perhaps from less IO to write and less data to
compress. for amd64, the size was reduced 1137MiB -> 741MiB, about
35%, though i don't have timing guesses here.

note that these are sizes of .gz not .xz (i enable pigz for my
builds), and this probably has a much greater benefit for xz builds
as the sets creation phase is much slower there.


Revision tags: netbsd-10-base
# 1.34 15-Dec-2021 christos

branches: 1.34.2;
no lint (c++)


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.33 12-Apr-2021 mrg

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.


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.32 01-Feb-2019 mrg

- update source lists
- XXX: pull out OBJS-libcommon-target and OBJS-libcommon-target
in mknative


Revision tags: pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.31 11-Feb-2018 christos

branches: 1.31.4;
Use bsd.init.mk (instead of bsd.own.mk) consistently so that
Makefile.inc gets called before bsd.own.mk so that we get a chance
to use NOFOO easily in Makefile.inc. Use that to turn CTF off for
everything.


# 1.30 04-Feb-2018 mrg

partial work-in-progress to build GCC 6.4 natively:
- use -std=gnu++98 by default.
- add build support for new GCC generators, etc.
- regen i386 mknative files.


# 1.29 22-Aug-2017 mrg

move the GMP_MACHINE_ARCH definition into external/lgpl3/gmp/Makefile.arch.
soon to be GMP 6 allows us to have only two arm copies.


# 1.28 04-Aug-2017 mrg

put the location of gmp/mpc/mpfr in a variable so we can .old them.


Revision tags: matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 19-Apr-2016 christos

branches: 1.27.8;
Enable minimal warnings, disabling the unused and narrowing ones that gcc
authors don't seem to pay attention to.


# 1.26 15-Mar-2016 mrg

build a host version of libcpp, same as we do for libiberty.
the new genmatch generator program needs libcpp.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE gcc-4-8-5-pre-gcc-old-import netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.25 27-Jul-2014 dholland

Update the bug report URL as per PR 48712. I assume in order for this
to propagate to where it'll be seen we need to rerun mknative, which
I'm not in a position to do right now; but this way it'll update the
next time someone else does that.


# 1.24 01-Jun-2014 mrg

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.


# 1.23 31-May-2014 mrg

make sure that files containing version numbers are rebuilt when
the version actually changes.


# 1.22 29-May-2014 mrg

commonize the netbsd local version string. (the native one wasn't
updated, and now that won't be a problem again.)


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.21 09-Mar-2014 martin

branches: 1.21.2;
Fix variable name, so BUGURL gets properly defined


# 1.20 04-Mar-2014 mrg

bump local pkg version.


# 1.19 01-Mar-2014 mrg

merge GCC 4.8 build.


Revision tags: imported-to-gcc-old-20140227-0107
# 1.18 26-Feb-2014 mrg

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.


# 1.17 28-Nov-2013 mrg

handle with moved mpfr*.h files.


# 1.16 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.15 22-Aug-2013 matt

Add MACHINE_ARCH's evbearmv5-e[bl] to work


# 1.14 06-Aug-2013 matt

Use armv[4-7] to be consistent


# 1.13 05-Aug-2013 matt

Use GMP_MACHINE_ARCH which is MACHINE_ARCH with arm substituted for armv[467].


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
# 1.12 02-Dec-2012 apb

Adjust everything under src (but outside src/tools) to use
the TOOLDIR version of libnbcompat, associated include files,
and associated defs.mk file, instead of the version from the
.OBJDIR of src/tools/compat. This should fix PR 47188.


Revision tags: yamt-pagecache-base6
# 1.11 18-Sep-2012 skrll

Update for gcc 4.5.4


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.10 07-Aug-2011 mrg

branches: 1.10.2; 1.10.8;
after all the recent fixes, let's call this "NetBSD nb2 20110806"


# 1.9 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.8 01-Jul-2011 mrg

fix version.c defines. now the version says:
gcc version 4.5.3 (NetBSD nb1 20110620)
instead of:
gcc version 4.5.320110428


# 1.7 29-Jun-2011 mrg

add G_BUGURL and G_PKGVERSION variables that are unquoted versions.


# 1.6 28-Jun-2011 mrg

build libdecnumber.


# 1.5 28-Jun-2011 mrg

- add LIBDECNUMBEROBJ.
- update the VER_CPPFLAGS for GCC 4.5.


# 1.4 28-Jun-2011 mrg

DEVPHASE of an actual gcc release is empty. do that.


# 1.3 24-Jun-2011 mrg

- fix the path for GCCARCH and GCCARCH
- force DEVPHASE to "release"
-


# 1.2 23-Jun-2011 mrg

fix a bunch of paths to look in the right places for gcc 4.5.


# 1.1 21-Jun-2011 mrg

move the gcc 4.5 usr.bin build makefiles to the right place.


# 1.37 01-Aug-2023 mrg

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.)


# 1.36 12-Jul-2023 mrg

don't force gnu++98 here.

fixes build issues seen with GCC 10.5, as well as hopefully ones reported
by Andrew Cagney on current-users.


# 1.35 01-Feb-2023 mrg

for MKDEBUG builds, set CXXFLAGS += -g1 for all GCC binaries.

reduces the size of a non-x11 i386 build by 38% - 992MiB -> 612MiB,
and likely similar reductions elsewhere. it also reduced the build
time by about 3%, perhaps from less IO to write and less data to
compress. for amd64, the size was reduced 1137MiB -> 741MiB, about
35%, though i don't have timing guesses here.

note that these are sizes of .gz not .xz (i enable pigz for my
builds), and this probably has a much greater benefit for xz builds
as the sets creation phase is much slower there.


Revision tags: netbsd-10-base
# 1.34 15-Dec-2021 christos

branches: 1.34.2;
no lint (c++)


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.33 12-Apr-2021 mrg

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.


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.32 01-Feb-2019 mrg

- update source lists
- XXX: pull out OBJS-libcommon-target and OBJS-libcommon-target
in mknative


Revision tags: pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.31 11-Feb-2018 christos

branches: 1.31.4;
Use bsd.init.mk (instead of bsd.own.mk) consistently so that
Makefile.inc gets called before bsd.own.mk so that we get a chance
to use NOFOO easily in Makefile.inc. Use that to turn CTF off for
everything.


# 1.30 04-Feb-2018 mrg

partial work-in-progress to build GCC 6.4 natively:
- use -std=gnu++98 by default.
- add build support for new GCC generators, etc.
- regen i386 mknative files.


# 1.29 22-Aug-2017 mrg

move the GMP_MACHINE_ARCH definition into external/lgpl3/gmp/Makefile.arch.
soon to be GMP 6 allows us to have only two arm copies.


# 1.28 04-Aug-2017 mrg

put the location of gmp/mpc/mpfr in a variable so we can .old them.


Revision tags: matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 19-Apr-2016 christos

branches: 1.27.8;
Enable minimal warnings, disabling the unused and narrowing ones that gcc
authors don't seem to pay attention to.


# 1.26 15-Mar-2016 mrg

build a host version of libcpp, same as we do for libiberty.
the new genmatch generator program needs libcpp.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE gcc-4-8-5-pre-gcc-old-import netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.25 27-Jul-2014 dholland

Update the bug report URL as per PR 48712. I assume in order for this
to propagate to where it'll be seen we need to rerun mknative, which
I'm not in a position to do right now; but this way it'll update the
next time someone else does that.


# 1.24 01-Jun-2014 mrg

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.


# 1.23 31-May-2014 mrg

make sure that files containing version numbers are rebuilt when
the version actually changes.


# 1.22 29-May-2014 mrg

commonize the netbsd local version string. (the native one wasn't
updated, and now that won't be a problem again.)


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.21 09-Mar-2014 martin

branches: 1.21.2;
Fix variable name, so BUGURL gets properly defined


# 1.20 04-Mar-2014 mrg

bump local pkg version.


# 1.19 01-Mar-2014 mrg

merge GCC 4.8 build.


Revision tags: imported-to-gcc-old-20140227-0107
# 1.18 26-Feb-2014 mrg

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.


# 1.17 28-Nov-2013 mrg

handle with moved mpfr*.h files.


# 1.16 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.15 22-Aug-2013 matt

Add MACHINE_ARCH's evbearmv5-e[bl] to work


# 1.14 06-Aug-2013 matt

Use armv[4-7] to be consistent


# 1.13 05-Aug-2013 matt

Use GMP_MACHINE_ARCH which is MACHINE_ARCH with arm substituted for armv[467].


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
# 1.12 02-Dec-2012 apb

Adjust everything under src (but outside src/tools) to use
the TOOLDIR version of libnbcompat, associated include files,
and associated defs.mk file, instead of the version from the
.OBJDIR of src/tools/compat. This should fix PR 47188.


Revision tags: yamt-pagecache-base6
# 1.11 18-Sep-2012 skrll

Update for gcc 4.5.4


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.10 07-Aug-2011 mrg

branches: 1.10.2; 1.10.8;
after all the recent fixes, let's call this "NetBSD nb2 20110806"


# 1.9 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.8 01-Jul-2011 mrg

fix version.c defines. now the version says:
gcc version 4.5.3 (NetBSD nb1 20110620)
instead of:
gcc version 4.5.320110428


# 1.7 29-Jun-2011 mrg

add G_BUGURL and G_PKGVERSION variables that are unquoted versions.


# 1.6 28-Jun-2011 mrg

build libdecnumber.


# 1.5 28-Jun-2011 mrg

- add LIBDECNUMBEROBJ.
- update the VER_CPPFLAGS for GCC 4.5.


# 1.4 28-Jun-2011 mrg

DEVPHASE of an actual gcc release is empty. do that.


# 1.3 24-Jun-2011 mrg

- fix the path for GCCARCH and GCCARCH
- force DEVPHASE to "release"
-


# 1.2 23-Jun-2011 mrg

fix a bunch of paths to look in the right places for gcc 4.5.


# 1.1 21-Jun-2011 mrg

move the gcc 4.5 usr.bin build makefiles to the right place.


# 1.36 12-Jul-2023 mrg

don't force gnu++98 here.

fixes build issues seen with GCC 10.5, as well as hopefully ones reported
by Andrew Cagney on current-users.


# 1.35 01-Feb-2023 mrg

for MKDEBUG builds, set CXXFLAGS += -g1 for all GCC binaries.

reduces the size of a non-x11 i386 build by 38% - 992MiB -> 612MiB,
and likely similar reductions elsewhere. it also reduced the build
time by about 3%, perhaps from less IO to write and less data to
compress. for amd64, the size was reduced 1137MiB -> 741MiB, about
35%, though i don't have timing guesses here.

note that these are sizes of .gz not .xz (i enable pigz for my
builds), and this probably has a much greater benefit for xz builds
as the sets creation phase is much slower there.


Revision tags: netbsd-10-base
# 1.34 15-Dec-2021 christos

branches: 1.34.2;
no lint (c++)


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.33 12-Apr-2021 mrg

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.


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.32 01-Feb-2019 mrg

- update source lists
- XXX: pull out OBJS-libcommon-target and OBJS-libcommon-target
in mknative


Revision tags: pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.31 11-Feb-2018 christos

branches: 1.31.4;
Use bsd.init.mk (instead of bsd.own.mk) consistently so that
Makefile.inc gets called before bsd.own.mk so that we get a chance
to use NOFOO easily in Makefile.inc. Use that to turn CTF off for
everything.


# 1.30 04-Feb-2018 mrg

partial work-in-progress to build GCC 6.4 natively:
- use -std=gnu++98 by default.
- add build support for new GCC generators, etc.
- regen i386 mknative files.


# 1.29 22-Aug-2017 mrg

move the GMP_MACHINE_ARCH definition into external/lgpl3/gmp/Makefile.arch.
soon to be GMP 6 allows us to have only two arm copies.


# 1.28 04-Aug-2017 mrg

put the location of gmp/mpc/mpfr in a variable so we can .old them.


Revision tags: matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 19-Apr-2016 christos

branches: 1.27.8;
Enable minimal warnings, disabling the unused and narrowing ones that gcc
authors don't seem to pay attention to.


# 1.26 15-Mar-2016 mrg

build a host version of libcpp, same as we do for libiberty.
the new genmatch generator program needs libcpp.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE gcc-4-8-5-pre-gcc-old-import netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.25 27-Jul-2014 dholland

Update the bug report URL as per PR 48712. I assume in order for this
to propagate to where it'll be seen we need to rerun mknative, which
I'm not in a position to do right now; but this way it'll update the
next time someone else does that.


# 1.24 01-Jun-2014 mrg

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.


# 1.23 31-May-2014 mrg

make sure that files containing version numbers are rebuilt when
the version actually changes.


# 1.22 29-May-2014 mrg

commonize the netbsd local version string. (the native one wasn't
updated, and now that won't be a problem again.)


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.21 09-Mar-2014 martin

branches: 1.21.2;
Fix variable name, so BUGURL gets properly defined


# 1.20 04-Mar-2014 mrg

bump local pkg version.


# 1.19 01-Mar-2014 mrg

merge GCC 4.8 build.


Revision tags: imported-to-gcc-old-20140227-0107
# 1.18 26-Feb-2014 mrg

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.


# 1.17 28-Nov-2013 mrg

handle with moved mpfr*.h files.


# 1.16 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.15 22-Aug-2013 matt

Add MACHINE_ARCH's evbearmv5-e[bl] to work


# 1.14 06-Aug-2013 matt

Use armv[4-7] to be consistent


# 1.13 05-Aug-2013 matt

Use GMP_MACHINE_ARCH which is MACHINE_ARCH with arm substituted for armv[467].


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
# 1.12 02-Dec-2012 apb

Adjust everything under src (but outside src/tools) to use
the TOOLDIR version of libnbcompat, associated include files,
and associated defs.mk file, instead of the version from the
.OBJDIR of src/tools/compat. This should fix PR 47188.


Revision tags: yamt-pagecache-base6
# 1.11 18-Sep-2012 skrll

Update for gcc 4.5.4


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.10 07-Aug-2011 mrg

branches: 1.10.2; 1.10.8;
after all the recent fixes, let's call this "NetBSD nb2 20110806"


# 1.9 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.8 01-Jul-2011 mrg

fix version.c defines. now the version says:
gcc version 4.5.3 (NetBSD nb1 20110620)
instead of:
gcc version 4.5.320110428


# 1.7 29-Jun-2011 mrg

add G_BUGURL and G_PKGVERSION variables that are unquoted versions.


# 1.6 28-Jun-2011 mrg

build libdecnumber.


# 1.5 28-Jun-2011 mrg

- add LIBDECNUMBEROBJ.
- update the VER_CPPFLAGS for GCC 4.5.


# 1.4 28-Jun-2011 mrg

DEVPHASE of an actual gcc release is empty. do that.


# 1.3 24-Jun-2011 mrg

- fix the path for GCCARCH and GCCARCH
- force DEVPHASE to "release"
-


# 1.2 23-Jun-2011 mrg

fix a bunch of paths to look in the right places for gcc 4.5.


# 1.1 21-Jun-2011 mrg

move the gcc 4.5 usr.bin build makefiles to the right place.


# 1.35 01-Feb-2023 mrg

for MKDEBUG builds, set CXXFLAGS += -g1 for all GCC binaries.

reduces the size of a non-x11 i386 build by 38% - 992MiB -> 612MiB,
and likely similar reductions elsewhere. it also reduced the build
time by about 3%, perhaps from less IO to write and less data to
compress. for amd64, the size was reduced 1137MiB -> 741MiB, about
35%, though i don't have timing guesses here.

note that these are sizes of .gz not .xz (i enable pigz for my
builds), and this probably has a much greater benefit for xz builds
as the sets creation phase is much slower there.


Revision tags: netbsd-10-base
# 1.34 15-Dec-2021 christos

no lint (c++)


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.33 12-Apr-2021 mrg

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.


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.32 01-Feb-2019 mrg

- update source lists
- XXX: pull out OBJS-libcommon-target and OBJS-libcommon-target
in mknative


Revision tags: pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.31 11-Feb-2018 christos

branches: 1.31.4;
Use bsd.init.mk (instead of bsd.own.mk) consistently so that
Makefile.inc gets called before bsd.own.mk so that we get a chance
to use NOFOO easily in Makefile.inc. Use that to turn CTF off for
everything.


# 1.30 04-Feb-2018 mrg

partial work-in-progress to build GCC 6.4 natively:
- use -std=gnu++98 by default.
- add build support for new GCC generators, etc.
- regen i386 mknative files.


# 1.29 22-Aug-2017 mrg

move the GMP_MACHINE_ARCH definition into external/lgpl3/gmp/Makefile.arch.
soon to be GMP 6 allows us to have only two arm copies.


# 1.28 04-Aug-2017 mrg

put the location of gmp/mpc/mpfr in a variable so we can .old them.


Revision tags: matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 19-Apr-2016 christos

branches: 1.27.8;
Enable minimal warnings, disabling the unused and narrowing ones that gcc
authors don't seem to pay attention to.


# 1.26 15-Mar-2016 mrg

build a host version of libcpp, same as we do for libiberty.
the new genmatch generator program needs libcpp.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE gcc-4-8-5-pre-gcc-old-import netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.25 27-Jul-2014 dholland

Update the bug report URL as per PR 48712. I assume in order for this
to propagate to where it'll be seen we need to rerun mknative, which
I'm not in a position to do right now; but this way it'll update the
next time someone else does that.


# 1.24 01-Jun-2014 mrg

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.


# 1.23 31-May-2014 mrg

make sure that files containing version numbers are rebuilt when
the version actually changes.


# 1.22 29-May-2014 mrg

commonize the netbsd local version string. (the native one wasn't
updated, and now that won't be a problem again.)


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.21 09-Mar-2014 martin

branches: 1.21.2;
Fix variable name, so BUGURL gets properly defined


# 1.20 04-Mar-2014 mrg

bump local pkg version.


# 1.19 01-Mar-2014 mrg

merge GCC 4.8 build.


Revision tags: imported-to-gcc-old-20140227-0107
# 1.18 26-Feb-2014 mrg

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.


# 1.17 28-Nov-2013 mrg

handle with moved mpfr*.h files.


# 1.16 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.15 22-Aug-2013 matt

Add MACHINE_ARCH's evbearmv5-e[bl] to work


# 1.14 06-Aug-2013 matt

Use armv[4-7] to be consistent


# 1.13 05-Aug-2013 matt

Use GMP_MACHINE_ARCH which is MACHINE_ARCH with arm substituted for armv[467].


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
# 1.12 02-Dec-2012 apb

Adjust everything under src (but outside src/tools) to use
the TOOLDIR version of libnbcompat, associated include files,
and associated defs.mk file, instead of the version from the
.OBJDIR of src/tools/compat. This should fix PR 47188.


Revision tags: yamt-pagecache-base6
# 1.11 18-Sep-2012 skrll

Update for gcc 4.5.4


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.10 07-Aug-2011 mrg

branches: 1.10.2; 1.10.8;
after all the recent fixes, let's call this "NetBSD nb2 20110806"


# 1.9 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.8 01-Jul-2011 mrg

fix version.c defines. now the version says:
gcc version 4.5.3 (NetBSD nb1 20110620)
instead of:
gcc version 4.5.320110428


# 1.7 29-Jun-2011 mrg

add G_BUGURL and G_PKGVERSION variables that are unquoted versions.


# 1.6 28-Jun-2011 mrg

build libdecnumber.


# 1.5 28-Jun-2011 mrg

- add LIBDECNUMBEROBJ.
- update the VER_CPPFLAGS for GCC 4.5.


# 1.4 28-Jun-2011 mrg

DEVPHASE of an actual gcc release is empty. do that.


# 1.3 24-Jun-2011 mrg

- fix the path for GCCARCH and GCCARCH
- force DEVPHASE to "release"
-


# 1.2 23-Jun-2011 mrg

fix a bunch of paths to look in the right places for gcc 4.5.


# 1.1 21-Jun-2011 mrg

move the gcc 4.5 usr.bin build makefiles to the right place.


# 1.34 15-Dec-2021 christos

no lint (c++)


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.33 12-Apr-2021 mrg

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.


Revision tags: netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.32 01-Feb-2019 mrg

- update source lists
- XXX: pull out OBJS-libcommon-target and OBJS-libcommon-target
in mknative


Revision tags: pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.31 11-Feb-2018 christos

branches: 1.31.4;
Use bsd.init.mk (instead of bsd.own.mk) consistently so that
Makefile.inc gets called before bsd.own.mk so that we get a chance
to use NOFOO easily in Makefile.inc. Use that to turn CTF off for
everything.


# 1.30 04-Feb-2018 mrg

partial work-in-progress to build GCC 6.4 natively:
- use -std=gnu++98 by default.
- add build support for new GCC generators, etc.
- regen i386 mknative files.


# 1.29 22-Aug-2017 mrg

move the GMP_MACHINE_ARCH definition into external/lgpl3/gmp/Makefile.arch.
soon to be GMP 6 allows us to have only two arm copies.


# 1.28 04-Aug-2017 mrg

put the location of gmp/mpc/mpfr in a variable so we can .old them.


Revision tags: matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 19-Apr-2016 christos

branches: 1.27.8;
Enable minimal warnings, disabling the unused and narrowing ones that gcc
authors don't seem to pay attention to.


# 1.26 15-Mar-2016 mrg

build a host version of libcpp, same as we do for libiberty.
the new genmatch generator program needs libcpp.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE gcc-4-8-5-pre-gcc-old-import netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.25 27-Jul-2014 dholland

Update the bug report URL as per PR 48712. I assume in order for this
to propagate to where it'll be seen we need to rerun mknative, which
I'm not in a position to do right now; but this way it'll update the
next time someone else does that.


# 1.24 01-Jun-2014 mrg

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.


# 1.23 31-May-2014 mrg

make sure that files containing version numbers are rebuilt when
the version actually changes.


# 1.22 29-May-2014 mrg

commonize the netbsd local version string. (the native one wasn't
updated, and now that won't be a problem again.)


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.21 09-Mar-2014 martin

branches: 1.21.2;
Fix variable name, so BUGURL gets properly defined


# 1.20 04-Mar-2014 mrg

bump local pkg version.


# 1.19 01-Mar-2014 mrg

merge GCC 4.8 build.


Revision tags: imported-to-gcc-old-20140227-0107
# 1.18 26-Feb-2014 mrg

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.


# 1.17 28-Nov-2013 mrg

handle with moved mpfr*.h files.


# 1.16 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.15 22-Aug-2013 matt

Add MACHINE_ARCH's evbearmv5-e[bl] to work


# 1.14 06-Aug-2013 matt

Use armv[4-7] to be consistent


# 1.13 05-Aug-2013 matt

Use GMP_MACHINE_ARCH which is MACHINE_ARCH with arm substituted for armv[467].


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
# 1.12 02-Dec-2012 apb

Adjust everything under src (but outside src/tools) to use
the TOOLDIR version of libnbcompat, associated include files,
and associated defs.mk file, instead of the version from the
.OBJDIR of src/tools/compat. This should fix PR 47188.


Revision tags: yamt-pagecache-base6
# 1.11 18-Sep-2012 skrll

Update for gcc 4.5.4


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.10 07-Aug-2011 mrg

branches: 1.10.2; 1.10.8;
after all the recent fixes, let's call this "NetBSD nb2 20110806"


# 1.9 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.8 01-Jul-2011 mrg

fix version.c defines. now the version says:
gcc version 4.5.3 (NetBSD nb1 20110620)
instead of:
gcc version 4.5.320110428


# 1.7 29-Jun-2011 mrg

add G_BUGURL and G_PKGVERSION variables that are unquoted versions.


# 1.6 28-Jun-2011 mrg

build libdecnumber.


# 1.5 28-Jun-2011 mrg

- add LIBDECNUMBEROBJ.
- update the VER_CPPFLAGS for GCC 4.5.


# 1.4 28-Jun-2011 mrg

DEVPHASE of an actual gcc release is empty. do that.


# 1.3 24-Jun-2011 mrg

- fix the path for GCCARCH and GCCARCH
- force DEVPHASE to "release"
-


# 1.2 23-Jun-2011 mrg

fix a bunch of paths to look in the right places for gcc 4.5.


# 1.1 21-Jun-2011 mrg

move the gcc 4.5 usr.bin build makefiles to the right place.


# 1.33 12-Apr-2021 mrg

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.


Revision tags: netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.32 01-Feb-2019 mrg

- update source lists
- XXX: pull out OBJS-libcommon-target and OBJS-libcommon-target
in mknative


Revision tags: pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.31 11-Feb-2018 christos

branches: 1.31.4;
Use bsd.init.mk (instead of bsd.own.mk) consistently so that
Makefile.inc gets called before bsd.own.mk so that we get a chance
to use NOFOO easily in Makefile.inc. Use that to turn CTF off for
everything.


# 1.30 04-Feb-2018 mrg

partial work-in-progress to build GCC 6.4 natively:
- use -std=gnu++98 by default.
- add build support for new GCC generators, etc.
- regen i386 mknative files.


# 1.29 22-Aug-2017 mrg

move the GMP_MACHINE_ARCH definition into external/lgpl3/gmp/Makefile.arch.
soon to be GMP 6 allows us to have only two arm copies.


# 1.28 04-Aug-2017 mrg

put the location of gmp/mpc/mpfr in a variable so we can .old them.


Revision tags: matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 19-Apr-2016 christos

branches: 1.27.8;
Enable minimal warnings, disabling the unused and narrowing ones that gcc
authors don't seem to pay attention to.


# 1.26 15-Mar-2016 mrg

build a host version of libcpp, same as we do for libiberty.
the new genmatch generator program needs libcpp.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE gcc-4-8-5-pre-gcc-old-import netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.25 27-Jul-2014 dholland

Update the bug report URL as per PR 48712. I assume in order for this
to propagate to where it'll be seen we need to rerun mknative, which
I'm not in a position to do right now; but this way it'll update the
next time someone else does that.


# 1.24 01-Jun-2014 mrg

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.


# 1.23 31-May-2014 mrg

make sure that files containing version numbers are rebuilt when
the version actually changes.


# 1.22 29-May-2014 mrg

commonize the netbsd local version string. (the native one wasn't
updated, and now that won't be a problem again.)


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.21 09-Mar-2014 martin

branches: 1.21.2;
Fix variable name, so BUGURL gets properly defined


# 1.20 04-Mar-2014 mrg

bump local pkg version.


# 1.19 01-Mar-2014 mrg

merge GCC 4.8 build.


Revision tags: imported-to-gcc-old-20140227-0107
# 1.18 26-Feb-2014 mrg

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.


# 1.17 28-Nov-2013 mrg

handle with moved mpfr*.h files.


# 1.16 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.15 22-Aug-2013 matt

Add MACHINE_ARCH's evbearmv5-e[bl] to work


# 1.14 06-Aug-2013 matt

Use armv[4-7] to be consistent


# 1.13 05-Aug-2013 matt

Use GMP_MACHINE_ARCH which is MACHINE_ARCH with arm substituted for armv[467].


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
# 1.12 02-Dec-2012 apb

Adjust everything under src (but outside src/tools) to use
the TOOLDIR version of libnbcompat, associated include files,
and associated defs.mk file, instead of the version from the
.OBJDIR of src/tools/compat. This should fix PR 47188.


Revision tags: yamt-pagecache-base6
# 1.11 18-Sep-2012 skrll

Update for gcc 4.5.4


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.10 07-Aug-2011 mrg

branches: 1.10.2; 1.10.8;
after all the recent fixes, let's call this "NetBSD nb2 20110806"


# 1.9 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.8 01-Jul-2011 mrg

fix version.c defines. now the version says:
gcc version 4.5.3 (NetBSD nb1 20110620)
instead of:
gcc version 4.5.320110428


# 1.7 29-Jun-2011 mrg

add G_BUGURL and G_PKGVERSION variables that are unquoted versions.


# 1.6 28-Jun-2011 mrg

build libdecnumber.


# 1.5 28-Jun-2011 mrg

- add LIBDECNUMBEROBJ.
- update the VER_CPPFLAGS for GCC 4.5.


# 1.4 28-Jun-2011 mrg

DEVPHASE of an actual gcc release is empty. do that.


# 1.3 24-Jun-2011 mrg

- fix the path for GCCARCH and GCCARCH
- force DEVPHASE to "release"
-


# 1.2 23-Jun-2011 mrg

fix a bunch of paths to look in the right places for gcc 4.5.


# 1.1 21-Jun-2011 mrg

move the gcc 4.5 usr.bin build makefiles to the right place.


# 1.32 01-Feb-2019 mrg

- update source lists
- XXX: pull out OBJS-libcommon-target and OBJS-libcommon-target
in mknative


Revision tags: pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.31 11-Feb-2018 christos

Use bsd.init.mk (instead of bsd.own.mk) consistently so that
Makefile.inc gets called before bsd.own.mk so that we get a chance
to use NOFOO easily in Makefile.inc. Use that to turn CTF off for
everything.


# 1.30 04-Feb-2018 mrg

partial work-in-progress to build GCC 6.4 natively:
- use -std=gnu++98 by default.
- add build support for new GCC generators, etc.
- regen i386 mknative files.


# 1.29 22-Aug-2017 mrg

move the GMP_MACHINE_ARCH definition into external/lgpl3/gmp/Makefile.arch.
soon to be GMP 6 allows us to have only two arm copies.


# 1.28 04-Aug-2017 mrg

put the location of gmp/mpc/mpfr in a variable so we can .old them.


Revision tags: matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 19-Apr-2016 christos

branches: 1.27.8;
Enable minimal warnings, disabling the unused and narrowing ones that gcc
authors don't seem to pay attention to.


# 1.26 15-Mar-2016 mrg

build a host version of libcpp, same as we do for libiberty.
the new genmatch generator program needs libcpp.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE gcc-4-8-5-pre-gcc-old-import netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.25 27-Jul-2014 dholland

Update the bug report URL as per PR 48712. I assume in order for this
to propagate to where it'll be seen we need to rerun mknative, which
I'm not in a position to do right now; but this way it'll update the
next time someone else does that.


# 1.24 01-Jun-2014 mrg

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.


# 1.23 31-May-2014 mrg

make sure that files containing version numbers are rebuilt when
the version actually changes.


# 1.22 29-May-2014 mrg

commonize the netbsd local version string. (the native one wasn't
updated, and now that won't be a problem again.)


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.21 09-Mar-2014 martin

branches: 1.21.2;
Fix variable name, so BUGURL gets properly defined


# 1.20 04-Mar-2014 mrg

bump local pkg version.


# 1.19 01-Mar-2014 mrg

merge GCC 4.8 build.


Revision tags: imported-to-gcc-old-20140227-0107
# 1.18 26-Feb-2014 mrg

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.


# 1.17 28-Nov-2013 mrg

handle with moved mpfr*.h files.


# 1.16 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.15 22-Aug-2013 matt

Add MACHINE_ARCH's evbearmv5-e[bl] to work


# 1.14 06-Aug-2013 matt

Use armv[4-7] to be consistent


# 1.13 05-Aug-2013 matt

Use GMP_MACHINE_ARCH which is MACHINE_ARCH with arm substituted for armv[467].


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
# 1.12 02-Dec-2012 apb

Adjust everything under src (but outside src/tools) to use
the TOOLDIR version of libnbcompat, associated include files,
and associated defs.mk file, instead of the version from the
.OBJDIR of src/tools/compat. This should fix PR 47188.


Revision tags: yamt-pagecache-base6
# 1.11 18-Sep-2012 skrll

Update for gcc 4.5.4


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.10 07-Aug-2011 mrg

branches: 1.10.2; 1.10.8;
after all the recent fixes, let's call this "NetBSD nb2 20110806"


# 1.9 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.8 01-Jul-2011 mrg

fix version.c defines. now the version says:
gcc version 4.5.3 (NetBSD nb1 20110620)
instead of:
gcc version 4.5.320110428


# 1.7 29-Jun-2011 mrg

add G_BUGURL and G_PKGVERSION variables that are unquoted versions.


# 1.6 28-Jun-2011 mrg

build libdecnumber.


# 1.5 28-Jun-2011 mrg

- add LIBDECNUMBEROBJ.
- update the VER_CPPFLAGS for GCC 4.5.


# 1.4 28-Jun-2011 mrg

DEVPHASE of an actual gcc release is empty. do that.


# 1.3 24-Jun-2011 mrg

- fix the path for GCCARCH and GCCARCH
- force DEVPHASE to "release"
-


# 1.2 23-Jun-2011 mrg

fix a bunch of paths to look in the right places for gcc 4.5.


# 1.1 21-Jun-2011 mrg

move the gcc 4.5 usr.bin build makefiles to the right place.


# 1.31 11-Feb-2018 christos

Use bsd.init.mk (instead of bsd.own.mk) consistently so that
Makefile.inc gets called before bsd.own.mk so that we get a chance
to use NOFOO easily in Makefile.inc. Use that to turn CTF off for
everything.


# 1.30 04-Feb-2018 mrg

partial work-in-progress to build GCC 6.4 natively:
- use -std=gnu++98 by default.
- add build support for new GCC generators, etc.
- regen i386 mknative files.


# 1.29 22-Aug-2017 mrg

move the GMP_MACHINE_ARCH definition into external/lgpl3/gmp/Makefile.arch.
soon to be GMP 6 allows us to have only two arm copies.


# 1.28 04-Aug-2017 mrg

put the location of gmp/mpc/mpfr in a variable so we can .old them.


Revision tags: matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 19-Apr-2016 christos

branches: 1.27.8;
Enable minimal warnings, disabling the unused and narrowing ones that gcc
authors don't seem to pay attention to.


# 1.26 15-Mar-2016 mrg

build a host version of libcpp, same as we do for libiberty.
the new genmatch generator program needs libcpp.


Revision tags: netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE gcc-4-8-5-pre-gcc-old-import netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.25 27-Jul-2014 dholland

Update the bug report URL as per PR 48712. I assume in order for this
to propagate to where it'll be seen we need to rerun mknative, which
I'm not in a position to do right now; but this way it'll update the
next time someone else does that.


# 1.24 01-Jun-2014 mrg

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.


# 1.23 31-May-2014 mrg

make sure that files containing version numbers are rebuilt when
the version actually changes.


# 1.22 29-May-2014 mrg

commonize the netbsd local version string. (the native one wasn't
updated, and now that won't be a problem again.)


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.21 09-Mar-2014 martin

branches: 1.21.2;
Fix variable name, so BUGURL gets properly defined


# 1.20 04-Mar-2014 mrg

bump local pkg version.


# 1.19 01-Mar-2014 mrg

merge GCC 4.8 build.


Revision tags: imported-to-gcc-old-20140227-0107
# 1.18 26-Feb-2014 mrg

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.


# 1.17 28-Nov-2013 mrg

handle with moved mpfr*.h files.


# 1.16 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.15 22-Aug-2013 matt

Add MACHINE_ARCH's evbearmv5-e[bl] to work


# 1.14 06-Aug-2013 matt

Use armv[4-7] to be consistent


# 1.13 05-Aug-2013 matt

Use GMP_MACHINE_ARCH which is MACHINE_ARCH with arm substituted for armv[467].


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
# 1.12 02-Dec-2012 apb

Adjust everything under src (but outside src/tools) to use
the TOOLDIR version of libnbcompat, associated include files,
and associated defs.mk file, instead of the version from the
.OBJDIR of src/tools/compat. This should fix PR 47188.


Revision tags: yamt-pagecache-base6
# 1.11 18-Sep-2012 skrll

Update for gcc 4.5.4


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.10 07-Aug-2011 mrg

branches: 1.10.2; 1.10.8;
after all the recent fixes, let's call this "NetBSD nb2 20110806"


# 1.9 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.8 01-Jul-2011 mrg

fix version.c defines. now the version says:
gcc version 4.5.3 (NetBSD nb1 20110620)
instead of:
gcc version 4.5.320110428


# 1.7 29-Jun-2011 mrg

add G_BUGURL and G_PKGVERSION variables that are unquoted versions.


# 1.6 28-Jun-2011 mrg

build libdecnumber.


# 1.5 28-Jun-2011 mrg

- add LIBDECNUMBEROBJ.
- update the VER_CPPFLAGS for GCC 4.5.


# 1.4 28-Jun-2011 mrg

DEVPHASE of an actual gcc release is empty. do that.


# 1.3 24-Jun-2011 mrg

- fix the path for GCCARCH and GCCARCH
- force DEVPHASE to "release"
-


# 1.2 23-Jun-2011 mrg

fix a bunch of paths to look in the right places for gcc 4.5.


# 1.1 21-Jun-2011 mrg

move the gcc 4.5 usr.bin build makefiles to the right place.


# 1.30 04-Feb-2018 mrg

partial work-in-progress to build GCC 6.4 natively:
- use -std=gnu++98 by default.
- add build support for new GCC generators, etc.
- regen i386 mknative files.


# 1.29 22-Aug-2017 mrg

move the GMP_MACHINE_ARCH definition into external/lgpl3/gmp/Makefile.arch.
soon to be GMP 6 allows us to have only two arm copies.


# 1.28 04-Aug-2017 mrg

put the location of gmp/mpc/mpfr in a variable so we can .old them.


Revision tags: matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 19-Apr-2016 christos

branches: 1.27.8;
Enable minimal warnings, disabling the unused and narrowing ones that gcc
authors don't seem to pay attention to.


# 1.26 15-Mar-2016 mrg

build a host version of libcpp, same as we do for libiberty.
the new genmatch generator program needs libcpp.


Revision tags: netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE gcc-4-8-5-pre-gcc-old-import netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.25 27-Jul-2014 dholland

Update the bug report URL as per PR 48712. I assume in order for this
to propagate to where it'll be seen we need to rerun mknative, which
I'm not in a position to do right now; but this way it'll update the
next time someone else does that.


# 1.24 01-Jun-2014 mrg

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.


# 1.23 31-May-2014 mrg

make sure that files containing version numbers are rebuilt when
the version actually changes.


# 1.22 29-May-2014 mrg

commonize the netbsd local version string. (the native one wasn't
updated, and now that won't be a problem again.)


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.21 09-Mar-2014 martin

branches: 1.21.2;
Fix variable name, so BUGURL gets properly defined


# 1.20 04-Mar-2014 mrg

bump local pkg version.


# 1.19 01-Mar-2014 mrg

merge GCC 4.8 build.


Revision tags: imported-to-gcc-old-20140227-0107
# 1.18 26-Feb-2014 mrg

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.


# 1.17 28-Nov-2013 mrg

handle with moved mpfr*.h files.


# 1.16 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.15 22-Aug-2013 matt

Add MACHINE_ARCH's evbearmv5-e[bl] to work


# 1.14 06-Aug-2013 matt

Use armv[4-7] to be consistent


# 1.13 05-Aug-2013 matt

Use GMP_MACHINE_ARCH which is MACHINE_ARCH with arm substituted for armv[467].


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
# 1.12 02-Dec-2012 apb

Adjust everything under src (but outside src/tools) to use
the TOOLDIR version of libnbcompat, associated include files,
and associated defs.mk file, instead of the version from the
.OBJDIR of src/tools/compat. This should fix PR 47188.


Revision tags: yamt-pagecache-base6
# 1.11 18-Sep-2012 skrll

Update for gcc 4.5.4


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.10 07-Aug-2011 mrg

branches: 1.10.2; 1.10.8;
after all the recent fixes, let's call this "NetBSD nb2 20110806"


# 1.9 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.8 01-Jul-2011 mrg

fix version.c defines. now the version says:
gcc version 4.5.3 (NetBSD nb1 20110620)
instead of:
gcc version 4.5.320110428


# 1.7 29-Jun-2011 mrg

add G_BUGURL and G_PKGVERSION variables that are unquoted versions.


# 1.6 28-Jun-2011 mrg

build libdecnumber.


# 1.5 28-Jun-2011 mrg

- add LIBDECNUMBEROBJ.
- update the VER_CPPFLAGS for GCC 4.5.


# 1.4 28-Jun-2011 mrg

DEVPHASE of an actual gcc release is empty. do that.


# 1.3 24-Jun-2011 mrg

- fix the path for GCCARCH and GCCARCH
- force DEVPHASE to "release"
-


# 1.2 23-Jun-2011 mrg

fix a bunch of paths to look in the right places for gcc 4.5.


# 1.1 21-Jun-2011 mrg

move the gcc 4.5 usr.bin build makefiles to the right place.


# 1.29 22-Aug-2017 mrg

move the GMP_MACHINE_ARCH definition into external/lgpl3/gmp/Makefile.arch.
soon to be GMP 6 allows us to have only two arm copies.


# 1.28 04-Aug-2017 mrg

put the location of gmp/mpc/mpfr in a variable so we can .old them.


Revision tags: perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 19-Apr-2016 christos

Enable minimal warnings, disabling the unused and narrowing ones that gcc
authors don't seem to pay attention to.


# 1.26 15-Mar-2016 mrg

build a host version of libcpp, same as we do for libiberty.
the new genmatch generator program needs libcpp.


Revision tags: netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE gcc-4-8-5-pre-gcc-old-import netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.25 27-Jul-2014 dholland

Update the bug report URL as per PR 48712. I assume in order for this
to propagate to where it'll be seen we need to rerun mknative, which
I'm not in a position to do right now; but this way it'll update the
next time someone else does that.


# 1.24 01-Jun-2014 mrg

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.


# 1.23 31-May-2014 mrg

make sure that files containing version numbers are rebuilt when
the version actually changes.


# 1.22 29-May-2014 mrg

commonize the netbsd local version string. (the native one wasn't
updated, and now that won't be a problem again.)


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.21 09-Mar-2014 martin

branches: 1.21.2;
Fix variable name, so BUGURL gets properly defined


# 1.20 04-Mar-2014 mrg

bump local pkg version.


# 1.19 01-Mar-2014 mrg

merge GCC 4.8 build.


Revision tags: imported-to-gcc-old-20140227-0107
# 1.18 26-Feb-2014 mrg

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.


# 1.17 28-Nov-2013 mrg

handle with moved mpfr*.h files.


# 1.16 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.15 22-Aug-2013 matt

Add MACHINE_ARCH's evbearmv5-e[bl] to work


# 1.14 06-Aug-2013 matt

Use armv[4-7] to be consistent


# 1.13 05-Aug-2013 matt

Use GMP_MACHINE_ARCH which is MACHINE_ARCH with arm substituted for armv[467].


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
# 1.12 02-Dec-2012 apb

Adjust everything under src (but outside src/tools) to use
the TOOLDIR version of libnbcompat, associated include files,
and associated defs.mk file, instead of the version from the
.OBJDIR of src/tools/compat. This should fix PR 47188.


Revision tags: yamt-pagecache-base6
# 1.11 18-Sep-2012 skrll

Update for gcc 4.5.4


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.10 07-Aug-2011 mrg

branches: 1.10.2; 1.10.8;
after all the recent fixes, let's call this "NetBSD nb2 20110806"


# 1.9 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.8 01-Jul-2011 mrg

fix version.c defines. now the version says:
gcc version 4.5.3 (NetBSD nb1 20110620)
instead of:
gcc version 4.5.320110428


# 1.7 29-Jun-2011 mrg

add G_BUGURL and G_PKGVERSION variables that are unquoted versions.


# 1.6 28-Jun-2011 mrg

build libdecnumber.


# 1.5 28-Jun-2011 mrg

- add LIBDECNUMBEROBJ.
- update the VER_CPPFLAGS for GCC 4.5.


# 1.4 28-Jun-2011 mrg

DEVPHASE of an actual gcc release is empty. do that.


# 1.3 24-Jun-2011 mrg

- fix the path for GCCARCH and GCCARCH
- force DEVPHASE to "release"
-


# 1.2 23-Jun-2011 mrg

fix a bunch of paths to look in the right places for gcc 4.5.


# 1.1 21-Jun-2011 mrg

move the gcc 4.5 usr.bin build makefiles to the right place.


# 1.28 04-Aug-2017 mrg

put the location of gmp/mpc/mpfr in a variable so we can .old them.


Revision tags: perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 19-Apr-2016 christos

Enable minimal warnings, disabling the unused and narrowing ones that gcc
authors don't seem to pay attention to.


# 1.26 15-Mar-2016 mrg

build a host version of libcpp, same as we do for libiberty.
the new genmatch generator program needs libcpp.


Revision tags: netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE gcc-4-8-5-pre-gcc-old-import netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.25 27-Jul-2014 dholland

Update the bug report URL as per PR 48712. I assume in order for this
to propagate to where it'll be seen we need to rerun mknative, which
I'm not in a position to do right now; but this way it'll update the
next time someone else does that.


# 1.24 01-Jun-2014 mrg

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.


# 1.23 31-May-2014 mrg

make sure that files containing version numbers are rebuilt when
the version actually changes.


# 1.22 29-May-2014 mrg

commonize the netbsd local version string. (the native one wasn't
updated, and now that won't be a problem again.)


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.21 09-Mar-2014 martin

branches: 1.21.2;
Fix variable name, so BUGURL gets properly defined


# 1.20 04-Mar-2014 mrg

bump local pkg version.


# 1.19 01-Mar-2014 mrg

merge GCC 4.8 build.


Revision tags: imported-to-gcc-old-20140227-0107
# 1.18 26-Feb-2014 mrg

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.


# 1.17 28-Nov-2013 mrg

handle with moved mpfr*.h files.


# 1.16 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.15 22-Aug-2013 matt

Add MACHINE_ARCH's evbearmv5-e[bl] to work


# 1.14 06-Aug-2013 matt

Use armv[4-7] to be consistent


# 1.13 05-Aug-2013 matt

Use GMP_MACHINE_ARCH which is MACHINE_ARCH with arm substituted for armv[467].


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
# 1.12 02-Dec-2012 apb

Adjust everything under src (but outside src/tools) to use
the TOOLDIR version of libnbcompat, associated include files,
and associated defs.mk file, instead of the version from the
.OBJDIR of src/tools/compat. This should fix PR 47188.


Revision tags: yamt-pagecache-base6
# 1.11 18-Sep-2012 skrll

Update for gcc 4.5.4


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.10 07-Aug-2011 mrg

branches: 1.10.2; 1.10.8;
after all the recent fixes, let's call this "NetBSD nb2 20110806"


# 1.9 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.8 01-Jul-2011 mrg

fix version.c defines. now the version says:
gcc version 4.5.3 (NetBSD nb1 20110620)
instead of:
gcc version 4.5.320110428


# 1.7 29-Jun-2011 mrg

add G_BUGURL and G_PKGVERSION variables that are unquoted versions.


# 1.6 28-Jun-2011 mrg

build libdecnumber.


# 1.5 28-Jun-2011 mrg

- add LIBDECNUMBEROBJ.
- update the VER_CPPFLAGS for GCC 4.5.


# 1.4 28-Jun-2011 mrg

DEVPHASE of an actual gcc release is empty. do that.


# 1.3 24-Jun-2011 mrg

- fix the path for GCCARCH and GCCARCH
- force DEVPHASE to "release"
-


# 1.2 23-Jun-2011 mrg

fix a bunch of paths to look in the right places for gcc 4.5.


# 1.1 21-Jun-2011 mrg

move the gcc 4.5 usr.bin build makefiles to the right place.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 19-Apr-2016 christos

Enable minimal warnings, disabling the unused and narrowing ones that gcc
authors don't seem to pay attention to.


# 1.26 15-Mar-2016 mrg

build a host version of libcpp, same as we do for libiberty.
the new genmatch generator program needs libcpp.


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE gcc-4-8-5-pre-gcc-old-import netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.25 27-Jul-2014 dholland

Update the bug report URL as per PR 48712. I assume in order for this
to propagate to where it'll be seen we need to rerun mknative, which
I'm not in a position to do right now; but this way it'll update the
next time someone else does that.


# 1.24 01-Jun-2014 mrg

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.


# 1.23 31-May-2014 mrg

make sure that files containing version numbers are rebuilt when
the version actually changes.


# 1.22 29-May-2014 mrg

commonize the netbsd local version string. (the native one wasn't
updated, and now that won't be a problem again.)


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.21 09-Mar-2014 martin

branches: 1.21.2;
Fix variable name, so BUGURL gets properly defined


# 1.20 04-Mar-2014 mrg

bump local pkg version.


# 1.19 01-Mar-2014 mrg

merge GCC 4.8 build.


Revision tags: imported-to-gcc-old-20140227-0107
# 1.18 26-Feb-2014 mrg

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.


# 1.17 28-Nov-2013 mrg

handle with moved mpfr*.h files.


# 1.16 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.15 22-Aug-2013 matt

Add MACHINE_ARCH's evbearmv5-e[bl] to work


# 1.14 06-Aug-2013 matt

Use armv[4-7] to be consistent


# 1.13 05-Aug-2013 matt

Use GMP_MACHINE_ARCH which is MACHINE_ARCH with arm substituted for armv[467].


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7
# 1.12 02-Dec-2012 apb

Adjust everything under src (but outside src/tools) to use
the TOOLDIR version of libnbcompat, associated include files,
and associated defs.mk file, instead of the version from the
.OBJDIR of src/tools/compat. This should fix PR 47188.


Revision tags: yamt-pagecache-base6
# 1.11 18-Sep-2012 skrll

Update for gcc 4.5.4


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.10 07-Aug-2011 mrg

branches: 1.10.2; 1.10.8;
after all the recent fixes, let's call this "NetBSD nb2 20110806"


# 1.9 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.8 01-Jul-2011 mrg

fix version.c defines. now the version says:
gcc version 4.5.3 (NetBSD nb1 20110620)
instead of:
gcc version 4.5.320110428


# 1.7 29-Jun-2011 mrg

add G_BUGURL and G_PKGVERSION variables that are unquoted versions.


# 1.6 28-Jun-2011 mrg

build libdecnumber.


# 1.5 28-Jun-2011 mrg

- add LIBDECNUMBEROBJ.
- update the VER_CPPFLAGS for GCC 4.5.


# 1.4 28-Jun-2011 mrg

DEVPHASE of an actual gcc release is empty. do that.


# 1.3 24-Jun-2011 mrg

- fix the path for GCCARCH and GCCARCH
- force DEVPHASE to "release"
-


# 1.2 23-Jun-2011 mrg

fix a bunch of paths to look in the right places for gcc 4.5.


# 1.1 21-Jun-2011 mrg

move the gcc 4.5 usr.bin build makefiles to the right place.


# 1.25 26-Jul-2014 dholland

Update the bug report URL as per PR 48712. I assume in order for this
to propagate to where it'll be seen we need to rerun mknative, which
I'm not in a position to do right now; but this way it'll update the
next time someone else does that.


# 1.24 01-Jun-2014 mrg

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.


# 1.23 31-May-2014 mrg

make sure that files containing version numbers are rebuilt when
the version actually changes.


# 1.22 29-May-2014 mrg

commonize the netbsd local version string. (the native one wasn't
updated, and now that won't be a problem again.)


# 1.21 09-Mar-2014 martin

branches: 1.21.2;
Fix variable name, so BUGURL gets properly defined


# 1.20 04-Mar-2014 mrg

bump local pkg version.


# 1.19 01-Mar-2014 mrg

merge GCC 4.8 build.


# 1.18 26-Feb-2014 mrg

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.


# 1.17 28-Nov-2013 mrg

handle with moved mpfr*.h files.


# 1.16 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.15 21-Aug-2013 matt

Add MACHINE_ARCH's evbearmv5-e[bl] to work


# 1.14 05-Aug-2013 matt

Use armv[4-7] to be consistent


# 1.13 04-Aug-2013 matt

Use GMP_MACHINE_ARCH which is MACHINE_ARCH with arm substituted for armv[467].


# 1.12 02-Dec-2012 apb

Adjust everything under src (but outside src/tools) to use
the TOOLDIR version of libnbcompat, associated include files,
and associated defs.mk file, instead of the version from the
.OBJDIR of src/tools/compat. This should fix PR 47188.


# 1.11 18-Sep-2012 skrll

Update for gcc 4.5.4


# 1.10 07-Aug-2011 mrg

branches: 1.10.2; 1.10.8;
after all the recent fixes, let's call this "NetBSD nb2 20110806"


# 1.9 20-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.8 01-Jul-2011 mrg

fix version.c defines. now the version says:
gcc version 4.5.3 (NetBSD nb1 20110620)
instead of:
gcc version 4.5.320110428


# 1.7 28-Jun-2011 mrg

add G_BUGURL and G_PKGVERSION variables that are unquoted versions.


# 1.6 28-Jun-2011 mrg

build libdecnumber.


# 1.5 28-Jun-2011 mrg

- add LIBDECNUMBEROBJ.
- update the VER_CPPFLAGS for GCC 4.5.


# 1.4 27-Jun-2011 mrg

DEVPHASE of an actual gcc release is empty. do that.


# 1.3 23-Jun-2011 mrg

- fix the path for GCCARCH and GCCARCH
- force DEVPHASE to "release"
-


# 1.2 23-Jun-2011 mrg

fix a bunch of paths to look in the right places for gcc 4.5.


# 1.1 21-Jun-2011 mrg

move the gcc 4.5 usr.bin build makefiles to the right place.


# 1.10.8.3 19-Aug-2014 tls

Rebase to HEAD as of a few days ago.


# 1.10.8.2 24-Feb-2013 tls

resync with head


# 1.10.8.1 19-Nov-2012 tls

Resync to 2012-11-19 00:00:00 UTC


# 1.10.2.3 21-May-2014 yamt

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")


# 1.10.2.2 15-Jan-2013 yamt

sync with (a bit old) head


# 1.10.2.1 30-Oct-2012 yamt

sync with head


# 1.21.2.1 10-Aug-2014 tls

Rebase.