>From 71e6b5bcf5564ecc59a96fdf2939537e4ccf0004 Mon Sep 17 00:00:00 2001 From: expnkx <unlv...@live.com> Date: Wed, 14 Apr 2021 00:17:53 -0400 Subject: [PATCH] Fix build errors on several platforms. [PR100057,PR100012,PR99499,PR99306]
[PATCH] libstdc++: Fix build errors with --disable-hosted-libstdcxx [PR100057] [PATCH] Fix build errors with MSDOS djgpp hosted [PR100012] [PATCH] Fix build errors with MSDOS djgpp target [PR99306] [PATCH] Fix build errors for Android Bionic target [PR99499] [PATCH] Add no red-zone multilib support for x86_64-elf target [PR100057] 1. The script of --disable-hosted-libstdcxx does not work correctly since libstdc++ always assumes the header file like stdio.h exists even in freestanding environment. This patch is to fix C++ freestanding, to make C++ being self-host. By the way, I add red-zone multilib support by default since OSdev has done that for a very long time. See:https://wiki.osdev.org/Libgcc_without_red_zone We just add this target by default. 2. Fix libcody and resolver on DOS host because djgpp always defines unix macro even it is not unix. 3. Fix Android Bionic build. Though Google does not support GCC any more, some of us still want to use GCC to write android programs. This patch fixes build error on bionic too by defining macros like _GLIBCXX_U by ourselves. The patch has been tested on target x86_64-elf and bootstrapped successfully on x86_64-linux-gnu with all languages enabled. gcc/ChangeLog: PR gcc/100057 * gcc/config.gcc, gcc/config/i386/t-x86_64-elf: Add x86_64-elf redzone multilib * gcc/ginclude/stdint-wrap.h: Force #include"stdint-gcc.h" when _GLIBCXX_HOSTED == 0 * gcc/ggc-common.c: Fix build errors with MSDOS host libcody/ChangeLog: PR gcc/100012 * libcody/cody.hh: Fix build errors with MSDOS host libstdc++-v3/ChangeLog: PR libstdc++/100057 * libstdc++-v3/configure: Fix build errors with --disable-hosted-libstdcxx PR gcc/99306 * libstdc++-v3/config/os/djgpp/os_defines.h: Fix build errors with MSDOS target * libstdc++-v3/src/c++11/shared_ptr.cc: Fix build errors with MSDOS target PR gcc/99499 * libstdc++-v3/config/os/bionic/ctype_base.h: Fix build errors for Android Bionic target Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
builderror.patch
Description: builderror.patch