[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 69d0a2d: Omit -Wstrict-overflow workaround in GCC 5
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master 69d0a2d: Omit -Wstrict-overflow workaround in GCC 5 |
Date: |
Thu, 30 Apr 2015 03:31:08 +0000 |
branch: master
commit 69d0a2d8989a4f07815e53bcbadea3e1ee0f7256
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
Omit -Wstrict-overflow workaround in GCC 5
* src/process.c: Remove workaround for GCC -Wstrict-overflow bug
if it's GCC 5 or later, as the bug appears to be fixed in GCC 5.1.
---
src/process.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/process.c b/src/process.c
index 3e04cb7..ce78d81 100644
--- a/src/process.c
+++ b/src/process.c
@@ -136,8 +136,8 @@ extern int sys_select (int, fd_set *, fd_set *, fd_set *,
/* Work around GCC 4.7.0 bug with strict overflow checking; see
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52904>.
- These lines can be removed once the GCC bug is fixed. */
-#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
+ This bug appears to be fixed in GCC 5.1, so don't work around it there. */
+#if __GNUC__ == 4 && __GNUC_MINOR__ >= 3
# pragma GCC diagnostic ignored "-Wstrict-overflow"
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 69d0a2d: Omit -Wstrict-overflow workaround in GCC 5,
Paul Eggert <=