aboutsummaryrefslogtreecommitdiff
path: root/gnu
Commit message (Collapse)AuthorAgeFilesLines
* Merge r267738 from stable/9:Gavin Atkinson2014-06-2617-4221/+1
| | | | | | | | | | Remove send-pr and fix up all references to it. Replace it with a stub send-pr directing people towards the web site. Approved by: re (gjb), bugmeister Notes: svn path=/releng/9.3/; revision=267911
* Now that stable/9 is in 9.3 mode, switch default manual pageGlen Barber2014-05-091-1/+1
| | | | | | | | | | version to 9.3. Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Notes: svn path=/stable/9/; revision=265736
* MFC r265732:Glen Barber2014-05-091-0/+1
| | | | | | | | | Add 9.3 to mdoc.local. Sponsored by: The FreeBSD Foundation Notes: svn path=/stable/9/; revision=265734
* MFC r263778:Dimitry Andric2014-04-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a SUBDIR_PARALLEL option to bsd.subdir.mk, to allow make to process all the SUBDIR entries in parallel, instead of serially. Apply this option to a selected number of Makefiles, which can greatly speed up the build on multi-core machines, when using make -j. This can be extended to more Makefiles later on, whenever they are verified to work correctly with parallel building. I tested this on a 24-core machine, with make -j48 buildworld (N = 6): before stddev after stddev ======= ====== ======= ====== real time 1741.1 16.5 959.8 2.7 user time 12468.7 16.4 14393.0 16.8 sys time 1825.0 54.8 2110.6 22.8 (user+sys)/real 8.2 17.1 E.g. the build was approximately 45% faster in real time. On machines with less cores, or with lower -j settings, the speedup will not be as impressive. But at least you can now almost max out a machine with buildworld! Submitted by: jilles MFC r263833: Enable parallel building for gnu/usr.bin and usr.bin/clang too. Notes: svn path=/stable/9/; revision=264303
* MFC r257532 (by adrian):Dimitry Andric2013-12-301-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix this build for clang. MFC r259730: To avoid having to explicitly test COMPILER_TYPE for setting clang-specific or gcc-specific flags, introduce the following new variables for use in Makefiles: CFLAGS.clang CFLAGS.gcc CXXFLAGS.clang CXXFLAGS.gcc In bsd.sys.mk, these get appended to the regular CFLAGS or CXXFLAGS for the right compiler. MFC r259913: For libstand and sys/boot, split off gcc-only flags into CFLAGS.gcc. MFC r259927: Fix pc98 build, by also forcing COMPILER_TYPE in sys/boot/pc98/boot2's Makefile. Pointy hat to: dim Notes: svn path=/stable/9/; revision=260096
* MFC r259720:Dimitry Andric2013-12-251-4/+6
| | | | | | | For gnu/lib/csu, only use gcc-specific flags when compiling with gcc. Notes: svn path=/stable/9/; revision=259851
* MFC rr258501, r258507;Pedro F. Giffuni2013-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. Notes: svn path=/stable/9/; revision=259406
* - Set stable/9 branch to -PRERELEASE status.Glen Barber2013-07-111-1/+2
| | | | | | | | | | - Add 9.2 mdoc(7) macro. Approved by: re (implicit) Approved by: kib (mentor) Notes: svn path=/stable/9/; revision=253216
* MFC r244236,r244408,r244915,r247054,r251512:Ed Maste2013-07-0510-24/+2
| | | | | | | | | | | | | | | | Add a new knob WITH_DEBUG_FILES to control the building of standalone debug files for userland programs and libraries. The "-g" debug flag is automatically applied when WITH_DEBUG_FILES is set. The debug files are 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. Notes: svn path=/stable/9/; revision=252827
* MFC r251820. This fixes some symbol visibility issues with libsupc++ that brokeDavid Chisnall2013-06-231-0/+13
| | | | | | | compilation of GNUstep libobjc. Notes: svn path=/stable/9/; revision=252116
* MFC r251212, r251480:Pedro F. Giffuni2013-06-221-2/+2
| | | | | | | | | | | | | | | GCC: bring back experimental support for amdfam10/barcelona CPUs. This is a revised subset of the support initially brought in in r236962 and later reverted. The collateral efects seem to have disappeared but it is still recommended to set the CPUTYPE with caution. While here also install AMD intrinsics header ammintrin.h Reviewed by: jkim (ages ago) Notes: svn path=/stable/9/; revision=252080
* MFC r250823:Pedro F. Giffuni2013-05-233-9/+11
| | | | | | | | | | | | | | grep: change some int types. 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. Obtained from: NetBSD Notes: svn path=/stable/9/; revision=250937
* Revert r250821 - This was not meant to be a direct commit.Pedro F. Giffuni2013-05-203-11/+9
| | | | | | | | | (wrong tree) Pointy hat: me Notes: svn path=/stable/9/; revision=250822
* grep: change some int types.Pedro F. Giffuni2013-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 Notes: svn path=/stable/9/; revision=250821
* MFC r250393:Dimitry Andric2013-05-151-1/+2
| | | | | | | | | When gcc 4.2.0 was imported, the 3DNow intrinsics header <mm3dnow.h> was not added to the list of intrinsics headers to install, so belatedly (5 years :) add it. Notes: svn path=/stable/9/; revision=250677
* MFC r249281: Add FreeBSD 8.4.Sergey Kandaurov2013-04-241-0/+1
| | | | Notes: svn path=/stable/9/; revision=249835
* libstdc++: Revert the expl addition from r246857.Pedro F. Giffuni2013-04-201-1/+1
| | | | | | | | | | | | When the needed configuration update to libstdc++ was done. we overlooked that expl hasn't been merged. This is causing breakage in some ports. Reported by: Diane Bruce Reviewed by: dim Notes: svn path=/stable/9/; revision=249703
* MFC r245882,245898Brooks Davis2013-03-151-4/+5
| | | | | | | | | | | Reorder so that NO_MAN is declared before bsd.own.mk is included and thus has an effect (not installed a g++.1 manpage over the g++.1(.gz) link created in ../cc). bsd.own.mk needs to be included before Makefil.inc so MK_ARM_EABI is defined Notes: svn path=/stable/9/; revision=248355
* MFC r246857:Dimitry Andric2013-02-221-5/+14
| | | | | | | | Regenerate libstdc++'s config.h, synchronizing it with our current almost-C99 headers. Notes: svn path=/stable/9/; revision=247155
* MFC r246028 (by theraven):Dimitry Andric2013-02-051-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix some symbol version mismatches between libstdc++ and libsupc++/libcxxrt that were causing the runtime and STL libraries to see different versions of various classes and functions when libstdc++ is used as a filter. Note: This changes the ABI for libcxxrt, but libcxxrt is currently only in -STABLE for testing and is not used by anything unless explicitly enabled by the end user. No default compiler configurations use it. libc++ will need to be recompiled after this change. make buildworld will do this automatically, but make in lib/libc++ will not necessarily work unless the new libcxxrt is installed first. PR: kern/171610, stand/175453 Reviewed by: kib MFC r246297: Add several missing symbols to libcxxrt's symbol version map, and remove a few duplicates. This should fix building world with -stdlib=libc++ after r246028. Submitted by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp> Notes: svn path=/stable/9/; revision=246368
* MFC r241957:Dimitry Andric2012-10-302-2/+6
| | | | | | | | | | | | | | | | | | | | | | | Fix several clang warnings in libstdc++, which were exposed by the recent atf import. These changes are purely cosmetic, no functional change. MFC r241959: Fix a number of other clang warnings in libstdc++, which could appear when building other C++ software with it. Also fix one actual bug in libsupc++, which was exposed by such a warning. This latter fix is the only functional change. MFC r241960: For building GNU libstdc++ and libsupc++, filter out libc++-specific and -std= flags above c++98 or gnu++98 from CXXFLAGS *after* including bsd.lib.mk, otherwise some additions to CXXFLAGS done in bsd.*.mk might not be preserved. Notes: svn path=/stable/9/; revision=242347
* MFC r241857:Eitan Adler2012-10-301-3/+8
| | | | | | | | | | | | Add support for the "&" character in usernames. Charlie & finally has his last name. PR: gnu/37910 Approved by: cperciva (implicit) Notes: svn path=/stable/9/; revision=242335
* Revert changes that ocassionally got into r241192.Max Khon2012-10-0415-21/+9
| | | | | | | Pointy hat to: me Notes: svn path=/stable/9/; revision=241193
* MFC: r241002Max Khon2012-10-0415-9/+21
| | | | | | | | | | | | | Fix pseudo checksum calculation. This fixes ipfilter w/ network controllers that implement only partial rx csum offloading. PR: 106438 Obtained from: upstream Notes: svn path=/stable/9/; revision=241192
* MFC r239680:Dimitry Andric2012-09-082-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Add libcxxrt's objects (prefixing them with cxxrt_ to avoid collisions) to libc++.a and libc++_p.a, to make static linking of C++ executables with libc++ easier. This is similar to the approach used in libstdc++. MFC r239686: When using -stdlib=libc++, add the correct dependency to .depend in bsd.prog.mk. Submitted by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp> MFC r239695: For building libstdc++ and libsupc++, filter out any -stdlib=libc++ option from CXXFLAGS, otherwise these libraries will not build. Similarly, filter out any -std=xxx options that aren't supported. Submitted by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp> Notes: svn path=/stable/9/; revision=240236
* Synced mdoc(7) with head.Ruslan Ermilov2012-07-261-28/+1
| | | | | | | Approved by: re (kib) Notes: svn path=/stable/9/; revision=238816
* Shift to "FreeBSD 9.1" for what gets printed in manual pages.Ken Smith2012-07-101-1/+2
| | | | | | | Approved by: re (implicit) Notes: svn path=/stable/9/; revision=238351
* Merge r229521 from head to stable/9:Robert Watson2012-07-091-1/+1
| | | | | | | | | | | Add missing -w to kgdb(1)'s usage(). Sponsored by: Adara Networks, Inc. Approved by: re (kib) Notes: svn path=/stable/9/; revision=238283
* MFC: r229809: Don't include <sys/timeb.h>.David E. O'Brien2012-07-021-1/+1
| | | | | | | | | | | | | The purpose of not including <sys/timeb.h> is to avoid the compiler warning we put in <sys/timeb.h>. So this change will cause CVS to provide its own definition of 'struct timeb'. This is only OK because the code never calls the libc ftime(3) interface. CVS only uses 'struct timeb' as a convenience structure -- thus it doesn't matter how its supplied definition does or does not match the ftime(3) ABI. Notes: svn path=/stable/9/; revision=237951
* MFC symbol exports for libsupcc++ and libcxxrt that correctly export new andDavid Chisnall2012-07-011-0/+14
| | | | | | | delete operators. Notes: svn path=/stable/9/; revision=237938
* MFC: r231620, r237098Marius Strobl2012-06-233-4/+2
| | | | | | | Enable TLS support for ARM toolchain Notes: svn path=/stable/9/; revision=237492
* MFC: r235487Marius Strobl2012-05-251-1/+1
| | | | | | | | | | Switch sparc64 to using libcompiler_rt; since r230021 (MFC'ed to stable/9 in r236012) we have a workaround in place allowing it to be used there and since r235388 (MFC'ed to stable/9 in r236002) we also have usable div/mod optimizations like libgcc has. Notes: svn path=/stable/9/; revision=236014
* Merge r233749, building libsupc++ as a shared library and making libstdc++ aDavid Chisnall2012-05-233-2/+144
| | | | | | | | | | | | | | | | | filter library. It should now be possible to build applications on 9-STABLE that link against both libc++ and libstdc++ and to test libcxxrt with libstdc++. If you wish to test libcxxrt, please add this to your /etc/libmap.conf: libsupc++.so.1 libcxxrt.so.1 If you wish to test libc++, add -std=libc++ to your compile and link flags for your favourite C++ applications and / or libraries. Notes: svn path=/stable/9/; revision=235825
* MFC r235211:Glen Barber2012-05-185-6/+6
| | | | | | | | | General mdoc(7) and typo fixes. PR: 167696 Notes: svn path=/stable/9/; revision=235570
* MFC r234782:Konstantin Belousov2012-05-137-2/+22
| | | | | | | | | | | | | | Add src.conf option WITH_SHARED_TOOLCHAIN to enable building the toolchain binaries as dynamically linked. Option is disabled by default. MFC r235152 (by imp): Make is part of the bootstrap path, so we need to guard against this not being defined. Otherwise we don't make a new make when the old make is incompatible. Notes: svn path=/stable/9/; revision=235398
* MFC 232322:Dimitry Andric2012-03-174-7/+951
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a WITH_CLANG_IS_CC option for src.conf(5), disabled by default, that installs clang as /usr/bin/cc, /usr/bin/c++ and /usr/bin/cpp. Note this does *not* disable building and installing gcc, which will still be available as /usr/bin/gcc, /usr/bin/g++ and /usr/bin/gcpp. If you want to disable gcc completely, you must use WITHOUT_GCC. MFC 232323: Regenerate src.conf(5) after r232322. MFC 232477: In r232322, I forgot one case where a check for MK_CLANG_IS_CC was needed, in sys/conf/kern.pre.mk. Add it now. MFC 232522: Fix a thinko in r232322, where gcc (and its tools) are not built during the cross-tools stage, if CC=clang and WITH_CLANG_IS_CC is not set. This causes no 'cc' to be installed in the temporary cross-tools tree, making lint fall over later in the build, because it ignores ${CC} and attempts to run 'cc' anyway. To fix this, only skip building gcc during cross-tools, if WITHOUT_GCC is set, or if WITH_CLANG_IS_CC is set. Pointy hat to: dim Notes: svn path=/stable/9/; revision=233099
* MFC r230427:Konstantin Belousov2012-02-211-1/+1
| | | | | | | Adopt to new layout of struct pcb. Notes: svn path=/stable/9/; revision=231980
* MFC r228060, r228068, r228060Baptiste Daroussin2012-01-162-21/+23
| | | | | | | | | Upgrade gperf to 3.0.3 latest GPLv2 version Approved by: des (mentor) Notes: svn path=/stable/9/; revision=230237
* MFC r228601:Dimitry Andric2011-12-311-0/+1
| | | | | | | | Define YY_NO_INPUT when building libbinutils, to prevent warnings about unused input() functions emitted by lex. Notes: svn path=/stable/9/; revision=229149
* MFC r227215:Dimitry Andric2011-12-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When one attempts to compile the tree with -march=i386, which also used to be gcc's default before r198344, calls to atomic builtins will not be expanded inline. Instead, they will be generated as calls to external functions (e.g. __sync_fetch_and_add_N), leading to linking errors later on. Put in a seatbelt that disables use of atomic builtins in libstdc++ and llvm, when tuning specifically for the real i386 CPU. This does not protect against all possible issues, but it is better than nothing. MFC r227538: LLVM uses atomic operations, which are not supported on i386 and GCC emits calls for them, rather than expanding them inline. Older FreeBSD versions compile for i386 by default and as such we end up with unresolved symbols when we build LLVM's TableGen utility as a build tool on them. Add the functions that GCC emits here, but don't bother to make them atomic. Such is not needed. Submitted by: marcel MFC r227636: Revert r227538, since it doesn't compile with clang at all (it doesn't allow the built-in operations to be redefined, at least not without excessive force). Instead, just disable LLVM's support for atomic operations for now. Nothing in either clang or the tablegen tools currently depends on it. This still allows users of head built before r198344 to upgrade to top-of-head seamlessly. Notes: svn path=/stable/9/; revision=229037
* MFC: r226702David E. O'Brien2011-11-061-1/+1
| | | | | | | | | | | | * Don't give the impression that this compiler is GPLv3. (It is "well known" that GCC 4.2.2 is GPLv3.) * Don't give the impression that this compiler isn't "trustable". * Fix dependency nit. Approved by: re (kib) Notes: svn path=/stable/9/; revision=227128
* Update gcc's __FreeBSD__ and __FreeBSD_cc_version macros for FreeBSD 9.Dimitry Andric2011-10-201-2/+2
| | | | | | | | | | This is a direct commit to stable/9, since the macro values are different in head. Approved by: re (kib) Notes: svn path=/stable/9/; revision=226575
* Do not include <sys/ptrace.h> if we're building a cross-debugger, ptrace isn'tOlivier Houchard2011-08-261-1/+1
| | | | | | | | | | used anyway, and it breaks the build, since sys/ptrace.h now includes <machine/reg.h> Approved by: re Notes: svn path=/head/; revision=225190
* Walk the zombproc list as well as the allproc list when enumerating threadsJohn Baldwin2011-08-191-33/+48
| | | | | | | | | | | | and processes in a kernel image. This allows examination of threads that have exited or are in the late stages of exiting. Tested by: avg Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=225017
* Compile fbsd-threads.c. Amongst others this is necessary for a workingMarius Strobl2011-08-062-0/+3
| | | | | | | | | | | kgdb(1). Reviewed by: marcel Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=224687
* Update dialog to 1.1-20110707.Nathan Whitehorn2011-07-141-5/+5
| | | | Notes: svn path=/head/; revision=224014
* Provide a simple manual page for libprocstat(3).Sergey Kandaurov2011-07-121-0/+1
| | | | | | | Reviewed by: jilles, gjb Notes: svn path=/head/; revision=223953
* Simply post r222273.David E. O'Brien2011-06-081-3/+1
| | | | Notes: svn path=/head/; revision=222878
* Added FreeBSD 8.3.Ruslan Ermilov2011-06-081-0/+1
| | | | Notes: svn path=/head/; revision=222854
* Pull up all vendor changes to mdoc(7).Ruslan Ermilov2011-06-081-2/+0
| | | | | | | | | | | | This also replaces the local fix in r219209 that made .Ac emit ASCII angle quotes with an official fix. In the official fix, ASCII quotes are output when using the .Aq, .Ao and .Ac calls, but only when nested into the .An macro. PR: gnu/154822 Notes: svn path=/head/; revision=222852