update gcc config & patch

This commit is contained in:
crazii
2023-12-02 14:28:41 +08:00
parent bcaa162541
commit 1d01d1fe8a
2 changed files with 9 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
diff --git a/gcc/diagnostic-color.cc b/gcc/diagnostic-color.cc
index 640adfad5..f5eaf142a 100644
index 5f2856d..fe2b05c 100644
--- a/gcc/diagnostic-color.cc
+++ b/gcc/diagnostic-color.cc
@@ -211,9 +211,38 @@ should_colorize (void)
@@ -214,9 +214,40 @@ should_colorize (void)
HANDLE h;
DWORD m;
@@ -12,6 +12,7 @@ index 640adfad5..f5eaf142a 100644
+ ret = (h != INVALID_HANDLE_VALUE) && (h != NULL)
&& GetConsoleMode (h, &m);
+
+#if (_WIN32_WINNT >= 0x0600)
+ if (!ret)
+ {
+ ULONG size = sizeof (FILE_NAME_INFO) + (MAX_PATH * sizeof (wchar_t));
@@ -38,6 +39,7 @@ index 640adfad5..f5eaf142a 100644
+ }
+ free (fni);
+ }
+#endif
+ return ret;
#else
char const *t = getenv ("TERM");

View File

@@ -5,8 +5,8 @@
# Contributor: wirx6 <wirx654@gmail.com>
# Contributor: Kirill Müller <krlmlr@mailbox.org>
_enable_ada=yes
_enable_objc=yes
_enable_ada=no
_enable_objc=no
_enable_rust=no
_enable_jit=yes
_threads="posix"
@@ -87,7 +87,7 @@ sha256sums=('e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da'
'fd9bdecb2bbc4796bbc9f00b708dac42ef9e3464a06d6d27e5475cee117de5be'
'ad1f7b5e7afaaec008b7cbd14feea13a10989fa91bda7003af72d457619bb199'
'6c272078340a27b3f147e497115b0a6e9fc0da720a2602f12b086524522caa59'
'e0a5b470f49a29f20215cc9f9d04c1cb9969dff6f0e546542799d3a693ef1c84'
'A7683E300D61FC1B9D162B0B26AAB614A809355AF6E43B3F4C3F67B496EDC3EE'
'c34f9e71b5a092be1987ad4c65891742c74c9eb8ef6560100e751cd31375f579'
'f73c8d1701762fed7d8102d17d8e4416a4cc5e600e297a89c2e1fe09cd743a1c'
'693a91a863a706b3526af01c9de5ce8295c59ef0f56f009bcfbf79a93cba2728'
@@ -204,7 +204,7 @@ build() {
"--with-dwarf2"
)
LDFLAGS+=" -Wl,--large-address-aware"
local _arch=pentium3
local _arch=pentium
;;
x86_64)
@@ -253,7 +253,7 @@ build() {
--target=${MINGW_CHOST} \
--with-native-system-header-dir=${MINGW_PREFIX}/include \
--libexecdir=${MINGW_PREFIX}/lib \
--disable-bootstrap \
--enable-bootstrap \
--enable-checking=release \
--with-arch=${_arch} \
--with-tune=generic \