Skip to content

2025H1 Toolchain Upgrade Patch Review #941

@stephanosio

Description

@stephanosio

Tasks

Patches

Binutils

Patches from zephyr-binutils-2_38, to be applied to zephyr-binutils-2_43_1:

  • c1e7c14d15d crosstool-ng patches for binutils 2.38
    -> drop; already applied
  • e5502bc93c5 ARC64: One patch
    -> drop; we now have a separate binutils_arc branch
  • 6a1be1a6a57 arc64: Second patch
    -> drop; we now have a separate binutils_arc branch
  • 1cdd11427da microblaze: Invalid data offsets (pointer) after relaxation. Proposed patch from community member ([email protected]) against 2021.1 [CR-1115232]
    -> pick; still relevant for microblaze
  • f36cd8b8f9c gas: arm: Fix a further IT-predicated vcvt issue in the presense of MVE vcvtn
    -> drop; already applied upstream
  • 81f63d18c43 elf: Workaround for segment first section address check in phdr rewrite
    -> drop; replaced by zephyrproject-rtos/binutils-gdb@5f3358c

GDB

Patches from zephyr-gdb-12.1, to be applied to zephyr-gdb-16.2:

  • faf12366069 gdb/remote: make tid/pid type long in write_ptid
    -> pick; relevant Zephyr-specific patch
  • fed63aa573c gdb: Add fixes for stdint and remote debug on xtensa.
    -> pick; necessary for Xtensa
  • 6a889f76bd3 gdb: xtensa: don't error out when registers cannot be read
    -> pick; necessary for Xtensa
  • c4ed1437501 gdb: xtensa: use remote target register numer...
    -> pick; necessary for Xtensa
  • 8105136b283 gdb: arch to tell whether it supports 'g' packets
    -> pick; necessary for Xtensa
  • 57c75592ada gdb: xtensa: support disabling use of 'g' packet
    -> pick; necessary for Xtensa
  • 4a6deae6043 readline: Assume "unknown" terminal type by default
    -> pick; necessary for Windows
  • 7ec01da9ac9 ARC64: One patch
    -> drop; there is now separate gdb_arc branch
  • b31e8a8fa09 [arcv2/gdb] Make "arc*-" targets more restrict
    -> drop; there is now separate gdb_arc branch
  • ddefafb7cfe [arcXX/gdb] Introduce "NONE" into "arc_isa" enum
    -> drop; there is now separate gdb_arc branch
  • 2341c67bb41 [arc64/gdb] Add baremetal (with FPU) support
    -> drop; there is now separate gdb_arc branch
  • 3ec03ee5a21 [arc64/gdb] Add newlib tdep
    -> drop; there is now separate gdb_arc branch
  • e1e20046844 [arc64/gdb] Add linux programs debugging support
    -> drop; there is now separate gdb_arc branch
  • 13372c30b9d [arc64/gdb] Add linux gdbserver support
    -> drop; there is now separate gdb_arc branch
  • 6f395c54ea7 [arc32/gdb] Add baremetal support
    -> drop; there is now separate gdb_arc branch
  • b49f2962b5f [arc32/gdb] Add linux programs debugging support
    -> drop; there is now separate gdb_arc branch
  • db8bd068ede [arc32/gdb] Add linux gdbserver support
    -> drop; there is now separate gdb_arc branch
  • 66646cfeb07 microblaze: apply gdb patches from meta-xilinx repository
    -> pick; necessary for microblaze
  • a6a80212f75 gdbsupport: ignore -Wenum-constexpr-conversion in enum-flags.h
    -> drop; already applied upstream
  • 3b4f58a1d1a Set _WIN32_WINNT in common.m4 configure check
    -> drop; already applied upstream
  • 3742ec29bb4 Fix build issues with mingw toolchain
    -> drop; already applied upstream

GCC

