summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2017-12-07 16:07:41 -0600
committerYaakov Selkowitz <yselkowi@redhat.com>2017-12-07 16:07:41 -0600
commitb873d241ecf14cf41504b825cd92f6689996f44b (patch)
tree2c087f273504f0a4a6af3daba85c6bba1acc908b
parent528c5a6a954a6734a58bea4de5021000dd268a96 (diff)
downloadcygwin-gcc-b873d241ecf14cf41504b825cd92f6689996f44b.tar.gz
cygwin-gcc-b873d241ecf14cf41504b825cd92f6689996f44b.tar.xz
cygwin-gcc-b873d241ecf14cf41504b825cd92f6689996f44b.zip
Fix glimits.h for Newlib FTMs
-rw-r--r--0030-newlib-ftm.patch11
-rw-r--r--cygwin-gcc.spec2
2 files changed, 13 insertions, 0 deletions
diff --git a/0030-newlib-ftm.patch b/0030-newlib-ftm.patch
new file mode 100644
index 0000000..773813a
--- /dev/null
+++ b/0030-newlib-ftm.patch
@@ -0,0 +1,11 @@
+--- origsrc/gcc-6.4.0/gcc/glimits.h 2016-01-04 08:30:50.652828000 -0600
++++ src/gcc-6.4.0/gcc/glimits.h 2017-11-13 18:46:28.887539100 -0600
+@@ -111,7 +111,7 @@
+ # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
+ #endif
+
+-#if defined (__GNU_LIBRARY__) ? defined (__USE_GNU) : !defined (__STRICT_ANSI__)
++#if defined (__GNU_LIBRARY__) ? defined (__USE_GNU) : defined (__NEWLIB__) ? __GNU_VISIBLE : !defined (__STRICT_ANSI__)
+ /* Minimum and maximum values a `signed long long int' can hold. */
+ # undef LONG_LONG_MIN
+ # define LONG_LONG_MIN (-LONG_LONG_MAX - 1LL)
diff --git a/cygwin-gcc.spec b/cygwin-gcc.spec
index baa9da5..00c9e84 100644
--- a/cygwin-gcc.spec
+++ b/cygwin-gcc.spec
@@ -77,6 +77,7 @@ Patch25: 0025-enable-libcilkrts.patch
Patch27: 0027-libtool-w32api.patch
Patch28: 0028-g++-time.patch
Patch29: 0029-gcc-specs.patch
+Patch30: 0030-newlib-ftm.patch
# Fedora-specific patches
Patch1000: 1000-cross-exe-suffix.patch
@@ -339,6 +340,7 @@ Cygwin x86_64 cross-compiler for Ada.
%patch27 -p2
%patch28 -p2
%patch29 -p2
+%patch30 -p2
%patch1000 -p1
%patch1001 -p1