]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Define AT as UChar in VEX/priv/guest_ppc_toIR.c (dis_vsx_accumulator_prefix)
authorMark Wielaard <mark@klomp.org>
Sat, 23 Jan 2021 20:54:07 +0000 (21:54 +0100)
committerMark Wielaard <mark@klomp.org>
Sat, 23 Jan 2021 20:54:07 +0000 (21:54 +0100)
GCC notices that AT is passed around as char, specifically as %u argument
to DIP. But ifieldAT returns an UChar and vsx_matrix_ger takes AT as UChar.
This causes lots of format string warnings when building with GCC11.

Simply declare AT as UChar instead of char.

VEX/priv/guest_ppc_toIR.c

index 0b7fe2387486ec88d0c182984a1a65219a119bdd..3d4833d96a63776e9b402118de9ecdef7258fd22 100644 (file)
@@ -33980,7 +33980,7 @@ static Bool dis_vsx_accumulator_prefix ( UInt prefix, UInt theInstr,
    UChar opc1 = ifieldOPC(theInstr);
    UChar opc2 = IFIELD( theInstr, 1, 10);
    UInt bit11_15 = IFIELD( theInstr, (31-15), 5);
-   char AT =  ifieldAT(theInstr);
+   UChar AT =  ifieldAT(theInstr);
    Bool is_prefix = prefix_instruction( prefix );
    UChar rA_addr = ifieldRegA( theInstr );
    UChar rB_addr = ifieldRegB( theInstr );