From 9acd2e08f1f35ffd6c7cc133b9934662365936d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Mon, 8 May 2017 12:22:19 +0200 Subject: [PATCH] diffutils: fix gcc7.1.0 build --- .../diffutils/patches/gcc7-builtin_add_overflow.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 srcpkgs/diffutils/patches/gcc7-builtin_add_overflow.patch diff --git a/srcpkgs/diffutils/patches/gcc7-builtin_add_overflow.patch b/srcpkgs/diffutils/patches/gcc7-builtin_add_overflow.patch new file mode 100644 index 00000000000..dbb7204001e --- /dev/null +++ b/srcpkgs/diffutils/patches/gcc7-builtin_add_overflow.patch @@ -0,0 +1,11 @@ +--- lib/intprops.h 2016-08-05 01:38:16.000000000 +0200 ++++ lib/intprops.h 2017-05-08 12:19:47.703724356 +0200 +@@ -223,7 +223,7 @@ + : (max) >> (b) < (a)) + + /* True if __builtin_add_overflow (A, B, P) works when P is null. */ +-#define _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL (7 <= __GNUC__) ++#define _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL (7 < __GNUC__) + + /* The _GL*_OVERFLOW macros have the same restrictions as the + *_RANGE_OVERFLOW macros, except that they do not assume that operands