summaryrefslogtreecommitdiffstats
path: root/gnu/lib
Commit message (Collapse)AuthorAgeFilesLines
* Sync: merge r215273 through r215318 from ^/head.dim2010-11-141-2/+2
|
*-. Sync: merge r215141 through r215188 from ^/head.dim2010-11-121-0/+4
|\ \
| * | Revert to libgcc for sparc64.ed2010-11-121-0/+4
| |/ | | | | | | | | | | | | | | | | I've had a report of a sparc64 system where cc1 generates illegal instructions. We still have to diagnose this properly, but instead of hosing all sparc64 boxes out there, fall back to libgcc to prevent more damage. Reported by: Florian Smeets
* | Sync: merge r214895 through r215140 from ^/head.dim2010-11-111-19/+18
|\ \ | |/
| * Replace libgcc.a by libcompiler_rt.a.ed2010-11-111-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libcompiler_rt.a is a BSD licensed C language runtime, which implements many routines which are linked into binaries on architectures where certain functionality is missing (e.g. 64 bits mul/div on i386). Unfortunately, libcompiler_rt cannot replace libgcc entirely. Certain features, such as an unwinder for exception handling, are missing. That's why only libgcc.a is replaced for now, because this one does seem to be complete. Tested by: rene (amd64), nwhitehorn (powerpc), droso (i386 exprun) and many others. Thanks! Obtained from: user/ed/compiler-rt
| * Don't use ${LIB} to obtain the library name.ed2010-11-111-9/+9
| | | | | | | | | | | | | | Once we use libcompiler_rt, the LIB-line must go, to prevent libgcc.a from being built. Therefore, just hardcode the name. Obtained from: user/ed/compiler-rt
| * Complete the integration of tbemd branch into head.imp2010-11-101-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TARGET_BIG_ENDIAN is now completely dead, except where it was originally supposed to be used (internally in the toolchain building). TARGET_ARCH has changed in three cases: (1) Little endian mips has changed to mipsel. (2) Big endian mips has changed to mipseb. (3) Big endian arm has changed to armeb. Some additional changes are needed to make 'make universe' work on arm and mips after this change, so those are commented out for now. UPDATING information will be forthcoming. Any remaining rough edges will be hammered out in -current.
* | Garbage collect gnu/lib/libiberty and gnu/lib/libg2c, these have notdim2010-10-226-807/+0
|/ | | | been used for years.
* When building world with clang, for gnu/lib/libobjc, sys/boot/i386/boot2dim2010-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)
* GCC defines built-ins for atomic instructions found on i486 and higher.tijl2010-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
* Use a more robust way to substitute gcc for clang, when compilingdim2010-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)
* Repair some build breakage introduced in r211725 and garbage collect somenwhitehorn2010-08-281-1/+1
| | | | code made obsolete in the same commit.
* Create a checklist and call one of the *printw() functions from theimp2010-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
* MFtbemd:imp2010-08-233-12/+13
| | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
* We need to pull bsd.own.mk before modifying the CC variable. Otherwiserpaulo2010-08-211-0/+2
| | | | | | it will be overwritten when we include bsd.lib.mk. Pointed out by: Dimitry Andric <dimitry at andric.com>
* Fix buildworld -DNO_CLEAN when using with Perforce, which marks files aswill2010-08-122-2/+2
| | | | | | | read-only by default, meaning files copied can't be overwritten next time. Reviewed by: imp Approved by: ken (mentor)
* Disable building libobjc with clang as it's not yet supported.rpaulo2010-07-221-0/+3
| | | | Submitted by: Dimitry Andric <dimitry at andric.com>
* Teach our toolchain how to generate 64-bit PowerPC binaries. This fixesnwhitehorn2010-07-102-1/+6
| | | | | | | | 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
* Often reported issue with newer ld is:kib2010-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
* Make all tests in libdialog compilable.ae2010-06-154-7/+7
| | | | | | Fix coredump in menu3.c. Approved by: kib (mentor)
* Add/improve mips64r2, Octeon, n32 and n64 support in the toolchain.jmallett2010-06-022-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Non-GCC gcc compatible compilers may provide the same multimedia intrinsicobrien2010-05-123-3/+6
| | | | | | | headers as GCC, but of their own implementation. So put the GCC ones into their own header "namespace". Requested by: ed
* Use the new PO_CXXFLAGS from r202807 to remove the '-ffunction-sections'sepotvin2010-01-222-0/+2
| | | | | | | flag when compiling profiled objects as it's ignored by the compiler. This removes the associated warning for each file compiled. MFC after: 1 month
* Merge r195030 from project/mips into head by hand:imp2010-01-081-1/+5
| | | | | | | r195030 | gonzo | 2009-06-25 19:27:31 -0600 (Thu, 25 Jun 2009) | 4 lines - Switch to libc softfloat from libgcc implementation. The problem with latter is that it is not complete, fpsetXXX/fpgetXXX functions are missing.
* Fix one spelling and one copy&paste error in comments.kan2009-12-141-2/+2
|
* Compile libgcov without stack protection. It can be linked intokan2009-10-251-0/+1
| | | | | | | | both static and dynamic binaries compiled with or without stack protection and should not depend on libssp_nonshared.a symbols. Discussed with: kib PR: bin/139052
* Bump the version of all non-symbol-versioned shared libraries inkensmith2009-07-195-5/+5
| | | | | | | | preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version. Reviewed by: kib Approved by: re (rwatson)
* Second attempt at eliminating .text relocations in shared librarieskan2009-07-142-1/+7
| | | | | | | | | | | | | | compiled with stack protector. Use libssp_nonshared library to pull __stack_chk_fail_local symbol into each library that needs it instead of pulling it from libc. GCC generates local calls to this function which result in absolute relocations put into position-independent code segment, making dynamic loader do extra work every time given shared library is being relocated and making affected text pages non-shareable. Reviewed by: kib Approved by: re (kib)
* Back out previous revision until better tested fix is ready.kan2009-06-292-8/+2
| | | | Approved by: re (impliciti, by approving previos check-in)
* Eliminate .text relocations in shared libraries compiled with stack protector.kan2009-06-282-2/+8
| | | | | | | | | | | | Use libssp_nonshared library to pull __stack_chk_fail_local symbol into each library that needs it instead of pulling it from libc. GCC generates local calls to this function which result in absolute relocations put into position-independent code segment, making dynamic loader do extra work everys time given shared library is being relocated and making affected text pages non-shareable. Reviewed by: kib Approved by: re (kensmith)
* Compile static gcov library with -fPIC to match what stock GCC buildskan2009-06-211-4/+12
| | | | | | are doing. This is required for libgcov.a to be usable on amd64. Reported by: stas
* Restore the install location of libssp.so.0.ru2009-02-241-1/+2
| | | | Noticed by: tegge
* Fix build when WITH_SSP is set explicitly.ru2009-02-212-2/+6
| | | | Submitted by: Jeremie Le Hen
* Honor WITHOUT_INSTALLLIB in some places.jkim2009-02-131-0/+2
|
* There's no need to redundantly redefine atomicity.h.imp2008-12-311-1/+0
|
* Revert previous commit. The prototype has been moved to unistd.hmarcel2008-09-281-1/+1
|
* Add -D_OSRELDATE_H to CFLAGS to prevent the declaration ofmarcel2008-09-261-1/+1
| | | | | | | | getosreldate() in assembler source files. We still get the definition of __FreeBSD_version this way, because it's outside the standard multiple-inclusion protection trick. All this is specific to ia64.
* MFP4: Add mips to the list of soft-float platforms.imp2008-09-191-2/+2
|
* mfp4: sort the architectures alphabetically...imp2008-09-191-1/+1
|
* Prefer the patch in p4 to the patch in svn as it properly sorts theimp2008-09-191-1/+1
| | | | architectures alphabetically.
* Add FreeBSD/MIPS support to GCC.obrien2008-09-013-3/+3
|
* Enable GCC stack protection (aka Propolice) for userland:ru2008-06-253-5/+3
| | | | | | | | | | | | | | | | | | | | | - It is opt-out for now so as to give it maximum testing, but it may be turned opt-in for stable branches depending on the consensus. You can turn it off with WITHOUT_SSP. - WITHOUT_SSP was previously used to disable the build of GNU libssp. It is harmless to steal the knob as SSP symbols have been provided by libc for a long time, GNU libssp should not have been much used. - SSP is disabled in a few corners such as system bootstrap programs (sys/boot), process bootstrap code (rtld, csu) and SSP symbols themselves. - It should be safe to use -fstack-protector-all to build world, however libc will be automatically downgraded to -fstack-protector because it breaks rtld otherwise. - This option is unavailable on ia64. Enable GCC stack protection (aka Propolice) for kernel: - It is opt-out for now so as to give it maximum testing. - Do not compile your kernel with -fstack-protector-all, it won't work. Submitted by: Jeremie Le Hen <jeremie@le-hen.org>
* Install extra include files that were forgotten in original GCC 4.2.xkan2008-06-161-1/+15
| | | | | | | | import changes. PR: 124647 Submitted by: Vlad GALU MFC after: 2 days
* Add MIPS to the list of "no TLS" architectures.gonzo2008-05-031-1/+1
| | | | Approved by: cognet (mentor)
* Let PowerPC world optionally build with -msoft-float. For FPU-less PowerPCraj2008-02-241-1/+1
| | | | | | | | | variations (e500 currently), this provides a gcc-level FPU emulation and is an alternative approach to the recently introduced kernel-level emulation (FPU_EMU). Approved by: cognet (mentor) MFp4: e500
* Remove one more alpha leftover.ru2008-01-241-1/+1
|
* While checking over the libraries for 7.0-REL Kris found the followingkensmith2007-11-201-1/+1
| | | | | | | | | | | libraries had not had their versions bumped relative to 6.3-REL but had indeed been changed. We need to bump their version so they can be properly added to the compat6x port: libasn1.so.8 libgssapi.so.8 libhdb.so.8 libkadm5clnt.so.8 libkadm5srv.so.8 libkafs5.so.8 libkrb5.so.8 libobjc.so.2 MFC After: 1 day
* Back out last commit -- it breaks sparc64 build which hasru2007-10-131-2/+2
| | | | more than one .c file in SRCS.
* Minor tweak to finding BEG/END source.obrien2007-10-121-2/+2
|
* - After gcc 4.2 import, include/objc/objc-api.h requires objc-decls.h whichrafan2007-10-121-1/+1
| | | | | | | | | we did not install. Install objc-decls.h to fix. PR: 116943 Reported by: beech Submitted by: vanilla on -current, kan MFC after: 1 week
OpenPOWER on IntegriCloud