aboutsummaryrefslogtreecommitdiff
path: root/gnu
Commit message (Collapse)AuthorAgeFilesLines
* Retire GNU man in favor of the newly written BSDL version.Gordon Tetlow2010-10-031-5/+0
| | | | | | | Approved by: wes (mentor) Notes: svn path=/head/; revision=213391
* Remove target peigen.c so that make doesn't warn us about it.Rui Paulo2010-09-301-2/+0
| | | | Notes: svn path=/head/; revision=213294
* Add support for the BFD target efi-app-x86_64.Rui Paulo2010-09-291-2/+11
| | | | | | | | This uses only GPL2 source code and is a requirement for a 64 bit EFI boot loader. Notes: svn path=/head/; revision=213274
* Move test for zero bufp or size before rseq and wseq calculation. ThisEd Maste2010-09-221-1/+3
| | | | | | | | avoids spinning in an infinite loop for some (possibly corrupt?) core files at work. Notes: svn path=/head/; revision=213013
* When building world with clang, for gnu/lib/libobjc, sys/boot/i386/boot2Dimitry Andric2010-09-211-3/+1
| | | | | | | | | | | | | | | and sys/boot/pc98/boot2, do not simply assign 'gcc' to CC, since compile flags are sometimes passed via this variable, for example during the build32 stage on amd64. This caused the 32-bit libobjc build on amd64 to fail. Instead, only replace the first instance of clang (if any, including optional path) with gcc, and leave the arguments alone. Approved-by: rpaulo (mentor) Notes: svn path=/head/; revision=212979
* GCC defines built-ins for atomic instructions found on i486 and higher.Tijl Coosemans2010-09-072-2/+2
| | | | | | | | | | | | | | | | | Because FreeBSD no longer supports the 80386 cpu all code targeting FreeBSD/i386 necessarily runs on i486 or higher so the compiler built-ins can be used by default inside libstdc++ and in C++ headers. This allows newly compiled C++ code to inline some atomic operations. Old binaries continue to use libstdc++ functions. PR: 148926 Tested by: Yuri Karaban <tech askold net> Reviewed by: kan Approved by: kib (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=212286
* Use a more robust way to substitute gcc for clang, when compilingDimitry Andric2010-08-311-1/+3
| | | | | | | | | | gnu/lib/libobjc and sys/boot/i386/boot2, so it also works when using absolute paths and/or options, as in CC="/absolute/path/clang -foo". Approved by: rpaulo (mentor) Notes: svn path=/head/; revision=212060
* Repair some build breakage introduced in r211725 and garbage collect someNathan Whitehorn2010-08-281-1/+1
| | | | | | | code made obsolete in the same commit. Notes: svn path=/head/; revision=211934
* Create a checklist and call one of the *printw() functions from theWarner Losh2010-08-241-0/+18
| | | | | | | | | | | | | | | | | | | | selected() callback. When the dialog first appears, you will not see the printed statement on the dialog, if you move down one, you will, move up again and it now appears. I am assuming that you call a *printw() function on a line in the dialog box of course. The fix, from the pr: This is a hack at best, I looked at the redraw code in dialog_checklist() and took the minimal amount of it out to do a simple "refresh" right after the items are drawn. This doesn't hurt anything and makes the library work like it should. There is probably a better way however =). PR: 148609 Submitted by: John Hixson Notes: svn path=/head/; revision=211731
* MFtbemd:Warner Losh2010-08-236-31/+21
| | | | | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform. Notes: svn path=/head/; revision=211725
* - Change default grep back to GNU version. BSD grep can be built with theGabor Kovesdan2010-08-231-4/+4
| | | | | | | | | | | WITH_BSD_GREP knob. - Bump __FreeBSD_version Requested by: dougb Approved by: delphij (mentor) Notes: svn path=/head/; revision=211701
* We need to pull bsd.own.mk before modifying the CC variable. OtherwiseRui Paulo2010-08-211-0/+2
| | | | | | | | | it will be overwritten when we include bsd.lib.mk. Pointed out by: Dimitry Andric <dimitry at andric.com> Notes: svn path=/head/; revision=211570
* Fix buildworld -DNO_CLEAN when using with Perforce, which marks files asWill Andrews2010-08-124-5/+5
| | | | | | | | | | read-only by default, meaning files copied can't be overwritten next time. Reviewed by: imp Approved by: ken (mentor) Notes: svn path=/head/; revision=211243
* Change kgdb_lookup() to resolve symbols via GDB instead of via libkvm(3).John Baldwin2010-08-043-29/+23
| | | | Notes: svn path=/head/; revision=210852
* Give kgdb(1) a chance to take a look at FPU state.Jung-uk Kim2010-08-021-0/+1
| | | | Notes: svn path=/head/; revision=210778
* Fix case for library macrosUlrich Spörlein2010-08-021-1/+1
| | | | Notes: svn path=/head/; revision=210770
* Add libproc.Rui Paulo2010-07-311-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=210684
* Add librtld_db.Rui Paulo2010-07-311-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=210681
* kgdb: correctly map sections to addresses in elf object modules (amd64)Andriy Gapon2010-07-231-6/+28
| | | | | | | | | | | | | | | | Unlike for modules with dso type, in elf object modules all the sections have virtual address of zero. So, it is insufficient to add module base address to section virtual address (as recorded in section header) to get section address in kernel memory. Instead, we should apply the same calculations that are performed by kernel loaders (in boot code and in kernel) when they lay out sections in memory. Discussed with: jhb, np MFC after: 3 weeks Notes: svn path=/head/; revision=210424
* Disable building libobjc with clang as it's not yet supported.Rui Paulo2010-07-221-0/+3
| | | | | | | Submitted by: Dimitry Andric <dimitry at andric.com> Notes: svn path=/head/; revision=210385
* Sanitize CFLAGS and add WARNS?=2. The hardcoding of -Os -fPICMarcel Moolenaar2010-07-151-1/+1
| | | | | | | as compiler options resulted in an invalid executable on PowerPC. Notes: svn path=/head/; revision=210101
* Teach our toolchain how to generate 64-bit PowerPC binaries. This fixesNathan Whitehorn2010-07-1018-6/+1096
| | | | | | | | | | | a variety of bugs in binutils related to handling of 64-bit PPC ELF, provides a GCC configuration for 64-bit PowerPC on FreeBSD, and associated build systems tweaks. Obtained from: projects/ppc64 Notes: svn path=/head/; revision=209867
* Mention the radiolist option in the man page. It is being listed whenBenedict Reuschling2010-07-061-0/+10
| | | | | | | | | | | | | | | | dialog(1) is run without arguments and works as expected. Therefore, it should be part of the manual as well. Note: dialog(1) has not been updated for many years and is not actively maintained at the moment. PR: docs/139682 Submitted by: manolis@ Discussed with: jkim@ MFC after: 2 weeks Notes: svn path=/head/; revision=209738
* For "thread signal" command, print some information from siginfo whenKonstantin Belousov2010-07-041-0/+37
| | | | | | | | | | available. Suggested by: davidxu MFC after: 2 weeks Notes: svn path=/head/; revision=209690
* Add an alignment of 8 for sections in the n32 ABI. The default alignmentJayachandran C.2010-06-252-0/+2
| | | | | | | | | | | | of of 4 causes _end to be word aligned, which will be returned by sbrk. malloc(3), when compiled for n32, expects sbrk to return an 8-byte aligned value. Approved by: rrs (mentor) Notes: svn path=/head/; revision=209520
* Often reported issue with newer ld is:Konstantin Belousov2010-06-181-1/+2
| | | | | | | | | | | | | | | | | | | | error in /usr/lib/crtendS.o(.eh_frame); no .eh_frame_hdr table will be created. The issue is that crtend is compiled with unwind table, and also it places the special CIE into the .eh_frame indicating the end of section, that is located before generated unwind table. New ld has assertion that verifies that closing CIE is indeed the last CIE, causing the crypting message to be issued, and refusing to generate dwarf unwind. Add -fno-asynchronous-unwind-tables to disable unwind table generation for crtbegin/crtend. While there, disable omitting the frame pointer [1]. Requested by: kan [1] Reviewed by: kan MFC after: 2 weeks Notes: svn path=/head/; revision=209294
* Make all tests in libdialog compilable.Andrey V. Elsukov2010-06-154-7/+7
| | | | | | | | | Fix coredump in menu3.c. Approved by: kib (mentor) Notes: svn path=/head/; revision=209200
* Connect FDT infrastructure to the build system.Rafal Jaworowski2010-06-131-0/+5
| | | | | | | | Reviewed by: imp Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=209128
* Fix build for O32 systems without a TARGET_CPUTYPE defined. We must default toJuli Mallett2010-06-021-0/+8
| | | | | | | | | MIPS-III because FreeBSD relies on a number of MIPS-III features; the ABI default would be MIPS-I which we don't intend to support. Our old default before I switched to using the ABI default was MIPS32. Notes: svn path=/head/; revision=208758
* Add/improve mips64r2, Octeon, n32 and n64 support in the toolchain.Juli Mallett2010-06-027-9/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o) Add TARGET_ABI to the MIPS toolchain build process. This sets the default ABI to one of o32, n32 or n64. If it is not set, o32 is assumed as that is the current default. o) Set the default GCC cpu type to any specified TARGET_CPUTYPE. This is necessary to have a working "cc" if e.g. mips64 is specified, as binutils will refuse to link objects using different ISAs in some cases. o) Add support for n32 and n64 ABIs to binutils and GCC. o) Add additional required libgcc2 stubs for n32 and n64. o) Add support for the "mips64r2" architecture to GCC. Add the "octeon" o) When static linking, wrap default libraries in --start-group and --end-group. This is required for static linking to work on n64 with the interdependencies between libraries there. This is what other OSes that support n64 seem to do, as well. o) Fix our GCC spec to define __mips64 for 64-bit targets, not __mips64__, the former being what libgcc, etc., check and the latter seemingly being a misspelling of a hand merge from a Linux spec. o) When no TARGET_CPUTYPE is specified at build time, make GCC take the default ISA from the ABI. Our old defaults were too liberal and assumed that 64-bit ABIs should default to the MIPS64 ISA and that 32-bit ABIs should default to the MIPS32 ISA, when we are supporting or will support some systems based on earlier 32-bit and 64-bit ISAs, most notably MIPS-III. o) Merge a new opcode file (and support code) from a later version of binutils and add flags and code necessary to support Octeon-specific instructions. This should also make merging opcodes for other modern architectures easier. Reviewed by: imp Notes: svn path=/head/; revision=208737
* Correct dtc version header autogen location.Rafal Jaworowski2010-05-251-9/+9
| | | | | | | While there unify brackets usage. Notes: svn path=/head/; revision=208536
* Add a new build option, MAN_UTILS. This option lets you control buildingJung-uk Kim2010-05-191-1/+1
| | | | | | | | | | | | utilities and related support files for manual pages, which were previously controlled by MAN. For POLA, the default depends on MAN, i.e., WITHOUT_MAN implies WITHOUT_MAN_UTILS and WITH_MAN implies WITH_MAN_UTILS. This patch is slightly improved by me from: PR: misc/145212 Notes: svn path=/head/; revision=208320
* Non-GCC gcc compatible compilers may provide the same multimedia intrinsicDavid E. O'Brien2010-05-126-6/+13
| | | | | | | | | | headers as GCC, but of their own implementation. So put the GCC ones into their own header "namespace". Requested by: ed Notes: svn path=/head/; revision=207995
* Add FreeBSD 8.1 to known list as it's being referenced by a couple ofXin LI2010-04-291-0/+1
| | | | | | | | | manpages already. MFC after: 3 days Notes: svn path=/head/; revision=207383
* Make this directory more regular. Since it is one we control, use theWarner Losh2010-04-144-14/+3
| | | | | | | | | | freebsd-based names for filenames. This allows us to eliminate almost all of the uses of ${MACHINE_ARCH} here to do special things, and instead we use it to include filenames. This makes new architectures easier to support. Notes: svn path=/head/; revision=206624
* mdoc: order prologue macros consistently by Dd/Dt/OsUlrich Spörlein2010-04-141-1/+1
| | | | | | | | | | | Although groff_mdoc(7) gives another impression, this is the ordering most widely used and also required by mdocml/mandoc. Reviewed by: ru Approved by: philip, ed (mentors) Notes: svn path=/head/; revision=206622
* Simplify how we select which architectures to add gdbserver for. IfWarner Losh2010-04-121-2/+1
| | | | | | | the MD files exist, compile it, otherwise omit it. Notes: svn path=/head/; revision=206530
* Change all our own code to use st_*tim instead of st_*timespec.Ed Schouten2010-03-282-19/+1
| | | | | | | Also remove some local patches to diff(1) which are now unneeded. Notes: svn path=/head/; revision=205793
* Allow building a cross-kgdb for ia64.Marcel Moolenaar2010-03-262-1/+8
| | | | Notes: svn path=/head/; revision=205711
* Handle cross-builds for gdbserver.Marcel Moolenaar2010-03-261-1/+3
| | | | Notes: svn path=/head/; revision=205710
* Remove GNU cpio after fix of CVE-2010-0624.Xin LI2010-03-264-1101/+0
| | | | | | | | | | | | | | | | Note that this is actually a no-op for most users, as this GNU cpio was broken on -HEAD and 8-STABLE since last March until the recent fix. FreeBSD 8.0+ uses BSD cpio by default and the code is being actively maintained. Blessed by: kientzle With hat: secteam MFC after: 3 days Notes: svn path=/head/; revision=205702
* This broke when we went to gnu99 as the default standard. Fix the buildWarner Losh2010-03-241-0/+1
| | | | | | | by reverting to the gnu89 standard. Notes: svn path=/head/; revision=205630
* Fix typo in commentWarner Losh2010-03-191-1/+1
| | | | Notes: svn path=/head/; revision=205310
* Make little endian compiles produce little endian binaries on mips.Warner Losh2010-03-051-0/+4
| | | | | | | Submitted by: neel@ Notes: svn path=/head/; revision=204771
* Remove stale path reference.Rafal Jaworowski2010-03-051-1/+1
| | | | Notes: svn path=/head/; revision=204765
* Make the n32 scripts actually generate, ummm, n32 binaries... <blush>Warner Losh2010-03-042-2/+2
| | | | | | | Submitted by: jmallet Notes: svn path=/head/; revision=204685
* Add n32 ABI generators...Warner Losh2010-03-024-1/+11
| | | | | | | Submitted by: neel, jmallet Notes: svn path=/head/; revision=204548
* Provide BSD-style Makefile for the device tree compiler (dtc).Rafal Jaworowski2010-02-281-0/+51
| | | | | | | | | Note it is not connected to the build hierarchy yet. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=204490
* Initial gdbserver support for amd64.Jung-uk Kim2010-02-254-3/+319
| | | | Notes: svn path=/head/; revision=204335
* POSIX patch(1) would treat -b as different meaning (the functionalityXin LI2010-02-223-3/+3
| | | | | | | | | | is to be provided by --suffix). Looking at the usage here in diffutils, it seems that we can just get rid of the -b .orig stuff. This resolves a problem that can triggered if we move toward to a more permissively licensed patch(1) program. Notes: svn path=/head/; revision=204227