summaryrefslogtreecommitdiff
path: root/external/gpl3
AgeCommit message (Collapse)Author
2023-07-07PR port-alpha/57511 Temporally disable secure PLT for alpharin
until support is added to ld.elf_so(1).
2023-06-03adapt to ${CC_WNO_MAYBE_UNINITIALIZED}lukem
Use ${CC_WNO_MAYBE_UNINITIALIZED} instead of the older style more complex expressions. Remove workarounds if they were for a specific version of gcc < 10.
2023-06-03bsd.own.mk: rename GCC_NO_* to CC_WNO_*lukem
Rename compiler-warning-disable variables from GCC_NO_warning to CC_WNO_warning where warning is the full warning name as used by the compiler. GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2023-06-03bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBERlukem
Provide a single variable CC_WNO_ADDRESS_OF_PACKED_MEMBER with options for both clang and gcc, to replace CLANG_NO_ADDR_OF_PACKED_MEMBER CC_NO_ADDR_OF_PACKED_MEMBER GCC_NO_ADDR_OF_PACKED_MEMBER Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2023-05-24revert previous: autoconf doesn't use EREslukem
autoconf relies upon GNU m4 emacs-style regexs, which don't support intervals so don't escape these. A fix to usr.bin/m4 -g (GNU m4 emulation) is incoming.
2023-05-24quote { to make regcomp happychristos
2023-05-23autoconf: AC_FUNC_ALLOCA(): add local fix for BSD supportlukem
Add local fix to AC_FUNC_ALLOCA() to include <stdlib.h> on BSD: # elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) # include <stdlib.h> This change avoids regen losing this change in tools/compat/configure that was added in rev 1.75 on 2013-03-05 of tools/compat/configure, and subsequent commits that keep re-adding these lines back manually (e.g., rev 1.97 on 2019-06-22 of tools/compat/configure) XXX: Arguably this could be fixed in a separate way to allow us to use an unmodified modern autoconf in the future ?
2023-05-19gcc: fix build with clang++ HOST_CXXlukem
Define HOSTPROG_CXX before .include anything that brings in bsd.own.mk. This ensures that HOST_DBG (etc) gets assigned before HOST_CFLAGS and HOST_CXXFLAGS is created. backend: .include <bsd.init.mk> much earlier, as per the other directories. Fixes backend build when using clang++ as the host compiler (e.g., macOS), because backend host tools are now built with -O. Inspired by https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255760 Note that gcc.old/Makefile.prog may be mis-used because it defines HOSTPROG_CXX and this Makefile fragment is included after bsd.*.mk in other Makefiles, but they seem to build ok so leaving it alone for now. Fixes PR toolchain/57014
2023-05-19Fix passing -j NNN to gmakelukem
Use a more restrictive pattern to extract -j NNN from MAKEFLAGS into GMAKE_J_ARGS, to avoid false positives when the source directory has "-j" in the path (e.g "amd64-job-000012" or "src-j9999"). Previously this could pass either -"-j" or "-j BIGNUM" to gmake and result in "vfork: Resource temporarily unavailable" failures. PR misc/54456
2023-05-08RISC-V mknative and build support for gdb.oldskrll
2023-05-08RISC-V mknative and build support.skrll
2023-05-08Missed a file in the RISC-V support commitskrll
2023-05-07RISC-V support that works on QEMU with a single hart.skrll
Thanks for Simon Burge for plic(4).
2023-04-27Unbreak creation of i386 PIEs on amd64.hgutch
Functional patch by RVP; set lists updated accordingly. This fixes PR toolchain/57380.
2023-04-06Fix StaticSpinMutex::CheckLocked() on sparc32.hannken
The lock gets set with atomic_exchange() -> __sync_lock_test_and_set() which sets the value to 255 instead of 1. Check for a taken lock with "!= 0" instead of "== 1". This should work on all architectures. Ok: Matthew Green
2023-04-05Fix StaticSpinMutex::CheckLocked() on sparc32.hannken
The lock gets set with atomic_exchange() -> __sync_lock_test_and_set() which sets the value to 255 instead of 1. Check for a taken lock with "!= 0" instead of "== 1". This should work on all architectures. Ok: Matthew Green
2023-03-21Merge betweenchristos
src-external-gpl3-gdb-20200913-1743: 1.1.1.1 and src-external-gpl3-gdb-20230321-1235: 1.1.1.1
2023-03-21import latest gdb from our tree into gdb.oldchristos
2023-02-27Disable completely mips ifunc test to make cross-compilation on other OSs work.christos
(Jan-Benedict Glaw)
2023-02-20merge GCC 10.4 son more.mrg
2023-02-20merge GCC 10.4 into gcc.old.mrg
2023-02-20initial import of GCC 10 sources into "gcc.old".mrg
2023-02-20add author info to this file.mrg
2023-02-10apply -g1 to the gdb build as well.mrg
reduces the size of gdb.debug and gdbtui.debug by 100MB each on amd64, and about 70MB total in the debug set. (across all builds, this may be in the order of 3-4GB in releasedir output.)
2023-02-08delete dup targets (pointed by mrg@)christos
2023-02-07fix and regen mips64christos
2023-02-07regen arm32christos
2023-02-01for MKDEBUG builds, set CXXFLAGS += -g1 for all GCC binaries.mrg
reduces the size of a non-x11 i386 build by 38% - 992MiB -> 612MiB, and likely similar reductions elsewhere. it also reduced the build time by about 3%, perhaps from less IO to write and less data to compress. for amd64, the size was reduced 1137MiB -> 741MiB, about 35%, though i don't have timing guesses here. note that these are sizes of .gz not .xz (i enable pigz for my builds), and this probably has a much greater benefit for xz builds as the sets creation phase is much slower there.
2023-01-29Apply ↵christos
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=4d74aab7aa562fe79d4669cdad0c32610531cbc0#patch1 to fix the vax issue (thanks @tsutsu for finding the patch)
2023-01-28revert previous, seems to lose data.christos
2023-01-27When trying to scrub characters in a macro to convert:christos
# 123 "foo.c" 1 -> .linefile 123"foo.c"1 check if there is space first. Otherwise give up. On the vax it was trying to scrub: # 2672 "foo.c" 1 emul %r2,%r0,$0,%r4 # 0 "" 2 and ended up with an incomplete string: .linefile 2672"foo.c"1 emul %r2,%r0,$0,%r4 . And then when the assembler tried to parse the next line after the emul barfed with unknown pseudo-op .
2023-01-25disable no ifuncs no mips error for now.christos
2023-01-18turn off executable-stack default when the gnu stack note is missing.christos
2023-01-16put back or1kchristos
2023-01-16regen most architectureschristos
2023-01-16Remove the trailing whitespace I added. oops.skrll
2023-01-16Restore netbsd riscv targetsskrll
2023-01-16fix compilation issues.christos
2023-01-15put back all our mips stuff.christos
2023-01-15disable -Wstack-check since vax does not have it.christos
2023-01-15regen riskv and hppa for Nickchristos
2023-01-14regen sparcchristos
2023-01-13regen aarch64ebchristos
2023-01-13regen alphachristos
2023-01-13regen a bit more... (aarch64, sparc64)christos
2023-01-09Add the .xsce scriptschristos
2023-01-06we don't copy ldscripts for i386 (why though?)christos
2023-01-06Turn on -z separate-code for x86, like linux has done. This splits the textchristos
and data segment load sections into two pieces, for at total of 4 PT_LOAD sections: two for text (r--, r-x) and two for data (r--, rw-). For x86_64 this changes the default max page size from 2M to 4K.
2023-01-03One more fix to build binutils with read-only source trees:hannken
don't try to rebuild .../dist/binutils/doc/c++filt.1 Ok: Matthew Green
2023-01-02Fix typo "zecho" -> "echo".hannken