summaryrefslogtreecommitdiffstats
path: root/gnu
AgeCommit message (Collapse)AuthorFilesLines
2020-08-14Don't build double-double functions since long double is the same as doublekettenis1-12/+4
on OpenBSD. ok gkoehler@
2020-08-11Remove fixtfti.c from ppc-if to unbreak macppc build. I guess kettenis@patrick1-2/+1
was right that this isn't really needed. Now the list is the same as what we had for the previous compiler-rt version.
2020-08-11fix path for testing if a .S existsjsg1-2/+2
2020-08-10Un-hook and re-hook libcompiler_rt.patrick1-2/+2
ok kettenis@
2020-08-10Add build infrastructure for compiler-rt.patrick1-0/+320
ok kettenis@
2020-08-10Re-apply our patches to compiler-rt.patrick2-2/+24
ok kettenis@
2020-08-10Import compiler-rt 10.0.1 release.patrick1302-0/+244280
ok kettenis@
2020-08-09Tedu files that got removed in LLVM 10.0.1.patrick7-4978/+0
2020-08-09Update build infrastructure for LLVM 10.0.1.patrick12-21/+37
2020-08-09Merge LLVM 10.0.1.patrick1-0/+24
2020-08-09Import LLVM 10.0.1 including clang, lld and lldb.patrick2-2/+5
2020-08-09Import LLVM 10.0.1 including clang, lld and lldb.patrick11-26/+70
2020-08-09Import LLVM 10.0.1 including clang, lld and lldb.patrick34-284/+435
2020-08-09Import LLVM 10.0.1 including clang, lld and lldb.patrick116-473/+9809
2020-08-07default to -march=i586 on i386jsg1-1/+1
llvm 9 and later take more care not to inline cmpxchg8b/cx8 with -march=i486 instead calling __atomic_* functions. This in turn breaks the build of a large number of ports. To avoid having to add a lock or conditionally building individual ports with -march=i586 change the default so 64 bit atomics will always be available. ok patrick@ sthen@ deraadt@
2020-08-03Remove LLVM 8.0.1 files.patrick16693-5574423/+0
2020-08-03Update build infrastructure for LLVM 10.0.0.patrick201-809/+1908
ok hackroom@ tested by plenty
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.patrick5258-0/+899209
ok hackroom tested by plenty
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.patrick281-0/+91036
ok hackroom tested by plenty
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.patrick2435-0/+1550414
ok hackroom tested by plenty
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.patrick8149-0/+3055003
ok hackroom tested by plenty
2020-07-31Use consistent types in comparison to fix build with clang 10.visa2-2/+2
Instead of just checking if *namep is NULL, also check if the string pointed by *namep is empty. This is probably the original intent of the code. OK kettenis@ jsg@ deraadt@
2020-07-23change bfd amd64 ELF_MAXPAGESIZE from 1M to 4Kjsg2-2/+2
An amd64 clang 10 binary built with lld 10 would abort after calling execve(2) if it had been stripped. PT_LOAD segment aligment being changed by strip was the cause. Changing to 4K matches lld and results in a working binary after strip. Introducing ELF_MINPAGESIZE of 4K (which is ELF_MAXPAGESIZE if not defined by the arch) would have also worked but we don't support large pages in userland. ok kettenis@
2020-07-22Add a few missing elocations.kettenis2-0/+65
ok jasper@
2020-07-18int64_t and intmax_t are always (signed) long long on OpenBSD.kettenis1-0/+2
ok deraadt@
2020-07-11Set the default ABI for OpenBSD to ELFv2 in the clang frontend as well.kettenis1-0/+4
This makes sure the compiler defines the _CALL_ELF pre-processor symbol correctly. ok mortimer@
2020-07-10base tree had only two uses of the printf %n format string, in this file.deraadt1-2/+2
Appending "%n" to the format string to capture the output-length in bytes (into an uninitialized variable) is exactly the same as using the printf return value. Why did they do this so unnaturally? (normally we don't change gcc import code, but I'm doing a study of %n prevelance) ok millert
2020-07-04Don't build gdb on powerpc64.kettenis1-2/+2
2020-07-02We need the same header files on powerpc64 as we have on powerpc.kettenis1-2/+2
ok deraadt@
2020-07-01Re-enable silent mode in perl Configureafresh11-2/+2
Lost in the cleanup. Noticed by deraadt@
2020-06-28Make long double the same as double for now on powerpc64 like we do onkettenis1-0/+1
powerpc. This matched what FreeBSD does. ok patrick@
2020-06-27Remove some customizations from the perl buildafresh110-188/+94
This was originally done so that other things in-tree such as vi could link to libperl and to support non-shared vax. This brings us more in-line with upstream and makes things more understandable. It now links libperl.so to libm, which some software needs, and stops building and installing libperl.a. OK bluhm@
2020-06-18avoid -Wpointer-compare warning which broke build with clang 10jsg2-2/+2
2020-06-04Set max atomic size for PowerPC.gkoehler1-1/+4
32-bit PowerPC doesn't have instructions for lock-free atomic ops on 8-byte values, and needs libcalls like __atomic_fetch_add_8(). In code like "_Atomic long long a; a++;", clang doesn't emit a libcall. This was causing linker errors on symbols like __sync_fetch_and_add_8. Now that LLVM knows the max atomic size, its AtomicExpandPass changes these 8-byte ops into libcalls. ok mortimer@
2020-06-04Sync to perl 5.30.3afresh136-230/+623
All functional changes were committed already, this updates the version number, Module::Corelist, and documentation.
2020-06-01Fix various overflows and state corruption in perlafresh15-50/+124
Found by: ManhND of The Tarantula Team, VinCSS (a member of Vingroup), Hugo van der Sanden, Slaven Rezic, and Sergey Aleynikov Fixed by: John Lightsey, Hugo van der Sanden, and Karl Williamson Addresses: * CVE-2020-10543 * CVE-2020-10878 * CVE-2020-12723
2020-05-31Don't build the rs6000coff_vec and rs6000coff64_vec targets. Thesekettenis1-3/+3
generate fatal compiler warnings at least when cross-compiling and fixing the code isn't trivial. ok patrick@, drahn@
2020-05-30Switch Powerpc64 Big Endian to ELFv2 on OpenBSD, as least for now.drahn1-0/+2
This should simplify bringup and make it easier to support Big Endian and Little Endian with the same code. May be reconsidered if it causes too many problems with Ports. ok kettenis@
2020-05-30Powerpc64 should use same _mcount profiling as powerpc 32bit.drahn1-0/+1
ok kettenis@
2020-05-30Initial set of changes to build powerpc64 toolchain.drahn2-5/+5
Disable PIC/PIE for powerpc64 for now.
2020-05-29Adjust some PPC ELF code to return -1 instead of doing pointerpatrick1-1/+1
arithmetics on NULL, like we did in r1.21 on elflink.c, to stop clang from complaining when setting up a cross-toolchain. ok kettenis@
2020-05-25PowerPC: optimize away the frame pointer.gkoehler1-3/+4
clang defaulted to -fomit-frame-pointer when optimizing PowerPC code for Linux and NetBSD. Now do it for all systems, including OpenBSD. This affects both 32-bit and powerpc64 code. ok kettenis@
2020-05-23Use a distinct trap code with retguard on mips64.visa1-2/+3
This lets the kernel detect retguard traps and send SIGABRT instead of SIGEMT. SIGEMT does not indicate correctly the nature of the error (stack overflow, violation of control flow). It can confuse the user to restart the program without further investigation. Prompted by and OK deraadt@ OK mortimer@
2020-05-20Make sure that we add our OpenBSD specific defines on PowerPC64 targets.patrick1-0/+4
Prompted and tested by drahn@ ok deraadt@ drahn@ kettenis@ visa@
2020-05-02Don't make an illegal adde. Avoids fatal error on PowerPC.gkoehler1-1/+3
When the DAG truncates an ISD::ADDE node, DAGCombiner may optimize it by making an adde with smaller operands. PowerPC has i1 registers, and may truncate an i32 adde to i1, but an i1 adde is not legal for PowerPC, and the legalize-ops phase can't fix it. This was causing "fatal error: error in backend: Cannot select..." cwen@ reported the error ok mortimer@ kettenis@ deraadt@
2020-04-25Note extra Term-ReadKey build dependency on Cwdafresh11-0/+1
Avoids using the installed Cwd module while building perl
2020-04-09Make sure that we really don't emut quad-precision unless thekettenis3-16/+43
"hard-quad-float" feature is available. Add missing replacement instruction patterns that are needed to emit alternative code for conditional moves of quad-precision floats. ok mortimer@
2020-04-09Make sure that we generate a PLT when a plabel is required even forkettenis1-1/+7
symbols that were hidden. Fixes building Mesa on hppa. ok deraadt@
2020-04-09Update perl manpage listafresh11-1/+3
Missed somehow in perl update
2020-04-09Update perl to 5.30.2afresh1101-484/+1536
https://metacpan.org/pod/release/SHAY/perl-5.30.2/pod/perldelta.pod Incompatible Changes There are no changes intentionally incompatible with 5.30.0. Updated Modules and Pragmata * Compress::Raw::Bzip2 has been upgraded from version 2.084 to 2.089. * Module::CoreList has been upgraded from version 5.20191110 to 5.20200314. Selected Bug Fixes * printf() or sprintf() with the %n format no longer cause a panic on debugging builds, or report an incorrectly cached length value when producing SVfUTF8 flagged strings. * A memory leak in regular expression patterns has been fixed. * A read beyond buffer in grok_infnan has been fixed. * An assertion failure in the regular expression engine has been fixed. * (?{...}) eval groups in regular expressions no longer unintentionally trigger "EVAL without pos change exceeded limit in regex". Proceed when you feel comfortable. deraadt@