Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/lfs_cleanerd make the GCC 4.8 specific hack for ci.c...
details: https://anonhg.NetBSD.org/src/rev/e632c5c3ec8e
branches: trunk
changeset: 344186:e632c5c3ec8e
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Mar 16 18:58:34 2016 +0000
description:
make the GCC 4.8 specific hack for ci.clean being set GCC >= 4.8.
diffstat:
libexec/lfs_cleanerd/lfs_cleanerd.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r f52e098beb01 -r e632c5c3ec8e libexec/lfs_cleanerd/lfs_cleanerd.c
--- a/libexec/lfs_cleanerd/lfs_cleanerd.c Wed Mar 16 18:10:00 2016 +0000
+++ b/libexec/lfs_cleanerd/lfs_cleanerd.c Wed Mar 16 18:58:34 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_cleanerd.c,v 1.56 2016/02/19 03:54:37 riastradh Exp $ */
+/* $NetBSD: lfs_cleanerd.c,v 1.57 2016/03/16 18:58:34 mrg Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -1453,10 +1453,11 @@
char *cp, *pidname;
#endif
-#if defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ == 8 && \
+#if defined(__GNUC__) && \
+ (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)) && \
defined(__OPTIMIZE_SIZE__)
/*
- * XXX: Work around apparent bug with gcc 4.8 and -Os: it
+ * XXX: Work around apparent bug with GCC >= 4.8 and -Os: it
* claims that ci.clean is uninitialized in clean_fs (at one
* of the several uses of it, which is neither the first nor
* last use) -- this doesn't happen with plain -O2.
Home |
Main Index |
Thread Index |
Old Index