summaryrefslogtreecommitdiff
path: root/lib/clang
Commit message (Collapse)AuthorAgeFilesLines
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2020-10-122-5/+5
| | | | | | | | | | release/11.x llvmorg-11.0.0-0-g176249bd673 (aka 11.0.0 release). MFC after: 4 weeks X-MFC-With: r364284 Notes: svn path=/head/; revision=366655
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2020-10-012-5/+5
| | | | | | | | | | release/11.x llvmorg-11.0.0-rc5-0-g60a25202a7d. MFC after: 4 weeks X-MFC-With: r364284 Notes: svn path=/head/; revision=366339
* build: provide a default WARNS for all in-tree buildsKyle Evans2020-09-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | The current default is provided in various Makefile.inc in some top-level directories and covers a good portion of the tree, but doesn't cover parts of the build a little deeper (e.g. libcasper). Provide a default in src.sys.mk and set WARNS to it in bsd.sys.mk if that variable is defined. This lets us relatively cleanly provide a default WARNS no matter where you're building in the src tree without breaking things outside of the tree. Crunchgen has been updated as a bootstrap tool to work on this change because it needs r365605 at a minimum to succeed. The cleanup necessary to successfully walk over this change on WITHOUT_CLEAN builds has been added. There is a supplemental project to this to list all of the warnings that are encountered when the environment has WARNS=6 NO_WERROR=yes: https://warns.kevans.dev -- this project will hopefully eventually go away in favor of CI doing a much better job than it. Reviewed by: emaste, brooks, ngie (all earlier version) Reviewed by: emaste, arichardson (depend-cleanup.sh change) Differential Revision: https://reviews.freebsd.org/D26455 Notes: svn path=/head/; revision=365887
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2020-09-162-5/+5
| | | | | | | | | | release/11.x llvmorg-11.0.0-rc2-91-g6e042866c30. MFC after: 6 weeks X-MFC-With: r364284 Notes: svn path=/head/; revision=365807
* Add a few more files to libllvm, which are required when doing sanitizedDimitry Andric2020-09-031-0/+3
| | | | | | | | | | builds, for example with -fsanitize=undefined. MFC after: 6 weeks X-MFC-With: r364284 Notes: svn path=/head/; revision=365306
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2020-08-242-5/+5
| | | | | | | | | | release/11.x llvmorg-11.0.0-rc2-0-g414f32a9e86. MFC after: 6 weeks X-MFC-With: r364284 Notes: svn path=/head/; revision=364718
* Add a missed source file for LLVM's BPF target. This target is notDimitry Andric2020-08-221-0/+1
| | | | | | | | | | | enabled by default, so I forgot about it, apologies for the breakage. Reported by: hrs MFC after: 6 weeks X-MFC-With: r364284 Notes: svn path=/head/; revision=364485
* Fix the mips64 world build after r364284.Dimitry Andric2020-08-191-0/+5
| | | | | | | | | | | | | | | Linking the full version of clang 11 results in errors similar to: lld: error: /usr/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:736:(.text._ZN5clang4ento22CreateAnalysisConsumerERNS_16CompilerInstanceE+0xE0): relocation R_MIPS_CALL16 out of range: 48920 is not in [-32768, 32767]; references operator new(unsigned long) Add -mxgot to the compilation flags for llvm libraries to work around this error. This may be too big of a hammer, but it can always be refined later. MFC after: 6 weeks Notes: svn path=/head/; revision=364400
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2020-08-152-5/+5
| | | | | | | release/11.x llvmorg-11.0.0-rc1-47-gff47911ddfc. Notes: svn path=/projects/clang1100-import/; revision=364253
* Re-add generated arm_neon.h header, which was accidentally dropped whileDimitry Andric2020-08-071-1/+2
| | | | | | | refactoring lib/clang/headers/Makefile in r363984. Notes: svn path=/projects/clang1100-import/; revision=364034
* Put clang/lib/Tooling/Core/Replacement.cpp under SRCS_MIN, since it isDimitry Andric2020-08-061-1/+1
| | | | | | | | | required by both the static analyzer (MK_CLANG_FULL) and clang-format (MK_CLANG_FORMAT). We could also invent yet another SRCS variant, but that seems a bit overkill. Notes: svn path=/projects/clang1100-import/; revision=363994
* Update Makefiles under lib/clang and usr.bin/clang for 11.0.0 builds,Dimitry Andric2020-08-065-80/+239
| | | | | | | and also bump the version in the mtree files. Notes: svn path=/projects/clang1100-import/; revision=363984
* Regenerate lib/clang/liblldb/LLDBWrapLua.cpp with swig 4.0.2.Dimitry Andric2020-08-061-799/+1648
| | | | Notes: svn path=/projects/clang1100-import/; revision=363983
* Update generated llvm-project related version headers, config.h filesDimitry Andric2020-08-069-30/+109
| | | | | | | and add a newly generated lldb Plugins.def file too. Notes: svn path=/projects/clang1100-import/; revision=363982
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2020-07-212-5/+5
| | | | | | | | | | | | | 10.0.1 final (aka llvmorg-10.0.1-0-gef32c611aa2). There were no changes since rc2, except in the upstream regression tests, which we do not ship. Relnotes: yes MFC after: immediately (no material changes except tag) Notes: svn path=/head/; revision=363401
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2020-06-282-5/+5
| | | | | | | | | | | | | | | | llvmorg-10.0.1-rc2-0-g77d76b71d7d. Also add a few more llvm utilities under WITH_CLANG_EXTRAS: * llvm-dwp, a utility for merging DWARF 5 Split DWARF .dwo files into .dwp (DWARF package files) * llvm-size, a size(1) replacement * llvm-strings, a strings(1) replacement MFC after: 3 weeks Notes: svn path=/head/; revision=362719
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2020-06-253-6/+11
| | | | | | | | | llvmorg-10.0.0-129-gd24d5c8e308. Getting closer to 10.0.1-rc2. MFC after: 3 weeks Notes: svn path=/head/; revision=362609
* Add WITH_CLANG_FORMAT optionConrad Meyer2020-06-241-2/+2
| | | | | | | | | | | | | | | clang-format is enabled conditional on either WITH_CLANG_EXTRAS or WITH_CLANG_FORMAT. Some sources in libclang are build conditional on either rule, and obviously the clang-format binary itself depends on the rule. clang-format could still use a manual page. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D25427 Notes: svn path=/head/; revision=362587
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2020-06-202-5/+5
| | | | | | | | | | llvmorg-10.0.0-97-g6f71678ecd2 (not quite 10.0.1 rc2, as more fixes are still pending). MFC after: 3 weeks Notes: svn path=/head/; revision=362445
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2020-05-238-16/+22
| | | | | | | | | llvmorg-10.0.1-rc1-0-gf79cd71e145 (aka 10.0.1 rc1). MFC after: 3 weeks Notes: svn path=/head/; revision=361410
* llvm: add a build knob for enabling assertionsKyle Evans2020-04-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | For head/, this will remain eternally default-on to maintain the status quo. For stable/ branches, it should be flipped to default-off to maintain the status quo. There's value in being able to flip it one way or the other easily on head or stable branches, whether you want to gain some performance back on head/ (for machines there's little chance you'll actually hit an assertion) or potentially diagnose a problem with the version of llvm on an older branch. Currently, stable branches get the CFLAGS+= -ndebug line uncommented; going forward, they will instead have the default of LLVM_ASSERTIONS flipped. Reviewed by: dim, emaste, re (gjb) MFC after: 1 week MFC note: flip the default of LLVM_ASSERTIONS Differential Revision: https://reviews.freebsd.org/D24264 Notes: svn path=/head/; revision=359644
* lldb: build and enable lua script bindingsEd Maste2020-04-032-1/+6
| | | | | | | | Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24266 Notes: svn path=/head/; revision=359606
* lldb: commit generated LLDBWrapLua.cppEd Maste2020-04-031-0/+71334
| | | | Notes: svn path=/head/; revision=359600
* lldb: add rule to generate LLDBWrapLua.cppEd Maste2020-04-031-0/+13
| | | | | | | | | | | | | | | | | Building lldb's lua/python bindings requires swig, but we do not want to include it in the FreeBSD base system (as a build tool) because it has non-trivial dependencies. As a workaround, add a make rule to generate LLDBWrapLua.cpp, and we will commit the generated file. Requires the swig30 package. Reviewed by: brooks Discussed with: dim Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24265 Notes: svn path=/head/; revision=359599
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2020-03-262-5/+5
| | | | | | | | | | | llvmorg-10.0.0-0-gd32170dbd5b (aka 10.0.0 release). PR: 244251 MFC after: 6 weeks X-MFC-With: 358851 Notes: svn path=/head/; revision=359338
* Remove sparc support from clang build infrastructure. Any remaining sparc filesWarner Losh2020-03-202-49/+5
| | | | | | | | | will be mopped up in future imports. Differential Revision: https://reviews.freebsd.org/D24128 Notes: svn path=/head/; revision=359163
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2020-03-182-5/+5
| | | | | | | | | | | llvmorg-10.0.0-rc4-5-g52c365aa9ca. The actual release should follow Real Soon Now. PR: 244251 MFC after: 6 weeks Notes: svn path=/head/; revision=359082
* Move another file in libllvm from sources required for world, to sourcesDimitry Andric2020-03-101-1/+1
| | | | | | | | | | | | required for bootstrap, as the PowerPC builds need this. Reported by: bdragon PR: 244251 MFC after: 6 weeks X-MFC-With: 358851 Notes: svn path=/head/; revision=358857
* Add one additional file to libllvmminimal, to help the ppc64 bootstrap.Dimitry Andric2020-03-101-0/+1
| | | | | | | | | | Reported by: bdragon PR: 244251 MFC after: 6 weeks X-MFC-With: 358851 Notes: svn path=/head/; revision=358854
* Remove -mlong-calls vhen building arm libraries and llvm.Dimitry Andric2020-03-101-5/+0
| | | | | | | | | | | | Clang from 9.0.0 onwards already has the necessary relocation range extenders, so this workaround is no longer needed (it produces longer and slower code). Tested on real hardware, and in cross-compile environment. Submitted by: mmel Notes: svn path=/projects/clang1000-import/; revision=358831
* Merge ^/vendor/llvm-project/release-10.x up to its last change (upstreamDimitry Andric2020-03-052-5/+5
| | | | | | | commit llvmorg-10.0.0-rc3-1-gc290cb61fdc), and bump versions. Notes: svn path=/projects/clang1000-import/; revision=358682
* Merge ^/vendor/llvm-project/release-10.x up to its last change (upstreamDimitry Andric2020-02-272-5/+5
| | | | | | | commit llvmorg-10.0.0-rc2-70-ge5cb70267e7), and bump versions. Notes: svn path=/projects/clang1000-import/; revision=358399
* Instead of using just the long upstream commit hash for LLVM componentDimitry Andric2020-02-242-5/+5
| | | | | | | | | versions, use "git describe --tags --long" output, which is more descriptive. E.g., "90c78073f73eac58f4f8b4772a896dc8aac023bc" becomes "llvmorg-10.0.0-rc2-0-g90c78073f73". Notes: svn path=/projects/clang1000-import/; revision=358298
* Work around riscv buildworld failure where it cannot link the finalDimitry Andric2020-02-171-0/+1
| | | | | | | | | | | | clang binary, with: ld: error: undefined symbol: llvm::EnableABIBreakingChecks >>> referenced by PlistDiagnostics.cpp >>> PlistDiagnostics.o:(.sdata+0x0) in archive /usr/obj/usr/src/riscv.riscv64/lib/clang/libclang/libclang.a [... many more like this ...] Notes: svn path=/projects/clang1000-import/; revision=358033
* Merge ^/vendor/llvm-project/release-10.x up to its last change (upstreamDimitry Andric2020-02-153-5/+7
| | | | | | | | commit llvmorg-10.0.0-rc2-0-g90c78073f73), bump versions, and update build glue. Notes: svn path=/projects/clang1000-import/; revision=357964
* Update build glue for lldb (MK_LLDB=yes). Also update lldb's generatedDimitry Andric2020-01-273-20/+41
| | | | | | | | Config.h, disable a few more parts in the code we don't use, and add a pre-generated man page. Notes: svn path=/projects/clang1000-import/; revision=357174
* Update build glue for extra clang/llvm tools (MK_CLANG_EXTRAS=yes).Dimitry Andric2020-01-261-0/+15
| | | | Notes: svn path=/projects/clang1000-import/; revision=357158
* Update build glue for a world stage, e.g. when not only clang, but alsoDimitry Andric2020-01-261-0/+9
| | | | | | | llvm-ar, llvm-nm, llvm-objdump and llvm-symbolizer are built. Notes: svn path=/projects/clang1000-import/; revision=357153
* Update build glue for a full build (MK_CLANG_FULL=yes) of the clangDimitry Andric2020-01-261-0/+10
| | | | | | | executable. Notes: svn path=/projects/clang1000-import/; revision=357148
* Update build glue for a minimal build of the clang executable.Dimitry Andric2020-01-264-46/+159
| | | | Notes: svn path=/projects/clang1000-import/; revision=357127
* Adjust libllvmminimal and tblgen Makefiles so all the tblgen executablesDimitry Andric2020-01-252-2/+1
| | | | | | | build. Notes: svn path=/projects/clang1000-import/; revision=357122
* From 10.0.0 onwards, llvm requires C++14 to build.Dimitry Andric2020-01-251-1/+1
| | | | Notes: svn path=/projects/clang1000-import/; revision=357121
* * Bump version numbers to 10.0.0Dimitry Andric2020-01-2510-35/+81
| | | | | | | | | | | * Update UPDATING * Update (Optional)ObsoleteFiles.inc * Update VCS(Revision|Version) files * Update generated config headers * Update clang internal headers Makefile Notes: svn path=/projects/clang1000-import/; revision=357120
* [PowerPC] Fix libllvmminimal build when building from powerpc64 ELFv1.Brandon Bergren2020-01-071-0/+1
| | | | | | | | | | | | | | | | When bootstrapping on powerpc64 ELFv1, it is necessary to use binutils ld.bfd from ports for the bootstrap, as this is the only modern linker for ELFv1 host tools. As binutils ld.bfd is rather strict in its handling of undefined symbols, it is necessary to pull in Support/Atomic.cpp to avoid an undefined symbol. Reviewed by: dim, emaste Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D23072 Notes: svn path=/head/; revision=356479
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2019-12-229-21/+22
| | | | | | | | | | | | | | | | | | 9.0.1 final release c1a0a213378a458fbea1a5c77b315c7dce08fd05. Release notes for llvm, clang, lld and libc++ 9.0.1 will become available here: https://releases.llvm.org/9.0.1/docs/ReleaseNotes.html https://releases.llvm.org/9.0.1/tools/clang/docs/ReleaseNotes.html https://releases.llvm.org/9.0.1/tools/lld/docs/ReleaseNotes.html https://releases.llvm.org/9.0.1/projects/libcxx/docs/ReleaseNotes.html PR: 240629 MFC after: 1 month Notes: svn path=/head/; revision=356004
* Move all sources from the llvm project into contrib/llvm-project.Dimitry Andric2019-12-209-16/+14
| | | | | | | | | | | | | This uses the new layout of the upstream repository, which was recently migrated to GitHub, and converted into a "monorepo". That is, most of the earlier separate sub-projects with their own branches and tags were consolidated into one top-level directory, and are now branched and tagged together. Updating the vendor area to match this layout is next. Notes: svn path=/head/; revision=355940
* Add a few missed source files to libllvm, for the MK_LLVM_TARGET_BPF=yesDimitry Andric2019-12-101-0/+2
| | | | | | | | | | | | case. Otherwise, linking of clang and other llvm based executables would complain about missing symbols. Reported by: rstone MFC after: 1 month X-MFC-With: r353358 Notes: svn path=/head/; revision=355602
* Add explanatory comments for the different SRCS_xxx variables used inDimitry Andric2019-11-203-1/+17
| | | | | | | | | | the Makefiles for libllvm and libclang. While here, cleanup a commented out SRCS entry in libllvmminimal's Makefile. MFC after: 3 days Notes: svn path=/head/; revision=354908
* Sync target triple generation with the version in Makefile.inc1.John Baldwin2019-11-121-2/+2
| | | | | | | | | Reviewed by: dim Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D22333 Notes: svn path=/head/; revision=354662
* Fix build of LLVM RISC-V backendMitchell Horne2019-10-181-0/+1
| | | | | | | | | Reviewed by: dim MFC with: r353358 Differential Revision: https://reviews.freebsd.org/D21963 Notes: svn path=/head/; revision=353711