From 69b7412120ae0e040bdfbc46cd3dfafdcb3805d2 Mon Sep 17 00:00:00 2001 From: David Karoly Date: Fri, 6 Oct 2023 17:25:42 +0200 Subject: [PATCH] binutils: fix register lookup table for ppc The table pre_defined_registers should be sorted alphabetically, but dsisr register is out of place, causing compile issues. Change-Id: Icebfe3154043c95789e9ce1b27ffae4b3e88f7bf Reviewed-on: https://review.haiku-os.org/c/buildtools/+/6988 Reviewed-by: Adrien Destugues --- binutils/gas/config/tc-ppc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/binutils/gas/config/tc-ppc.c b/binutils/gas/config/tc-ppc.c index a8b034c88a..99e73980b0 100644 --- a/binutils/gas/config/tc-ppc.c +++ b/binutils/gas/config/tc-ppc.c @@ -351,7 +351,6 @@ static const struct pd_reg pre_defined_registers[] = { "ctr", 9, PPC_OPERAND_SPR }, { "dar", 19, PPC_OPERAND_SPR }, { "dec", 22, PPC_OPERAND_SPR }, - { "dsisr", 18, PPC_OPERAND_SPR }, /* Dense Math Registers. */ { "dm0", 0, PPC_OPERAND_DMR }, @@ -363,6 +362,8 @@ static const struct pd_reg pre_defined_registers[] = { "dm6", 6, PPC_OPERAND_DMR }, { "dm7", 7, PPC_OPERAND_DMR }, + { "dsisr", 18, PPC_OPERAND_SPR }, + /* Floating point registers */ { "f.0", 0, PPC_OPERAND_FPR }, { "f.1", 1, PPC_OPERAND_FPR },