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: reduce number of relocations in Targ_Prin...



details:   https://anonhg.NetBSD.org/src/rev/63119ff6045f
branches:  trunk
changeset: 985887:63119ff6045f
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Sep 12 08:32:23 2021 +0000

description:
make: reduce number of relocations in Targ_PrintType

On x86_64, this saves 120 bytes of .text.

No functional change.

diffstat:

 usr.bin/make/targ.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bbb8a7215716 -r 63119ff6045f usr.bin/make/targ.c
--- a/usr.bin/make/targ.c       Sun Sep 12 08:23:57 2021 +0000
+++ b/usr.bin/make/targ.c       Sun Sep 12 08:32:23 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: targ.c,v 1.171 2021/09/12 08:03:48 rillig Exp $        */
+/*     $NetBSD: targ.c,v 1.172 2021/09/12 08:32:23 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -113,7 +113,7 @@
 #include "dir.h"
 
 /*     "@(#)targ.c     8.2 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: targ.c,v 1.171 2021/09/12 08:03:48 rillig Exp $");
+MAKE_RCSID("$NetBSD: targ.c,v 1.172 2021/09/12 08:32:23 rillig Exp $");
 
 /*
  * All target nodes that appeared on the left-hand side of one of the
@@ -421,7 +421,7 @@
        static const struct {
                GNodeType bit;
                bool internal;
-               const char *name;
+               const char name[10];
        } names[] = {
                { OP_MEMBER,    true,   "MEMBER"        },
                { OP_LIB,       true,   "LIB"           },



Home | Main Index | Thread Index | Old Index