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/0c08a5b39cbc
branches:  trunk
changeset: 1023525:0c08a5b39cbc
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 eb9779d3b46a -r 0c08a5b39cbc 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