Skip to content

Commit a2182c7

Browse files
committed
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.
1 parent 2d7f310 commit a2182c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gas/config/tc-ppc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ const pseudo_typeS md_pseudo_table[] =
279279
/* Structure to hold information about predefined registers. */
280280
struct pd_reg
281281
{
282-
const char *name;
282+
char name[6];
283283
unsigned short value;
284284
unsigned short flags;
285285
};

0 commit comments

Comments
 (0)