Author: Aaron M. Ucko <ucko@debian.org>
-Date: Sun Apr 26 11:20:45 2020 -0400
+Date: Sun Sep 06 22:57:35 2020 -0400
Description: Support GCC 10+.
Debian-Bug: 957581.
-Formally recognize GCC 10 and up, even if (as in Debian) -dumpversion
-reports only one or two components of the version number. Corresponds to
+* build system: Formally recognize GCC 10 and up, even if (as in
+ Debian) -dumpversion reports only one or two components of the
+ version number. These patches correspond to merges of
-https://www.ncbi.nlm.nih.gov/viewvc/v1?view=revision&revision=88985
-https://www.ncbi.nlm.nih.gov/viewvc/v1?view=revision&revision=88988
-https://www.ncbi.nlm.nih.gov/viewvc/v1?view=revision&revision=88989
-https://www.ncbi.nlm.nih.gov/viewvc/v1?view=revision&revision=89711
+ https://www.ncbi.nlm.nih.gov/viewvc/v1?view=revision&revision=88985
+ https://www.ncbi.nlm.nih.gov/viewvc/v1?view=revision&revision=88988
+ https://www.ncbi.nlm.nih.gov/viewvc/v1?view=revision&revision=88989
+ https://www.ncbi.nlm.nih.gov/viewvc/v1?view=revision&revision=89711
-though the last of those doesn't apply cleanly without some
-intervening changes for better Clang support.
+ though the last of those doesn't apply cleanly without some
+ intervening changes for better Clang support.
+* ncbifile.cpp (s_GetFileSystemInfo): Formally cast st.f_type to avoid
+ narrowing errors for cases with the high bit set when that field is
+ a 32-bit signed integer (as on i386).
+
+Index: b/c++/src/build-system/config.h.in
+===================================================================
--- a/c++/src/build-system/config.h.in
+++ b/c++/src/build-system/config.h.in
@@ -966,7 +966,7 @@
#undef NCBI_COMPILER_VERSION
/* Compiler name */
+Index: b/c++/src/build-system/configure
+===================================================================
--- a/c++/src/build-system/configure
+++ b/c++/src/build-system/configure
@@ -8233,9 +8233,10 @@ fi
-*gcc|-il ) boost_comp_vers=`echo $compiler_version | cut -c1-2` ;;
* ) boost_comp_vers='' ;;
esac
+Index: b/c++/src/build-system/configure.ac
+===================================================================
--- a/c++/src/build-system/configure.ac
+++ b/c++/src/build-system/configure.ac
@@ -1257,9 +1257,10 @@ changequote(, )dnl
-*gcc|-il ) boost_comp_vers=`echo $compiler_version | cut -c1-2` ;;
* ) boost_comp_vers='' ;;
esac
+Index: b/c++/src/corelib/ncbifile.cpp
+===================================================================
+--- a/c++/src/corelib/ncbifile.cpp
++++ b/c++/src/corelib/ncbifile.cpp
+@@ -5129,7 +5129,7 @@ void s_GetFileSystemInfo(const string&
+
+ GET_STATFS_INFO;
+ if (flags & (fFSI_Type | fFSI_DiskSpace)) {
+- switch (st.f_type) {
++ switch (static_cast<Uint4>(st.f_type)) {
+ case 0xADF5: info->fs_type = CFileUtil::eADFS; break;
+ case 0xADFF: info->fs_type = CFileUtil::eAFFS; break;
+ case 0x5346414F: info->fs_type = CFileUtil::eAFS; break;