aboutsummaryrefslogtreecommitdiff
path: root/gnu
Commit message (Collapse)AuthorAgeFilesLines
* Add deprecation notices for gdb and kgdb.John Baldwin2017-07-052-1/+16
| | | | | | | | | | | | | | Even though gdb and kgdb may not be removed for 12.0 on some architectures, the notice is unconditional as these tools will likely be removed at some point in the future when adequate replacements are available (gdb in ports or lldb in base). Reviewed by: emaste MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D11477 Notes: svn path=/head/; revision=320675
* Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP.Bryan Drewery2017-06-191-1/+1
| | | | | | | | | | | | | | Since buildenv exports SYSROOT all of these uses will now look in WORLDTMP by default. sys/boot/efi/loader/Makefile A LIBSTAND hack is no longer required for buildenv. MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=320122
* Remove groff from baseBaptiste Daroussin2017-06-07123-6673/+0
| | | | | | | | | | | | | All manpages in base are now compatible with mandoc(1), all roff documentation will be relocated in the doc tree. man(1) can now use groff from the ports tree if it needs. Also remove checknr(1) and colcrt(1) which are only useful with groff. Approved by: (no objections on the mailing lists) Notes: svn path=/head/; revision=319664
* Add 11.1 to the mdoc(7) mdoc.local.in.Glen Barber2017-05-221-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=318645
* Add a new GDB_LIBEXEC option to install gdb and kgdb to /usr/libexec.John Baldwin2017-04-252-1/+12
| | | | | | | | | | | | | | | | | | | When this option is enabled, only gdb and kgdb are installed to /usr/libexec for use by crashinfo(8). Other bits of GDB such as gdbserver and gdbtui are not installed. For this option to be effective, GDB must be enabled. Rework r317094 to re-enable GDB on all platforms but enable GDB_LIBEXEC on platforms for which the GDB in ports is a superset of functionality. Reviewed by: emaste, kib Suggested by: kib Relnotes: yes Differential Revision: https://reviews.freebsd.org/D10449 Notes: svn path=/head/; revision=317416
* Simplify gnu/usr.bin Makefile conditionsEd Maste2017-04-211-7/+3
| | | | | | | | | | | | | After r307655 MK_GDB is forced to no if MK_BINUTILS is no, and similarly MK_GROFF is forced to no if MK_CXX is no, so we can remove nested conditionals. Reviewed by: bapt, brooks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D8287 Notes: svn path=/head/; revision=317252
* GNU diff is done and GNU diff3 is not using libgnuregex, so no need toBaptiste Daroussin2017-04-201-2/+2
| | | | | | | condition the build of libgnuregex anymore on WITHOUT_GNU_DIFF Notes: svn path=/head/; revision=317211
* Only build libreadline for gdb, binutils actually does not need itBaptiste Daroussin2017-04-201-4/+1
| | | | Notes: svn path=/head/; revision=317210
* Replace again GNU diff with BSD diffBaptiste Daroussin2017-04-205-82/+1
| | | | | | | | | | After a firts failed attempt, BSD diff is now good enough to replace GNU diff. Relnotes: yes Notes: svn path=/head/; revision=317209
* Temporary readd GNU diffBaptiste Daroussin2017-03-195-1/+82
| | | | | | | | etcupdate requires --change-group-format it is not easy to implement in bsd diff so for now readd GNU diff Notes: svn path=/head/; revision=315565
* Fix SUBDIR_DEPEND for gdb on binutils after r307659.Bryan Drewery2017-03-151-1/+1
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=315332
* Convert gnu to using SRCTOPWarner Losh2017-03-1214-29/+29
| | | | | | | | | | | | | | | Prefer SRCTOP over CURDIR/../../contrib, etc. However, retain the "up one level" instances of ../ because they are really relative to this part of the tree and not a means to find the root of the tree. As such, it's better to leave them since that further the goal of being able to move directories if watned to in the future. Differential Revision: https://reviews.freebsd.org/D9932 Sponsored by: Netflix Silence On: arch@ (twice) Notes: svn path=/head/; revision=315175
* Import diff from OpenBSD and remove GNU diffBaptiste Daroussin2017-03-115-82/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Some of the modifications from the previous summer of code has been integrated Modification for compatibility with GNU diff output has been added Main difference with OpenBSD: Implement multiple GNU diff options: * --ignore-file-name-case * --no-ignore-file-name-case * --normal * --tabsize * --strip-trailing-cr Make diff -p compatible with GNU diff Implement diff -l Make diff -r compatible with GNU diff Capsicumize diffing 2 regular files Add a simple test suite Approved by: AsiaBSDcon devsummit Obtained from: OpenBSD, GSoC Relnotes: yes Notes: svn path=/head/; revision=315051
* [dtc] regenerate version file if upstream Makefile has been changedOleksandr Tymoshenko2017-03-101-1/+1
| | | | | | | Keep version file in sync by adding dependency to upstream Makefile Notes: svn path=/head/; revision=315010
* Use SRCTOP/OBJTOP and simplify output using :H instead of "../" for directoryEnji Cooper2017-02-111-12/+10
| | | | | | | | | | | | entries This simplifies pathing in make/displayed output MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313650
* Bump GCC FBSD_CC_VER for r312899 (-march=octeon+ support)Ed Maste2017-02-011-1/+1
| | | | | | | | | | Reported by: lidl MFC after: 1 month MFC with: r312899 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=313041
* Rename LLD_AS_LD to LLD_IS_LD, for consistency with CLANG_IS_CCEd Maste2017-01-271-1/+1
| | | | | | | Reported by: Dan McGregor <dan.mcgregor usask.ca> Notes: svn path=/head/; revision=312855
* Use SRCTOP-relative paths to other directories instead of .CURDIR-relative onesEnji Cooper2017-01-201-1/+1
| | | | | | | | | | This simplifies pathing in make/displayed output MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=312514
* Enable /usr/lib32 for o32 binaries on mips64.John Baldwin2017-01-062-1/+3
| | | | | | | | | | | | | Build and install an o32 set of libraries on mips64 suitable for running o32 binaries via COMPAT_FREEBSD32. Enable COMPAT_FREEBSD32 in MALTA64. Reviewed by: jmallett, imp Sponsored by: DARPA / AFRL Differential Revision: https://reviews.freebsd.org/D9032 Notes: svn path=/head/; revision=311567
* Add WITH_LLD_AS_LD build knobEd Maste2016-11-251-0/+2
| | | | | | | | | | | | | | If set it installs LLD as /usr/bin/ld. LLD (as of version 3.9) is not capable of linking the world and kernel, but can self-host and link many substantial applications. GNU ld continues to be used for the world and kernel build, regardless of how this knob is set. It is on by default for arm64, and off for all other CPU architectures. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=309142
* Add full softfloat and hardfloat support for RISC-V.Ruslan Bukin2016-11-161-1/+1
| | | | | | | | | | | Hardfloat is now default (use riscv64sf as TARGET_ARCH for softfloat). Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D8529 Notes: svn path=/head/; revision=308731
* Connect new LLVM-based libgcc_eh & libgcc_s to the buildEd Maste2016-11-042-41/+4
| | | | | | | | | | | | | | | Compiler-rt and LLVM's libunwind provide a suitable replacement for libgcc.a, libgcc_eh.a, and libgcc_s.so. Remove the now-unused LLVM_LIBUNWIND block from gnu/lib/libgcc. PR: 213480 [exp-run] Reviewed by: brooks, ed Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D8189 Notes: svn path=/head/; revision=308308
* Fix packaging /usr/lib{,32}/libgcc_eh{,_p}.a.Glen Barber2016-10-311-2/+2
| | | | | | | | | Reported by: woodsb02 MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=308156
* Add full softfloat and hardfloat support for MIPS.Ruslan Bukin2016-10-318-10/+10
| | | | | | | | | | | | | | This adds new target architectures for hardfloat: mipselhf mipshf mips64elhf mips64hf. Tested in QEMU only. Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D8376 Notes: svn path=/head/; revision=308130
* Fix a typo from a manual merge.Justin Hibbits2016-10-221-1/+1
| | | | Notes: svn path=/head/; revision=307784
* Create a new MACHINE_ARCH for Freescale PowerPC e500v2Justin Hibbits2016-10-228-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The Freescale e500v2 PowerPC core does not use a standard FPU. Instead, it uses a Signal Processing Engine (SPE)--a DSP-style vector processor unit, which doubles as a FPU. The PowerPC SPE ABI is incompatible with the stock powerpc ABI, so a new MACHINE_ARCH was created to deal with this. Additionaly, the SPE opcodes overlap with Altivec, so these are mutually exclusive. Taking advantage of this fact, a new file, powerpc/booke/spe.c, was created with the same function set as in powerpc/powerpc/altivec.c, so it becomes effectively a drop-in replacement. setjmp/longjmp were modified to save the upper 32-bits of the now-64-bit GPRs (upper 32-bits are only accessible by the SPE). Note: This does _not_ support the SPE in the e500v1, as the e500v1 SPE does not support double-precision floating point. Also, without a new MACHINE_ARCH it would be impossible to provide binary packages which utilize the SPE. Additionally, no work has been done to support ports, work is needed for this. This also means no newer gcc can yet be used. However, gcc's powerpc support has been refactored which would make adding a powerpcspe-freebsd target very easy. Test Plan: This was lightly tested on a RouterBoard RB800 and an AmigaOne A1222 (P1022-based) board, compiled against the new ABI. Base system utilities (/bin/sh, /bin/ls, etc) still function appropriately, the system is able to boot multiuser. Reviewed By: bdrewery, imp Relnotes: yes Differential Revision: https://reviews.freebsd.org/D5683 Notes: svn path=/head/; revision=307761
* Revert r307689Enji Cooper2016-10-211-7/+2
| | | | | | | | | | | | | | | | | | | | | The proposed change ("Fix building of llvm's unwind if gcc has been also built") breaks the build with clang/llvm. Tested with... ( export SRCCONF=/dev/null WITH_CLANG= cd gnu/lib/libgcc; make obj; make depend; make all ) MFC after: 3 days X-MFC with: r307689 Pointyhat to: bapt Reported by: Jenkins, O. Hartmann <ohartman@zedat.fu-berlin.de> Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=307699
* Fix building of llvm's unwind if gcc has been also builtBaptiste Daroussin2016-10-201-2/+7
| | | | | | | | | | | | | when building gcc an unwind.h header is generate in the cc_tool directory which is included in the CFLAGS before the path where the llvm's unwind.h file lives Reviewed by: emaste MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D7357 Notes: svn path=/head/; revision=307689
* Correct typo in r307679: the variable is MK_GNU_GREP_COMPATEd Maste2016-10-201-1/+1
| | | | Notes: svn path=/head/; revision=307683
* Build libgnuregex only if necessary for other componentsEd Maste2016-10-201-1/+5
| | | | | | | | Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D8298 Notes: svn path=/head/; revision=307679
* Remove trailing whitespace from r307674Ed Maste2016-10-201-2/+2
| | | | Notes: svn path=/head/; revision=307675
* Add knobs to make GNU diff and GNU grep optionalEd Maste2016-10-201-4/+2
| | | | | | | | | | | | | | | | | | | This is added to facilitate experiments building FreeBSD without copyleft software. If WITHOUT_GNU_DIFF is set no /usr/bin/diff or /usr/bin/diff3 will be built. If WITHOUT_GNU_GREP is set then BSD grep will be installed as /usr/bin/bsdgrep or /usr/bin/grep, depending on the WITH_BSD_GREP knob. Reviewed by: brooks (earlier) Sponsored by: The FreeBSD Foundation Differential Revision: Differential Revision: https://reviews.freebsd.org/D8288 Notes: svn path=/head/; revision=307674
* Switch gnu/usr.bin/Makefile to SUBDIR.${MK_*} optional subdir styleEd Maste2016-10-191-31/+10
| | | | Notes: svn path=/head/; revision=307659
* Put each SUBDIR on a separate line for ease of maintenanceEd Maste2016-10-191-1/+3
| | | | | | | | | Additional patches to this file are in progress, and having each SUBDIR entry on a separate line makes it easier to change the order in which the patches are reviewed, tested, and applied. Notes: svn path=/head/; revision=307656
* Switch gnu/lib/Makefile to SUBDIR.${MK_*} optional subdir styleEd Maste2016-10-191-12/+3
| | | | | | | Compound conditions are left unchanged Notes: svn path=/head/; revision=307652
* Remove GNU rcs from base.Baptiste Daroussin2016-10-1569-25317/+0
| | | | | | | | | | | GNU rcs is still available as a package: - rcs: Latest GPLv3 GNU rcs version. - rcs57: Copy of the latest version of GNU rcs (GPLv2) from base. Relnotes: yes Notes: svn path=/head/; revision=307351
* Avoid using 'head' in generating groff doc dateEd Maste2016-10-121-2/+1
| | | | | | | | | | | | | | | It may not be available in certain cross build cases. Note that this is a slight change in functionality, in that now only the first line of the source ChangeLog file is processed. This is acceptable as groff will be retired and we won't encounter a possibly-different ChangeLog format. Reported by: jhibbits Tested by: jhibbits Notes: svn path=/head/; revision=307150
* groff: use changelog date rather than file modification date in man pagesEd Maste2016-10-052-1/+11
| | | | | | | | | | | | | The source checkout date is not particularly relevant, and this makes groff man pages build reproducibly. Reviewed by: bapt MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D8158 Notes: svn path=/head/; revision=306740
* Retire WITHOUT_ELFCOPY_AS_OBJCOPY optionEd Maste2016-10-031-6/+1
| | | | | | | | | | | | | | | | | In FreeBSD 11 ELF Tool Chain's elfcopy is installed as objcopy by default, with the option to switch back to GNU objcopy by setting WITHOUT_ELFCOPY_AS_OBJCOPY in make.conf. We plan to remove the outdated in-tree binutils in FreeBSD 12, so remove the temporary transition aid. Reviewed by: brooks, imp Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D7337 Notes: svn path=/head/; revision=306649
* Don't build libdialog if WITHOUT_DIALOG is setEd Maste2016-10-031-1/+3
| | | | | | | X-MFC-With: r306375 Notes: svn path=/head/; revision=306648
* Add a WITHOUT_DIALOG src.conf(5) knobEd Maste2016-09-271-1/+2
| | | | | | | | | | | It also turns off dependencies (bsdinstall, bsdconfig, dpv, tzsetup). Reviewed by: dteske Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D7969 Notes: svn path=/head/; revision=306375
* When MAKEOBJDIRPREFIX points to a case-insensitive file system, theMarcel Moolenaar2016-09-242-8/+8
| | | | | | | | | | | | | | | | | build can break when different source files create the same target files (case-insensitivity speaking). This is the case for object files compiled with -fpic and shared libraries. The former uses an extension of ".So", and the latter an extension ".so". Rename shared object files from *.So to *.pico to match what NetBSD does. See also r305855 MFC after: 1 month Sponsored by: Bracket Computing Differential Revision: https://reviews.freebsd.org/D7906 Notes: svn path=/head/; revision=306297
* DIRDEPS_BUILD: Avoid cyclic dependency with libc++.Bryan Drewery2016-08-311-0/+4
| | | | | | | | | | | | The DIRDEPS_BUILD does not have a 'make includes' phase, so it would otherwise want libc++ to be fully built/staged before building libgcc. Using the header directly works. MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=305145
* rename ARM's libunwind.S to to avoid conflict with llvm libunwindEd Maste2016-07-271-1/+1
| | | | | | | | | | | | | | llvm libunwind includes a libunwind.cpp, but on ARM libunwind.S is found first in .PATH. Rename the latter one, since it is not going to be updated again. Reviewed by: andrew MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D7162 Notes: svn path=/head/; revision=303396
* Back out non-collating [a-z] ranges.Andrey A. Chernov2016-07-141-5/+0
| | | | | | | | | | | Instead of changing the whole course to another POSIX-permitted way for consistency and uniformity I decide to completely ignore missing regex fucntionality and focus on fixing bugs in what we have now, too many small obstacles we have choicing other way, counting ports. Corresponding libc changes are backed out in r302824. Notes: svn path=/head/; revision=302833
* After removing collation for [a-z] ranges in r302512, do it here too.Andrey A. Chernov2016-07-131-0/+5
| | | | | | | | | | | | | | Instead of trying to expand whole range at regcomp() stage as we do, GNU regex allocates separate ranges [start,end] set each character is checked against, so collation is possible and turned on for ranges here. When something like that will be implemented or our obsoleted regex code will be replaced to something like TRE, and in case we decide to use collation in [a-z] ranges, all changes related to r302512 can be backed out, but now we need consistency. Notes: svn path=/head/; revision=302781
* Revert r302670 and r302671 for now.Bryan Drewery2016-07-134-4/+4
| | | | | | | | MACHINE_CPUARCH smells like MACHINE except for arm64/aarch64 which has it backwards. Notes: svn path=/head/; revision=302690
* Create one list of replacements for MACHINE_CPUARCH as MACHINE_CPUARCH_SUB.Bryan Drewery2016-07-124-4/+4
| | | | | | | | | | | | | This also adds missing s/aarch64/arm64 to the sys.mk version and also adds back armv6hf for universe since it was added to the sys.mk version in r300438. MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D7159 Notes: svn path=/head/; revision=302670
* libunwind: enable only the native unwinder by defaultEd Maste2016-07-081-1/+1
| | | | | | | | | | | This significantly reduces stack space requirements, and runtimes require only native unwinding. MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=302456
* Spell 10.2, 10.3, 12.0 correctly in various places.Glen Barber2016-07-081-3/+3
| | | | | | | | | | Submitted by: markj Approved by: re (implicit) Pointyhat: gjb (myself) Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=302419