On 03/15/2016 03:08 AM, Balazs Hajgato wrote:
I have already reported this issue to Intel, waiting for their proposal.
Meanwhile I tried the patch, and I got a bunch of errors:
(error.restrict.txt)
I just have changed restrict to __restrict, error:
(error.__restrict.txt)
Why isn't your compiler running in C11 mode, or at least in C99 mode? Can you investigate that?

Is your program using Gnulib's std-gnu11 module? If not, perhaps it should. These days there's no good reason to compile in C89 mode, or even in C99 mode for that matter.

In the meantime, please try the attached additional patch.
From 2d9685d7989d99da0df4871e24c79ebee4192283 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email protected]>
Date: Tue, 15 Mar 2016 07:48:05 -0700
Subject: [PATCH] select: port more to Intel 2016.1.150 compiler
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Problem reported by Balázs Hajgató in:
http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00036.html
* m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
---
 ChangeLog    | 7 +++++++
 m4/select.m4 | 3 ++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index d89c5f1..c3470b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-03-15  Paul Eggert  <[email protected]>
+
+	select: port more to Intel 2016.1.150 compiler
+	Problem reported by Balázs Hajgató in:
+	http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00036.html
+	* m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
+
 2016-03-14  Paul Eggert  <[email protected]>
 
 	select: try to port to 2016.1.150 compiler
diff --git a/m4/select.m4 b/m4/select.m4
index 00182fd..d193655 100644
--- a/m4/select.m4
+++ b/m4/select.m4
@@ -1,4 +1,4 @@
-# select.m4 serial 7
+# select.m4 serial 8
 dnl Copyright (C) 2009-2016 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,6 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_SELECT],
 [
   AC_REQUIRE([gl_HEADER_SYS_SELECT])
+  AC_REQUIRE([AC_C_RESTRICT])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_REQUIRE([gl_SOCKETS])
   if test "$ac_cv_header_winsock2_h" = yes; then
-- 
2.5.0

Reply via email to