From: Jan Beulich Date: Tue, 15 Aug 2023 06:34:13 +0000 (+0200) Subject: PPC: remove indirection from struct pd_reg X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2182c73d245530c5c5587bc47a6142e9738de84;p=binutils-gdb.git 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. --- 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; };