summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* MFC r261267: Add libexecinfo.pluknet2014-02-011-0/+1
|
* MFC r258428, r258445pfg2013-12-182-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | gcc: another round of merges from the gcc pre-43 branch. Bring The following revisions from the gcc43 branch[1]: 118360, 118361, 118363, 118576, 119820, 123906, 125246, and 125721. They all have in common that the were merged long ago into Apple's gcc and should help improve the general quality of the compiler and make it easier to bring new features from Apple's gcc42. For details please review the additions to the files: gcc/ChangeLog.gcc43 gcc/cp/ChangeLog.gcc43 (new, adds previous revisions) Fix crosscompilation (r258445 by andreast) Reference: [1] http://gcc.gnu.org/viewcvs/gcc/trunk/?pathrev=126700 Obtained from: gcc pre4.3 (GPLv2) branch MFC after: 3 weeks
* MFC rr258501, r258507;pfg2013-12-152-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc: Bring updates from Google's enhanced gcc-4.2.1. Google released and enhanced version of gcc-4.2.1 plus their local patches for Android[1]. The patches are owned by Google and the license hasn't been changed from the original GPLv2. We are only bringing a subset of the available patches that may be helpful in FreeBSD, in other words, changes specific to android are not included. From the README.google file[1]. Patches applied to google_vendor_src_branch/gcc/gcc-4.2.1: gcc/Makefile.in gcc/c-common.c gcc/c-common.h gcc/c-opts.c gcc/c-typeck.c gcc/cp/typeck.c gcc/doc/invoke.texi gcc/flags.h gcc/opts.c gcc/tree-flow.h gcc/tree-ssa-alias-warnings.c gcc/tree-ssa-alias.c Backport of -Wstrict-aliasing from mainline. Silvius Rus <rus@google.com> gcc/coverage.c: Patch coverage_checksum_string for PR 25351. Seongbae Park <spark@google.com> Not yet submitted to FSF. gcc/c-opts.c gcc/c-ppoutput.c gcc/c.opt gcc/doc/cppopts.texi libcpp/Makefile.in libcpp/directives-only.c libcpp/directives.c libcpp/files.c libcpp/include/cpplib.h libcpp/init.c libcpp/internal.h libcpp/macro.c Support for -fdirectives-only. Ollie Wild <aaw@google.com>. Submitted to FSF but not yet approved. libstdc++-v3/include/ext/hashtable.h http://b/742065 http://b/629994 Reduce min size of hashtable for hash_map, hash_set from 53 to 5 libstdc++-v3/include/ext/hashtable.h http://b/629994 Do not iterate over buckets if hashtable is empty. gcc/common.opt gcc/doc/invoke.texi gcc/flags.h gcc/gimplify.c gcc/opts.c Add Saito's patch for -finstrument-functions-exclude-* options. gcc/common.opt gcc/doc/invoke.texi gcc/final.c gcc/flags.h gcc/opts.c gcc/testsuite/gcc.dg/Wframe-larger-than.c Add a new flag -Wframe-larger-than- which enables a new warning when a frame size of a function is larger than specified. This patch hasn't been integrated into gcc mainline yet. gcc/tree-vrp.c Add a hack to avoid using ivopts information for pointers starting at constant values. Reference: [1] https://android.googlesource.com/toolchain/gcc/+/master/gcc-4.2.1/ Obtained from: Google Inc.
* MFC r257530brooks2013-11-041-1/+6
| | | | | | | | | Reimplement r257525 such that it work with the historic FreeBSD make implementation. This fixes the toolchain and kernel-toolchain targets when building from older FreeBSD versions where make is fmake. Sponsored by: DARPA/AFRL Approved by: re (glebius)
* MFC r257268:brooks2013-10-311-1/+1
| | | | | | | | Enable the --sysroot=/foo option in ld by always building with a sysroot defined. When not building as a cross linker, the sysroot is set to "/". Exp-run by: bdrewery (ports/183206) Approved by: re (gjb)
* Revert r256095, r256120 (partial), r256121:gjb2013-10-0962-0/+25597
| | | | | | | | | | | | | | | r256095: - Add gnu/usr.bin/rcs back to the base system. r256120: - Add WITHOUT_RCS back to src.conf.5. r256121: - Remove UPDATING entry regarding gnu/usr.bin/rcs removal. Requested by: many Approved by: re (marius) Discussed with: core
* Good bye RCS. You will be missed.eadler2013-10-0762-25597/+0
| | | | | | | (devel/rcs and devel/rcs57 are available as alternatives) Approved by: core Approved by: re (hrs)
* Remove long-unused GNU ar and ranlibemaste2013-10-015-637/+1
| | | | | | | The libarchive-based replacements have been used since 2009; the GNU ones were kept to support source upgrades from FreeBSD 6. Approved by: re@ (delphij)
* On platforms where clang is the default compiler, don't build gcc or libstdc++.theraven2013-09-061-1/+6
| | | | | | | | | | | | | | | | | | To enable them, set WITH_GCC and WITH_GNUCXX in src.conf. Make clang default to using libc++ on FreeBSD 10. Bumped __FreeBSD_version for the change. GCC is still enabled on PC98, because the PC98 bootloader requires GCC to build (or, at least, hard-codes the use of gcc into its build). Thanks to everyone who helped make the ports tree ready for this (and bapt for coordinating them all). Also to imp for reviewing this and working on the forward-porting of the changes in our gcc so that we're getting to a much better place with regard to external toolchains. Sorry to all of the people who helped who I forgot to mention by name. Reviewed by: bapt, imp, dim, ...
* Remove our hacked GNU patch.pfg2013-09-0319-4809/+0
| | | | | | | | | | | The old (2.1) GNU patch has outlived its days. The major local changes have been moved into the less restrictedly licensed patch(1) we adopted in usr.bin/ . A much newer version of GNU patch is available in the ports tree (devel/patch). Disconnect from the build and remove.
* add support to gcc for AES and PCLMUL intrinsics... This addes thejmg2013-09-033-1/+109
| | | | | | | | -maes option, but not the -mpclmul option as I ran out of bits in the 32 bit flags field... You can -D__PCLMUL__ to get this, but it won't be compatible w/ clang and modern gcc... Reviewed by: -current, -toolchain
* Drop build option switch for the older GNU patch.pfg2013-08-291-6/+0
| | | | | | | | As promised, drop the option to make the older GNU patch the default. GNU patch is still being built but something drastic may happen to it to it before Release.
* Add FreeBSD 9.2 to mdoc.local.gjb2013-08-111-0/+1
|
* Part of r245761 makes "grep -D skip" broken for pipes, i.e.ache2013-08-081-5/+7
| | | | | | | echo xxx | grep -D skip xxx returns nothing. Instead of just removing added S_ISFIFO condition (originally absent in this version of grep), make it work as latest GNU version does: don't skip directories and devices if fd == STDIN_FILENO.
* Make the BSD-licensed patch the default.pfg2013-07-261-3/+3
| | | | | | | | | | | | | | | The BSD-licensed patch(1) command has matured and it's behaviour can be considered equivalent to the older version of GNU patch in the tree. The switch has been extensively tested [1] and only two ports presented regressions, which have since been fixed. For convenience a new WITH_GNU_PATCH option is available, but it will likely be removed in the near future. PR: 176313 Approved by: portmgr
* Properly handle input lines containing NUL characters such that pgets()obrien2013-07-021-1/+1
| | | | | | | accurately fills the read buffer. Callers of pgets() still mis-process the buffer contents if the read line contains NUL characters, but this at least makes pgets() accurate.
* Make it so that 'patch < FUBAR' and 'patch -i FUBAR' operate the same.obrien2013-07-021-2/+7
| | | | | | | The former makes a copy of stdin, but was not accurately putting the content of stdin into a temp file. This lead to the undercounting the number of lines in hunks containing NUL characters when reading from stdin. Thus resulting in "unexpected end of file in patch" errors.
* Fold in frame-unwind patchemaste2013-06-172-35/+2
| | | | | After moving to svn there's no need to avoid pulling files off a vendor branch.
* Update dialog to 1.2-20130523bapt2013-06-171-1/+1
| | | | Level up WARNS
* Remove CVS from the base system.eadler2013-06-1513-1264/+0
| | | | | | Discussed with: many Reviewed by: peter, zi Approved by: core
* Add a new knob WITH_DEBUG_FILES to control the building of standaloneemaste2013-06-0710-24/+2
| | | | | | | | | | | | | | | | debug files for userland programs and libraries. The "-g" debug flag is automatically applied when WITH_DEBUG_FILES is set. The debug files are now named ${prog}.debug and ${shlib}.debug for consistency with other systems and documentation. In addition they are installed under /usr/lib/debug, to simplify the process of installing them if needed after a crash. Users of bsd.{prog,lib}.mk outside of the base system place the standalone debug files in a .debug subdirectory. GDB automatically searches both of these directories for standalone debug files. Thanks to everyone who contributed changes, review, and testing during development.
* gcc: install AMD intrinsics header ammintrin.hpfg2013-06-071-2/+2
| | | | | | | This file was included in the changes from r251212 and originated in the pre-GPLv3 gcc43 branch. MFC after: 2 weeks
* Adjust CFLAGS to pick up correct regex.h and posix/regex.h. Note thisjkim2013-06-062-4/+2
| | | | | | actually reverts r250860 and r250861. Reported by: gjb, tinderbox
* Connect libgnuregex 2.17 to the build.jkim2013-06-052-2/+4
|
* Don't look for headers outside of the source or object directories. Inmarcel2013-05-211-1/+1
| | | | | | | particular, don't use DESTDIR. Such creates an unnecessary dependency on the build machine. Obtained from: Juniper Networks, Inc.
* Don't look for headers outside of the source or object directories. Inmarcel2013-05-211-1/+1
| | | | | | | particular, don't use DESTDIR. Such creates an unnecessary dependency on the build machine. Obtained from: Juniper Networks, Inc.
* grep: change some int types.pfg2013-05-203-9/+11
| | | | | | | | | | | | | | | | Change several int variables to size_t, ssize_t, or ptrdiff_t. This should fix the bug described in CVE-2012-5667 when an input line is so long that its length cannot be stored in an int variable. This is based on NetBSD's revision which says: This change to NetBSD's version of GNU grep 2.5.1 (licenced under GPLv2) was made without direct reference to any code licenced under GPLv3. Obtained from: NetBSD MFC after: 3 days
* When gcc 4.2.0 was imported, the 3DNow intrinsics header <mm3dnow.h> wasdim2013-05-081-1/+2
| | | | | | | not added to the list of intrinsics headers to install, so belatedly (5 years :) add it. MFC after: 1 week
* Remove the Fortran directories.rpaulo2013-04-253-70/+0
|
* Fix mips64 and mipsn32 bilds by using proper register names.imp2013-04-251-0/+11
|
* Add FreeBSD 8.4.pluknet2013-04-081-0/+1
| | | | MFC after: 3 days
* KGDB: Accept KLD symbol files with the ".symbols" extension.will2013-03-281-0/+1
| | | | | | | Submitted by: gibbs Approved by: ken (mentor) Sponsored by: Spectra Logic MFC after: 1 month
* KGDB: Allow modules to be loaded from the specified kernel's directory.will2013-03-281-1/+4
| | | | | | | | | | | | | | | | | | When looking up the absolute path for a kld, call find_kld_path() first. This enables locating the module in a different directory than the one stored in kernel memory. With this change, kgdb can now be run on a kernel & vmcore whose associated modules are located in the same directory as the kernel. This makes independent triaging of problems much easier. This change also does not break the normal kgdb use case where no arguments are specified; in that case kgdb loads the running kernel and its modules. Reviewed by: adrian Approved by: ken (mentor) Sponsored by: Spectra Logic MFC after: 1 month
* kgdb enhancements!adrian2013-02-192-10/+13
| | | | | | | | | * document the kgdb -b flag * better verify what's valid with -b * add more comprehensive command line help PR: kern/175743 Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
* In kthr.c, obtain the address of the PCB for threads that were runningmarcel2013-02-1711-7/+75
| | | | | | | | | | | | | | | | | | | | on a core, when the core was stopped, by calling kgdb_trgt_core_pcb(). This has 2 advantages: 1. We don't need to include a machine-specific header anymore and as such kthr.c is truly machine independent. This allows the code to be used in a cross-debugger. 2. We don't need to lookup stoppcbs in generic code when it's an inherently target-spicific symbol. It does not exist for ia64. Implement kgdb_trgt_core_pcb() for all architectures, except ia64, by calling a common function called kgdb_trgt_stop_pcb(). This function differs from kgdb_trgt_core_pcb() in that it gets the size of the PCB structure as an argument and as such remains machine independent. On ia64 the PCB for stopped cores is in the PCPU structure itself. This for better scaling. The implementation of kgdb_trgt_core_pcb() for ia64 uses the cpuid_to_pcpu[] array to to obtain the address of the PCB structure.
* - Add a BSD-licensed patch, ported by Pedro F. Giffuni (pfg) fromgabor2013-01-291-1/+12
| | | | | | | | DragonflyBSD and install it as bsdpatch. WITH_BSD_PATCH makes it default and installs GNU patch as gnupatch. Submitted by: pfg Obtained from: The DragonflyBSD Project
* bsd.own.mk needs to be included before Makefil.inc so MK_ARM_EABI is definedandrew2013-01-251-3/+3
|
* Reorder so that NO_MAN is declared before bsd.own.mk is included and thusbrooks2013-01-241-6/+7
| | | | | has an effect (not installed a g++.1 manpage over the g++.1(.gz) link created in ../cc).
* Import new (BSDL) device tree compiler. Now built by default, so that it can'ttheraven2013-01-221-1/+1
| | | | | | | | | | be used on the host system (and not installed on the device, if required). The GPL'd one is still available if there are any devices that need it (make universe passes with it, including kernels that use fdt, but there may be some out-of-tree ones). WITH_GPL_DTC can be used to select the old one, for now. Probably won't be MFC'd, but we'll remove the GPL'd version in head after the new one has had a lot more testing and ship it in 10.0.
* Make "-D skip" option work with FIFO by opening file in non-blocking mode.davidxu2013-01-221-2/+6
| | | | | Reviewed by: jhb Tested by: delphij
* Add command-line support to kgdb to allow the baudrate to be set.adrian2013-01-211-1/+14
| | | | | | | | | This allows a remote session to be specified with '-r' as well as a non-default baudrate setting using '-b'. TODO: add to the kgdb manpage. MFC after: 2 weeks
* Add compiler support for the ARM EABI.andrew2013-01-1712-3/+34
| | | | | | ARM EABI support is disabled by default and can be enabled by setting WITH_ARM_EABI when building, however only the kernel-toolchain target will work with this flag until the rest of the support is added.
* Set the correct relocation type for R_ARM_TARGET2 to R_ARM_GOT_PREL. Theandrew2013-01-062-0/+2
| | | | | TARGET2 relocation is unused in the current ABI but this change is required for EABI support.
* Fix a dependencyantoine2013-01-011-1/+1
|
* More correct version of prev. fix.ache2012-12-181-1/+1
|
* Fix:ache2012-12-171-1/+1
| | | | | line 11: Malformed conditional (${TARGET} == "arm" || ${TARGET_ARCH} == "powerpc64")
* Also remove -Werror on arm with clang as there are warnings.andrew2012-12-151-1/+1
|
* Clean up hardcoded ar(1) flags in the tree to use the global ARFLAGS ineadler2012-12-061-1/+1
| | | | | | | | | | | | share/mk/sys.mk instead. This is part of a medium term project to permit deterministic builds of FreeBSD. Submitted by: Erik Cederstrand <erik@cederstrand.dk> Reviewed by: imp, toolchain@ Approved by: cperciva MFC after: 2 weeks
* Add support for the "&" character in usernames.eadler2012-10-221-3/+8
| | | | | | | | | Charlie & finally has his last name. PR: gnu/37910 Submitted by: Harry Newton <harry_newton@telinco.co.uk> Approved by: cperciva MFC after: 1 week
* - Remove GNU sort and the WITH_GNU_SORT knobgabor2012-10-136-1572/+0
|
OpenPOWER on IntegriCloud