gas: Silence GCC 10 warning on tc-v850.c

PR gas/26044
	* config/tc-v850.c (md_convert_frag): Replace fragP->fr_literal
	with &fragP->fr_literal[0].
This commit is contained in:
H.J. Lu 2020-05-26 06:56:18 -07:00
parent e67e940f5d
commit 70b1b570bf
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
PR gas/26044
* config/tc-v850.c (md_convert_frag): Replace fragP->fr_literal
with &fragP->fr_literal[0].
2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
PR gas/26044

View File

@ -1705,7 +1705,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNUSED,
else if (fragP->fr_subtype == SUBYPTE_LOOP_16_22 + 1)
{
unsigned char * buffer =
(unsigned char *) (fragP->fr_fix + fragP->fr_literal);
(unsigned char *) (fragP->fr_fix + &fragP->fr_literal[0]);
int loop_reg = (buffer[0] & 0x1f);
/* Add -1.reg. */
@ -1743,7 +1743,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNUSED,
|| fragP->fr_subtype == SUBYPTE_SA_9_17_22_32 + 1)
{
unsigned char *buffer =
(unsigned char *) (fragP->fr_fix + fragP->fr_literal);
(unsigned char *) (fragP->fr_fix + &fragP->fr_literal[0]);
buffer[0] &= 0x0f; /* Use condition. */
buffer[0] |= 0xe0;