openwrt/toolchain/gcc/patches-13.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
010-documentation.patch toolchain: gcc: add support for GCC 13 2023-05-05 15:46:37 +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
230-musl_libssp.patch toolchain: gcc: add support for GCC 13 2023-05-05 15:46:37 +02:00
300-mips_Os_cpu_rtx_cost_model.patch toolchain: gcc: add support for GCC 13 2023-05-05 15:46:37 +02:00
810-arm-softfloat-libgcc.patch
820-libgcc_pic.patch toolchain: gcc: add support for GCC 13 2023-05-05 15:46:37 +02:00
840-armv4_pass_fix-v4bx_to_ld.patch toolchain: gcc: add support for GCC 13 2023-05-05 15:46:37 +02:00
850-use_shared_libgcc.patch toolchain: gcc: add support for GCC 13 2023-05-05 15:46:37 +02:00
851-libgcc_no_compat.patch
870-ppc_no_crtsavres.patch toolchain: gcc: add support for GCC 13 2023-05-05 15:46:37 +02:00
881-no_tm_section.patch
900-bad-mips16-crt.patch
910-mbsd_multi.patch toolchain: gcc: updat to 13.2 2023-07-30 13:06:56 +02:00
920-specs_nonfatal_getenv.patch toolchain: gcc: add support for GCC 13 2023-05-05 15:46:37 +02:00
960-gotools-fix-compilation-when-making-cross-compiler.patch
970-macos_arm64-building-fix.patch toolchain: gcc: add support for GCC 13 2023-05-05 15:46:37 +02:00