Patches from zephyr-gcc-12.2.0, to be applied to zephyr-gcc-14.3.0:

  • 5d63b9aff23 crosstool-ng patches for GCC 12.2.0
    -> drop; already applied
  • 6bbae899b9d nios2: add multilib support
    -> drop; nios2 support was dropped
  • c3a198b3366 Add support to build for x86_64-zephyr-elf
    -> pick; necessary for x86-64
  • 41ab3183eda Enable soft-fp on i586
    -> pick; necessary for x86
  • 3f32238b7f9 Add LEON multilibs for sparc-zephyr-elf
    -> pick; necessary for SPARC
  • 662e235e33b x86_64-zephyr-elf: fix soft float for x86 32-bit
    -> pick; necessary for x86
  • 26b2e8e519f RISC-V: Add Zephyr multilib configuration
    -> drop; squashed into zephyrproject-rtos/gcc@4be2879
  • 38d71282734 RISC-V: Add base instruction set multilibs
    -> drop; squashed into zephyrproject-rtos/gcc@4be2879
  • 1da2f12ea14 RISC-V: Add bit manipulation extension multilibs
    -> drop; squashed into zephyrproject-rtos/gcc@4be2879
  • 6d11ef717a5 ARC: One patch
    -> drop; ARC patches go into gcc_arc branch
  • bd72e259f81 libstdc++: Do not check getentropy and arc4random for cross builds
    -> pick; still relevant
  • fce1dce8225 arc: Fix enter pattern instruction's offsets
    -> drop; ARC patches go into gcc_arc branch
  • 5eca6de518f RISC-V: Build RV64 multilib with mcmodel=medany
    -> drop; squashed into zephyrproject-rtos/gcc@4be2879
  • 72118c8f1c8 RISC-V: Use RV64 mcmodel=medany multilibs when mcmodel is not specified
    -> drop; squashed into zephyrproject-rtos/gcc@4be2879
  • 02edd276b9e Revert "AArch64: Cleanup aarch64_classify_symbol"
    -> pick; still relevant
  • ef4667748a8 arc: Add ARCHS release 310a tune variant.
    -> drop; ARC patches go into gcc_arc branch
  • 2e390c3ebbe riscv: support RV32IAFC
    -> drop; squashed into zephyrproject-rtos/gcc@4be2879
  • dbf71547e78 RISC-V: Add rv32if/ilp32f multilib variant
    -> drop; squashed into zephyrproject-rtos/gcc@4be2879
  • ebc0b981ec1 Microblaze: Removed moddi3 routinue in favour of the default moddi3 function as the existing implementation is buggy
    -> pick; necessary for microblaze
  • 5d6d1f9f3aa libstdc++: Allow C99 long double math functions to be optional
    -> pick; still relevant
  • 261c5637240 [RISC-V] Fix 32bit riscv with zbs extension enabled
    -> drop; applied upstream
  • b01b6dc0bc8 Fix PR 106600: __builtin_bswap32 is not hooked up for ZBB for 32bit
    -> drop; applied upstream
  • 9dd0c72afe8 Fix PR 106601: __builtin_bswap16 code gen could be improved with ZBB enabled
    -> drop; applied upstream
  • 1588d48231f Fix PR 106690: enable effective_target_bswap for RISCV targets with ZBB enabled by default
    -> drop; applied upstream
  • 550a8db8fe8 [RISCV] Fix PR 106586: riscv32 vs ZBS
    -> drop; applied upstream
  • db5fcf3eadd arm: Fix MVE's vcmp vector-scalar patterns [PR107987]
    -> drop; applied upstream
  • 104f6d7cfe6 microblaze: apply gcc patches from meta-xilinx repository
    -> pick; necessary for microblaze
  • 46c4fe6360b microblaze: disable microblaze64 gcc
    -> pick; necessary for microblaze
  • 685f45182f4 libstdc++-v3: std_thread: include shared_ptr.h
    -> drop; C11 gthr support was dropped, keep it removed until a new iteration of patches are submitted
  • 52dc7f4a2da libgcc: gthr: support for --enable-threads=c11
    -> drop; C11 gthr support was dropped, keep it removed until a new iteration of patches are submitted
  • 47b9276c904 libstdc++-v3: add support for --enable-libstdcxx-time=c11
    -> drop; C11 gthr support was dropped, keep it removed until a new iteration of patches are submitted
  • 17bd2bd0342 arm: Add support for Arm Cortex-M85 CPU.
    -> drop; applied upstream
  • a5dfaf65347 arm: Remove pacbti in cortex-m85
    -> drop; PACBTI should be fully supported in GCC 14.3
  • 06c248d3b93 RISCV: add rv64imfc/rv32imfc
    -> drop; squashed into zephyrproject-rtos/gcc@4be2879
  • b016c34c39a riscv: add riscv32emc configurations without Zifencei
    -> drop; squashed into zephyrproject-rtos/gcc@4be2879
  • ce4a0abfd7b Revert "libstdc++-v3: add support for --enable-libstdcxx-time=c11"
    -> drop; we already dropped the original local patch above
  • 5c3d5204736 Revert "libgcc: gthr: support for --enable-threads=c11"
    -> drop; we already dropped the original local patch above
  • 504d8c3a8dc Revert "libstdc++-v3: std_thread: include shared_ptr.h"
    -> drop; we already dropped the original local patch above
  • f141243aeca arm: Zero/Sign extends for CMSE security
    -> drop; applied upstream
  • e3e9d04f3bc libcc1: fix include
    -> drop; applied upstream
  • 0835dbe3b69 Include safe-ctype.h after C++ standard headers, to avoid over-poisoning
    -> drop; applied upstream
  • fa3ef7f9a0a configure: Always add pre-installed header directories to search path
    -> pick; still relevant (this patch was merged upstream and will be part of GCC 15)
  • 428d8d7b054 [arm] enable multilib for armv7-R Big-endian
    -> pick; still relevant

