Module Name: src
Committed By: rillig
Date: Sun Sep 12 08:32:23 UTC 2021
Modified Files:
src/usr.bin/make: targ.c
Log Message:
make: reduce number of relocations in Targ_PrintType
On x86_64, this saves 120 bytes of .text.
No functional change.
To generate a diff of this commit:
cvs rdiff -u -r1.171 -r1.172 src/usr.bin/make/targ.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/targ.c
diff -u src/usr.bin/make/targ.c:1.171 src/usr.bin/make/targ.c:1.172
--- src/usr.bin/make/targ.c:1.171 Sun Sep 12 08:03:48 2021
+++ src/usr.bin/make/targ.c Sun Sep 12 08:32:23 2021
@@ -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 @@ Targ_PrintType(GNodeType type)
static const struct {
GNodeType bit;
bool internal;
- const char *name;
+ const char name[10];
} names[] = {
{ OP_MEMBER, true, "MEMBER" },
{ OP_LIB, true, "LIB" },