[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master d7284da: Port ATTRIBUTE_MAY_ALIAS to recent icc
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master d7284da: Port ATTRIBUTE_MAY_ALIAS to recent icc |
Date: |
Thu, 25 May 2017 03:25:13 -0400 (EDT) |
branch: master
commit d7284da858b38db4737f7e1f587c63390bee4328
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
Port ATTRIBUTE_MAY_ALIAS to recent icc
* src/conf_post.h (ATTRIBUTE_MAY_ALIAS) [__ICC]:
Define to empty. Otherwise, icc (ICC) 17.0.4 20170411 says
“warning #2621: attribute "__may_alias__" does not apply here”
for constructs like ‘struct sockaddr *sa = (whatever);
struct sockaddr_in __attribute__ ((__may_alias__)) *sin
= (struct sockaddr_in *) sa;’.
---
src/conf_post.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/conf_post.h b/src/conf_post.h
index c05c93b..5e1d845 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -263,7 +263,7 @@ extern int emacs_setenv_TZ (char const *);
#define ATTRIBUTE_CONST _GL_ATTRIBUTE_CONST
#define ATTRIBUTE_UNUSED _GL_UNUSED
-#if GNUC_PREREQ (3, 3, 0)
+#if GNUC_PREREQ (3, 3, 0) && !defined __ICC
# define ATTRIBUTE_MAY_ALIAS __attribute__ ((__may_alias__))
#else
# define ATTRIBUTE_MAY_ALIAS
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master d7284da: Port ATTRIBUTE_MAY_ALIAS to recent icc,
Paul Eggert <=