From a2182c73d245530c5c5587bc47a6142e9738de84 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 15 Aug 2023 08:34:13 +0200 Subject: [PATCH] PPC: remove indirection from struct pd_reg The longest register name is 5 characters (plus a nul one), so using a 4- or 8-byte pointer to get at it is neither space nor time efficient. Embed the names right into the array. For PIE this also reduces the number of base relocations in the final image. --- gas/config/tc-ppc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index a8b034c88ab..974404b668e 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -279,7 +279,7 @@ const pseudo_typeS md_pseudo_table[] = /* Structure to hold information about predefined registers. */ struct pd_reg { - const char *name; + char name[6]; unsigned short value; unsigned short flags; }; -- 2.30.2