QEMU

Patches from zephyr-qemu-v7.0.0, to be applied to zephyr-qemu-v10.0.2:

  • 870a5a3c7e qemu/nios2: Add Altera MAX 10 board support for Zephyr OS
    -> drop; nios2 support has been dropped
  • cbdd537afb hw/sparc: Add leon (at697) machine
    -> drop; qemu_leon3 uses leon3_generic machine type which has nothing to do with this
  • db584051bb hw/sparc/leon: Fix compilation errors
    -> drop; patching the dropped "hw/sparc: Add leon (at697) machine"
  • 90494899f7 hw/sparc/leon: timer: Call leon_timer_io_read() for TIMER_1_COUNTER_REGISTER
    -> drop; patching the dropped "hw/sparc: Add leon (at697) machine"
  • 765825a5b8 hw/sparc/leon: Switch to transaction-based ptimer API
    -> drop; patching the dropped "hw/sparc: Add leon (at697) machine"
  • 2cc2e86de6 hw/sparc/leon: Fix compilation errors with qemu 6 changes
    -> drop; patching the dropped "hw/sparc: Add leon (at697) machine"
  • 32ebf3dc9f target/xtensa: add translation for wsr.mpucfg
    -> pick; applied
  • ce73e293bc target/xtensa: import sample_controller32 core
    -> pick; applied
  • bc72e8df53 tests/tcg/xtensa: tidy test linker script
    -> pick; applied
  • 872722abd3 tests/tcg/xtensa: fix SR test for configs with MPU
    -> pick; applied
  • ffe03b7e85 target/xtensa: fix sample_controller32 build for QEMU 7
    -> pick; applied
  • 78ef48be3b include/exec: Move gdb open flags to gdbstub.h
    -> drop; already applied upstream
  • a640330b13 include/exec: Move gdb_stat and gdb_timeval to gdbstub.h
    -> drop; already applied upstream
  • cdc9624941 include/exec: Define errno values in gdbstub.h
    -> drop; already applied upstream
  • a82dea4065 linux-user: Clean up arg_start/arg_end confusion
    -> drop; already applied upstream
  • f8e75d26ba semihosting/config: Merge --semihosting-config option groups
    -> drop; already applied upstream
  • ef9e68deeb semihosting: Move exec/softmmu-semi.h to semihosting/softmmu-uaccess.h
    -> drop; already applied upstream
  • 32f5b69dd3 target/mips: Use an exception for semihosting
    -> drop; already applied upstream
  • c0755f93d2 target/mips: Add UHI errno values
    -> drop; already applied upstream
  • ef109f39e5 target/mips: Drop pread and pwrite syscalls from semihosting
    -> drop; already applied upstream
  • 6c3b75a04b semihosting: Improve condition for config.c and console.c
    -> drop; already applied upstream
  • ce2b759115 semihosting: Move softmmu-uaccess.h functions out of line
    -> drop; already applied upstream
  • c672428a0f semihosting: Add target_strlen for softmmu-uaccess.h
    -> drop; already applied upstream
  • c5aa2bba54 semihosting: Simplify softmmu_lock_user_string
    -> drop; already applied upstream
  • 86a3e9f0cb semihosting: Split out guestfd.c
    -> drop; already applied upstream
  • b76d5ba54a semihosting: Inline set_swi_errno into common_semi_cb
    -> drop; already applied upstream
  • 6277134ff4 semihosting: Adjust error checking in common_semi_cb
    -> drop; already applied upstream
  • a264d7694f semihosting: Clean up common_semi_flen_cb
    -> drop; already applied upstream
  • 8baedb2c3a semihosting: Clean up common_semi_open_cb
    -> drop; already applied upstream
  • 3966beb97d semihosting: Return void from do_common_semihosting
    -> drop; already applied upstream
  • a5bca58442 semihosting: Move common-semi.h to include/semihosting/
    -> drop; already applied upstream
  • 2230d2e20a semihosting: Remove GDB_O_BINARY
    -> drop; already applied upstream
  • 8d317ce0e5 semihosting: Use struct gdb_stat in common_semi_flen_cb
    -> drop; already applied upstream
  • d14ceccd62 semihosting: Split is_64bit_semihosting per target
    -> drop; already applied upstream
  • 356fa8502b semihosting: Split common_semi_flen_buf per target
    -> drop; already applied upstream
  • 51bdb779cb semihosting: Split out common_semi_has_synccache
    -> drop; already applied upstream
  • c24d60cda6 semihosting: Split out common-semi-target.h
    -> drop; already applied upstream
  • f2504a6881 semihosting: Use env more often in do_common_semihosting
    -> drop; already applied upstream
  • 33f80a1143 semihosting: Move GET_ARG/SET_ARG earlier in the file
    -> drop; already applied upstream
  • 39a8721805 semihosting: Split out semihost_sys_open
    -> drop; already applied upstream
  • 8f080fce99 semihosting: Split out semihost_sys_close
    -> drop; already applied upstream
  • 8c82517d7a semihosting: Split out semihost_sys_read
    -> drop; already applied upstream
  • 845eb089b9 semihosting: Split out semihost_sys_write
    -> drop; already applied upstream
  • 244754cf9d semihosting: Bound length for semihost_sys_{read,write}
    -> drop; already applied upstream
  • 8c7c56ae63 semihosting: Split out semihost_sys_lseek
    -> drop; already applied upstream
  • 392ebb624f semihosting: Split out semihost_sys_isatty
    -> drop; already applied upstream
  • cb32fd76ca semihosting: Split out semihost_sys_flen
    -> drop; already applied upstream
  • 67f8ea40ae semihosting: Split out semihost_sys_remove
    -> drop; already applied upstream
  • f04b747dfa semihosting: Split out semihost_sys_rename
    -> drop; already applied upstream
  • a7800a2836 semihosting: Split out semihost_sys_system
    -> drop; already applied upstream
  • a8bbe5b13d semihosting: Create semihost_sys_{stat,fstat}
    -> drop; already applied upstream
  • 82dc752559 semihosting: Create semihost_sys_gettimeofday
    -> drop; already applied upstream
  • e77f9f59b0 gdbstub: Adjust gdb_syscall_complete_cb declaration
    -> drop; already applied upstream
  • 94419bab11 semihosting: Pass CPUState to qemu_semihosting_console_inc
    -> drop; already applied upstream
  • de2d382e40 semihosting: Expand qemu_semihosting_console_inc to read
    -> drop; already applied upstream
  • 92feba80d6 semihosting: Cleanup chardev init
    -> drop; already applied upstream
  • ea0551689a semihosting: Create qemu_semihosting_console_write
    -> drop; already applied upstream
  • 841a36d358 semihosting: Add GuestFDConsole
    -> drop; already applied upstream
  • 9f28b1b508 semihosting: Create qemu_semihosting_guestfd_init
    -> drop; already applied upstream
  • a86aace1a5 semihosting: Use console_in_gf for SYS_READC
    -> drop; already applied upstream
  • 74958759da semihosting: Use console_out_gf for SYS_WRITEC
    -> drop; already applied upstream
  • 09beddd4d2 semihosting: Remove qemu_semihosting_console_outc
    -> drop; already applied upstream
  • 6a671e6a87 semihosting: Use console_out_gf for SYS_WRITE0
    -> drop; already applied upstream
  • e130fa147d semihosting: Remove qemu_semihosting_console_outs
    -> drop; already applied upstream
  • d4f7c97e0e semihosting: Create semihost_sys_poll_one
    -> drop; already applied upstream
  • 57f2be36e5 semihosting: Remove qemu_semihosting_log_out
    -> drop; already applied upstream
  • 3b57e04529 target/mips: Create report_fault for semihosting
    -> drop; already applied upstream
  • 64edfd68a7 target/mips: Drop link syscall from semihosting
    -> drop; already applied upstream
  • 6b55b38e01 target/mips: Use semihosting/syscalls.h
    -> drop; already applied upstream
  • e6fdf01432 target/mips: Avoid qemu_semihosting_log_out for UHI_plog
    -> drop; already applied upstream
  • 704ab9ff52 semihosting: Don't return negative values on qemu_semihosting_console_write() failure
    -> drop; already applied upstream
  • ef271a37e9 semihosting: Don't copy buffer after console_write()
    -> drop; already applied upstream
  • 4340955534 semihosting: Check for errors on SET_ARG()
    -> drop; already applied upstream
  • 789407cdb9 semihosting: Fix handling of buffer in TARGET_SYS_TMPNAM
    -> drop; already applied upstream
  • 7ba1e6bd34 semihosting: Allow optional use of semihosting from userspace
    -> drop; already applied upstream
  • fc404422fe target/mips: Honour -semihosting-config userspace=on
    -> drop; already applied upstream
  • fa9ddc4819 semihosting: update link to spec
    -> drop; already applied upstream
  • 5d18baabac semihosting/arm-compat-semi: Avoid using hardcoded /tmp
    -> drop; already applied upstream
  • f0ae989d35 target/nios2: Create EXCP_SEMIHOST for semi-hosting
    -> drop; already applied upstream
  • 06740e68dc target/nios2: Honour -semihosting-config userspace=on
    -> drop; already applied upstream

Metadata

Metadata

Assignees

Labels

MetaA collection of features, enhancements or bugs

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions