gas: Silence GCC 10 warning tc-vax.c
[deliverable/binutils-gdb.git] / gas / config / tc-vax.c
index 5634566945b821a2239ee776f37e3fd4a46db5bf..f606c157bc7a931c7739d3d4315971aa7978e223 100644 (file)
@@ -381,7 +381,7 @@ md_estimate_size_before_relax (fragS *fragP, segT segment)
          int old_fr_fix;
 
          old_fr_fix = fragP->fr_fix;
-         p = fragP->fr_literal + old_fr_fix;
+         p = &fragP->fr_literal[0] + old_fr_fix;
 #ifdef OBJ_ELF
          /* If this is to an undefined symbol, then if it's an indirect
             reference indicate that is can mutated into a GLOB_DAT or
@@ -525,7 +525,7 @@ md_convert_frag (bfd *headers ATTRIBUTE_UNUSED,
 
   know (fragP->fr_type == rs_machine_dependent);
   where = fragP->fr_fix;
-  addressP = fragP->fr_literal + where;
+  addressP = &fragP->fr_literal[0] + where;
   opcodeP = fragP->fr_opcode;
   symbolP = fragP->fr_symbol;
   know (symbolP);
This page took 0.035333 seconds and 4 git commands to generate.