loongarch gcc-4.9 build error
Checks
Commit Message
gas/config/tc-loongarch.c: In function ‘md_apply_fix’:
gas/config/tc-loongarch.c:1886:7: error: a label can only be part of a statement and a declaration is not a statement
unsigned int subtype;
^
* config/tc-loongarch.c (md_apply_fix <BFD_RELOC_LARCH_CFA>):
Avoid gcc-4.9 error.
@@ -1883,6 +1883,7 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
break;
case BFD_RELOC_LARCH_CFA:
+ {
unsigned int subtype;
fragS *opfrag = (fragS *) fixP->fx_frag->fr_opcode;
subtype = bfd_get_8 (NULL, opfrag->fr_literal + fixP->fx_where);
@@ -1947,6 +1948,7 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
if (fixP->fx_addsy == NULL)
fixP->fx_done = 1;
+ }
break;
case BFD_RELOC_LARCH_B16: