aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2023-08-15 08:34:13 +0200
committerJan Beulich <jbeulich@suse.com>2023-08-15 08:34:13 +0200
commita2182c73d245530c5c5587bc47a6142e9738de84 (patch)
tree2347b48f825212c3c82429caf4f89039e183eb9e
parent2d7f31063b8f0ce9bb96ab57d350071e0a30bfb3 (diff)
downloadfsf-binutils-gdb-a2182c73d245530c5c5587bc47a6142e9738de84.zip
fsf-binutils-gdb-a2182c73d245530c5c5587bc47a6142e9738de84.tar.gz
fsf-binutils-gdb-a2182c73d245530c5c5587bc47a6142e9738de84.tar.bz2
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.
-rw-r--r--gas/config/tc-ppc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index a8b034c..974404b 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;
};