Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make(1): reduce code size on x86_64
details: https://anonhg.NetBSD.org/src/rev/b78273f1ec69
branches: trunk
changeset: 936274:b78273f1ec69
user: rillig <rillig%NetBSD.org@localhost>
date: Thu Jul 23 19:32:54 2020 +0000
description:
make(1): reduce code size on x86_64
diffstat:
usr.bin/make/var.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (37 lines):
diff -r f3b4ecb9979c -r b78273f1ec69 usr.bin/make/var.c
--- a/usr.bin/make/var.c Thu Jul 23 19:26:34 2020 +0000
+++ b/usr.bin/make/var.c Thu Jul 23 19:32:54 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: var.c,v 1.295 2020/07/21 23:47:50 rillig Exp $ */
+/* $NetBSD: var.c,v 1.296 2020/07/23 19:32:54 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: var.c,v 1.295 2020/07/21 23:47:50 rillig Exp $";
+static char rcsid[] = "$NetBSD: var.c,v 1.296 2020/07/23 19:32:54 rillig Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)var.c 8.3 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: var.c,v 1.295 2020/07/21 23:47:50 rillig Exp $");
+__RCSID("$NetBSD: var.c,v 1.296 2020/07/23 19:32:54 rillig Exp $");
#endif
#endif /* not lint */
#endif
@@ -1566,9 +1566,7 @@
step = 1;
}
- for (i = start;
- (step < 0 && i >= end) || (step > 0 && i < end);
- i += step) {
+ for (i = start; (step < 0) == (i >= end); i += step) {
if (av[i][0] != '\0') {
SepBuf_AddBytes(&buf, av[i], strlen(av[i]));
SepBuf_Sep(&buf);
Home |
Main Index |
Thread Index |
Old Index