diff options
| author | rillig <rillig@NetBSD.org> | 2021-09-12 08:32:23 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2021-09-12 08:32:23 +0000 |
| commit | c8bbdb39d71bcda4ddda70c944726625c38e9cc8 (patch) | |
| tree | 8c722906dcaa32b54224ae50a5a317713b31a115 /usr.bin/make | |
| parent | 13649aa9fed7fc048849a0a20d0947115960a6d6 (diff) | |
make: reduce number of relocations in Targ_PrintType
On x86_64, this saves 120 bytes of .text.
No functional change.
Diffstat (limited to 'usr.bin/make')
| -rw-r--r-- | usr.bin/make/targ.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/targ.c b/usr.bin/make/targ.c index c1cd0db0382..ecdb900d15d 100644 --- a/usr.bin/make/targ.c +++ b/usr.bin/make/targ.c @@ -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" }, |
