msm8916-openwrt/toolchain/gcc/patches-12.x
Georgi Valkov 631014d9b0 toolchain/gcc: fix build errors on macOS with Xcode 15.3
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:550:5: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces
    _LIBCPP_INLINE_VISIBILITY
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:891:37: note: expanded from macro '_LIBCPP_INLINE_VISIBILITY'
 #  define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI
                                    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:870:26: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI'
          __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE))))

Fixed using backport of upstream commits [1-2] as discussed here
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111632#c21

[1] Include safe-ctype.h after C++ standard headers, to avoid over-poisoning
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=9970b576b7e4ae337af1268395ff221348c4b34a

[2] libcc1: fix <vector> include
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=5213047b1d50af63dfabb5e5649821a6cb157e33

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
2024-04-02 11:10:32 +02:00
..
002-case_insensitive.patch toolchain: gcc: improve patch handling by introducing major version 2022-09-11 11:24:57 +02:00
010-documentation.patch toolchain: gcc: improve patch handling by introducing major version 2022-09-11 11:24:57 +02:00
020-Include-safe-ctype.h-after-C-standard-headers-to-avo.patch toolchain/gcc: fix build errors on macOS with Xcode 15.3 2024-04-02 11:10:32 +02:00
021-libcc1-fix-vector-include.patch toolchain/gcc: fix build errors on macOS with Xcode 15.3 2024-04-02 11:10:32 +02:00
110-Fix-MIPS-PR-84790.patch toolchain: gcc: improve patch handling by introducing major version 2022-09-11 11:24:57 +02:00
230-musl_libssp.patch toolchain: gcc: update to 12.3.0 2023-05-12 12:11:20 +02:00
300-mips_Os_cpu_rtx_cost_model.patch toolchain: gcc: improve patch handling by introducing major version 2022-09-11 11:24:57 +02:00
700-RISCV-Inline-subword-atomic-ops.patch toolchain: gcc: backport inline subword atomic support for riscv 2023-06-11 17:09:06 +02:00
701-riscv-linux-Don-t-add-latomic-with-pthread.patch toolchain: gcc: backport inline subword atomic support for riscv 2023-06-11 17:09:06 +02:00
810-arm-softfloat-libgcc.patch toolchain: gcc: improve patch handling by introducing major version 2022-09-11 11:24:57 +02:00
820-libgcc_pic.patch toolchain: gcc: improve patch handling by introducing major version 2022-09-11 11:24:57 +02:00
840-armv4_pass_fix-v4bx_to_ld.patch toolchain: gcc: improve patch handling by introducing major version 2022-09-11 11:24:57 +02:00
850-use_shared_libgcc.patch toolchain: gcc: improve patch handling by introducing major version 2022-09-11 11:24:57 +02:00
851-libgcc_no_compat.patch toolchain: gcc: improve patch handling by introducing major version 2022-09-11 11:24:57 +02:00
870-ppc_no_crtsavres.patch toolchain: gcc: improve patch handling by introducing major version 2022-09-11 11:24:57 +02:00
881-no_tm_section.patch toolchain: gcc: improve patch handling by introducing major version 2022-09-11 11:24:57 +02:00
900-bad-mips16-crt.patch toolchain: gcc: improve patch handling by introducing major version 2022-09-11 11:24:57 +02:00
910-mbsd_multi.patch toolchain: gcc: backport inline subword atomic support for riscv 2023-06-11 17:09:06 +02:00
920-specs_nonfatal_getenv.patch toolchain: gcc: update to 12.3.0 2023-05-12 12:11:20 +02:00
960-gotools-fix-compilation-when-making-cross-compiler.patch toolchain: gcc: improve patch handling by introducing major version 2022-09-11 11:24:57 +02:00
970-macos_arm64-building-fix.patch toolchain: gcc: update to 12.3.0 2023-05-12 12:11:20 +02:00