From: darcagn <da...@us...> - 2023-11-26 22:07:35
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via 6ffd6a1772643b0a645ee9d0a4c956eb09b133d6 (commit) from 1f39538d02d39a084c457b0cac5e2f98bf5e200e (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 6ffd6a1772643b0a645ee9d0a4c956eb09b133d6 Author: Shirobon <126...@us...> Date: Mon Nov 27 07:05:58 2023 +0900 Fix GCC 13.2.0 Toolchain Compilation on Cygwin (#388) Toolchain fails to build sh.cc with undeclared fputs_unlocked errors, so if __CYGWIN__ is defined, undef these macros for this file. * Add x64 Cygwin specific patch for gcc 13.2.0 ----------------------------------------------------------------------- Summary of changes: .../dc-chain/patches/x86_64-pc-cygwin/gcc-13.2.0.diff | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 utils/dc-chain/patches/x86_64-pc-cygwin/gcc-13.2.0.diff diff --git a/utils/dc-chain/patches/x86_64-pc-cygwin/gcc-13.2.0.diff b/utils/dc-chain/patches/x86_64-pc-cygwin/gcc-13.2.0.diff new file mode 100644 index 0000000..41bd23b --- /dev/null +++ b/utils/dc-chain/patches/x86_64-pc-cygwin/gcc-13.2.0.diff @@ -0,0 +1,18 @@ +diff --color -ruN gcc-13.2.0/gcc/config/sh/sh.cc gcc-13.2.0-kos/gcc/config/sh/sh.cc +--- gcc-13.2.0/gcc/config/sh/sh.cc 2023-11-26 08:34:56.426962700 +0900 ++++ gcc-13.2.0-kos/gcc/config/sh/sh.cc 2023-11-26 08:40:20.067698600 +0900 +@@ -71,6 +71,14 @@ + /* This file should be included last. */ + #include "target-def.h" + ++/* fputs() and related are redefined in system.h to their unlocked version. */ ++/* On Cygwin, compilation errors with 'fputs_unlocked() was not declared' */ ++/* Therefore, on Cygwin, undefine these problematic symbols. */ ++#ifdef __CYGWIN__ ++#undef fputs ++#undef fprintf ++#endif ++ + int code_for_indirect_jump_scratch = CODE_FOR_indirect_jump_scratch; + + #define CONST_OK_FOR_ADD(size) CONST_OK_FOR_I08 (size) hooks/post-receive -- A pseudo Operating System for the Dreamcast. |