summaryrefslogtreecommitdiff
path: root/gnu
AgeCommit message (Collapse)Author
2022-07-27Force disabling the use of delay slots. This is ugly but gets the compilerMiod Vallat
to produce 99+% correct code at all optimization levels, and can help people who would like to tinker a bit with the backend. (note m88k ports still use gcc 3 at the moment)
2022-07-26For make obj, always the lldb* and llvm-ar directoriesJeremie Courreges-Anglas
Apparently favored by deraadt@, pointed out by patrick@, ok patrick@
2022-07-26Only build lldb support libraries on archs where lldb is installedJeremie Courreges-Anglas
Shaves off a significant amount of time (eg on riscv64) in base builds. If you want to build gnu/usr.bin/clang from source you'll need bsd.own.mk rev 1.213 installed. ok miod@ patrick@
2022-07-13Revert BUILD_LLDB use, don't push manual repair on all people building from ↵Jeremie Courreges-Anglas
source Pointed out by sthen@ While make build indeed takes care of running make install in share/mk, running make obj first would error out when encountering the unknown BUILD_LLDB variable. I can wait a few days before committing this again.
2022-07-12Enter the lldb and lldb-server directories for make obj, even if not builtJeremie Courreges-Anglas
Apparently favored by deraadt@, pointed out by patrick@, ok patrick@
2022-07-12Only build lldb support libraries on archs where lldb is installedJeremie Courreges-Anglas
Shaves off a significant amount of time (eg on riscv64) in base builds. Note that you'll need bsd.own.mk rev 1.213 (which make build should take care of). ok miod@ patrick@
2022-07-11add llvm-profdata(1) to base so that ports can benefit from profiled buildsRobert Nagy
ok fcambus@, sthen@
2022-07-11remove the "tbl" suffix for a few man pagesDaniel Dickman
Over a decade ago, the build infrastructure had special logic to process man pages that ended with the suffix "tbl". This infrastructure is long gone and the special naming for these man pages is no longer needed. Revert the naming of these man pages for consistency with all other man pages in the tree. As a bonus, we remove a few lines from some of the Makefiles making them simpler. ok jmc@, and no objection from schwarze@
2022-07-09Build and install llvm-readobj, also install it as llvm-readelfJeremie Courreges-Anglas
Useful on architectures not actually supported by our ancient binutils (arm64, powerpc64, riscv64), or on architectures incompletely supported (eg recent features on amd64). ok kettenis@ sthen@
2022-06-28spellingJonathan Gray
2022-06-28Entensions -> ExtensionsJonathan Gray
2022-05-12Drop old powerpc flags from the build of clangGeorge Koehler
Drop NOPIE_FLAGS = -fPIE and change CFLAGS on powerpc to be the same as on other arches. ok deraadt@ kettenis@
2022-04-21Our malloc(3) guarantees 16-byte alignment.Mark Kettenis
ok sthen@, tb@
2022-04-12Improve test and clean targetsAndrew Fresh
They failed if there was nothing to clean. The test target now depends on the all target so we have something to run tests against. They still don't like to pass in-tree, but that is a separate issue. Noticed by deraadt@, suggestions and improvements from geunther@ and bluhm@
2022-03-27Fix memory corruption bug in zlibAlexander Bluhm
zlib has a crashing bug. The bug fix has been sitting in the unreleased develop branch for nearly four years. Pull in this fix and a small followup. same fix as in base lib/libz
2022-03-27Revert previous. Use private copy of zlib in Compress::Raw::ZlibAlexander Bluhm
again. The header zlib.h in our base uses z_off_t for fields total_in and total_out in struct z_stream_s. The rest of the world uses uLong there. This leads to an incompatibility when comiled with Perl. The pkg tools fail on i386. debugged by semarie@; discussed with tb@
2022-03-25Build Perl module Compress::Raw::Zlib with zlib from /usr/lib/libz.soAlexander Bluhm
instead of the sources that are packaged with Perl. This allows us to apply security fixes for userland base in one place. Zlib.so is used with dlopen(3) and gets a new library dependency to libz. Before zlib objects from zlib-src were linked statically. OK tb@
2010-09-24Perl 5.12.2 from CPANTodd C. Miller
2022-03-23Do not forget to install ar.1; ok robertTheo de Raadt
2022-03-23use llvm-ranlib where llvm-ar is used so that they are in line with eachRobert Nagy
other
2022-03-10Downgrade RISCV ABI mismatch error to a warningJeremie Courreges-Anglas
This lets lld link code with object files created with ld -b binary, as used by several ports (mupdf, postgresql-pllua, various games). Upstream report with an unfinished diff: https://reviews.llvm.org/D106378 ok kettenis@
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2022-03-09Arm is not ready for unwinding yet. Disable unwind info generation for now.Todd Mortimer
ok deraadt@
2022-03-04Put back local patch to avoid regenerating testsAndrew Fresh
This was r1.2 and accidentally lost in the update to Devel::PPPort 3.64.
2022-03-04Report versioned lib.so in cc --print-file-name given short nameGreg Steuck
E.g. `cc --print-file-name libc.so` reports /usr/lib/libc.so.96.1 This is a complement of the major.minor finding logic in DriverUtils. `ld -lc -L/usr/lib` currently find the libraries with this logic. To make things more obviously related the code was extracted into a function which was copied over verbatim. fine with mortimer@ ok patrick@
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2022-02-27Enable unwind tables on all clang architectures.Todd Mortimer
Fixes backtraces on i386 (tested by bluhm) and armv7. OK bluhm@
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2022-02-27Enable libedit line editingJeremie Courreges-Anglas
Sync our hardcoded config with what cmake detects in ports/devel/llvm. Brought up privately by cheloha@, then by Andrei on tech@, input and ok gnezdo@
2022-02-17binutils-2.17 does not have ld or gas available for the aarch64, powerpc64, orPeter Hessler
riscv64 family of platforms, so we don't try to build there. However we mis-nested the arch check, causing some unintended side effects, most notably installing binutils-2.17's ar(1) which overwrote the intended llvm-ar(1). Fix the if nesting so it only applies where intended. tested on aarch64 by me, powerpc64 by gkoehler@, and riscv64 by jca@ OK miod@ robert@ gkoehler@ jca@
2022-02-17remove some dead/squatted linksJonathan Gray
2022-02-17Regenerate ppport.h of Term::ReadKey using Devel::PPPort 3.64 toAlexander Bluhm
avoid -Wno-compound-token-split-by-macro warnings from clang 13. OK afresh1@
2022-02-16Plug ubsan_minimal into gnu/lib/libclang_rt buildGreg Steuck
ok jca@
2022-02-16Add ifdefs to build ubsan_minimal on OpenBSDGreg Steuck
ok jca@
2020-08-10Import compiler-rt 10.0.1 release.Patrick Wildt
ok kettenis@
2022-02-10Update Devel::PPPort in base from version 3.57 to 3.64. Our clangAlexander Bluhm
13.0.0 produces thousands of -Wcompound-token-split-by-macro warnings wir older ppport.h header files. They are especially frequent in the ports tree. After this update we can use perl -MDevel::PPPort -e'Devel::PPPort::WriteFile' to regenerate the ppport.h files. Then we have a version that is recent enough to build all ports and does not spit out tons of warnings. discussed with espie@ sthen@; OK afresh1@
2019-12-30Import perl-5.30.1Andrew Fresh
Timing is good deraadt@, OK sthen@
2019-02-13Import perl-5.28.1Andrew Fresh
looking good sthen@, Great! bluhm@
2022-01-13add a dummy -t flag to llvm-ranlib to match binutils' ranlib's -t flag whichRobert Nagy
is a no-op; ok millert@
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2021-12-28lld: restore upstream default for --[no-]allow-shlib-undefinedChristian Weisgerber
ok patrick@ kettenis@
2021-12-28lld: do not report undefined weak references in shared librariesChristian Weisgerber
https://github.com/llvm/llvm-project/commit/52bfd2c1ccd86ff813ee6df5a6700690acdd912f This fixes an issue introduced in D101996. A weak reference in a shared library could be incorrectly reported if there is another library that has a strong reference to the same symbol. Differential Revision: https://reviews.llvm.org/D115041 ok patrick@ kettenis@
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2021-12-28Compile out-of-line helpers for atomic operations which can be enabledPatrick Wildt
through -moutline-atomics. These are included by default in this updated version of compiler-rt, we just haven't enabled them yet. Some ports start to make use of that option, so it makes sense to provide these helpers. The helpers would make use of the ARMv8.1 LSE instructions, if we flagged that the running system supports those. As we do not yet have a mechanism to show support for LSE, the code will always fall back to regular atomics. Issue raised by jca@ Tested by phessler@ Input from jsg@ ok kettenis@
2021-12-25Sync DF_1_* flag definitions with llvm 13, including support inPhilip Guenther
readelf -d for displaying them. (lld 13 sets DF_1_PIE on most our binaries) ok jsg@
2021-12-22Avoid GNU printf extension to use 'L' length modifier with a intJonathan Gray
conversion specifier to mean 'll'. Found by an ok deraadt@
2021-12-17Avoid errors about clang13-only options here, to ease transitionJeremie Courreges-Anglas
As pointed out by deraadt@ we can do better than ask people to follow instructions. Note that you still need an up-to-date clang if you update your kernel Makefiles, as those use clang13-only options. Also -Werror doesn't bring much in binutils context. It's an outdated codebase with lots of warts, which frequently breaks due to -Werror during clang updates. "This is the right fix" deraadt@
2021-12-17Disable a few warning flags that were introduced and enabled by defaultPatrick Wildt
with LLVM 13.
2021-12-17Update build infrastructure for LLVM 13.0.0.Patrick Wildt
2021-12-17Merge LLVM 13.0.0.Patrick Wildt