mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-07 13:39:43 +08:00
PPC: drop redundant value conversion from md_assemble()
Just ahead of the enclosing OBJ_ELF conditional the exact same conversion was already carried out, with "val" not further changed in between.
This commit is contained in:
parent
2651a59dd6
commit
ec6b5cbcff
@ -3516,13 +3516,6 @@ md_assemble (char *str)
|
|||||||
char *orig_str = str;
|
char *orig_str = str;
|
||||||
bfd_reloc_code_real_type reloc = ppc_elf_suffix (&str, &ex);
|
bfd_reloc_code_real_type reloc = ppc_elf_suffix (&str, &ex);
|
||||||
|
|
||||||
if (ex.X_op == O_constant)
|
|
||||||
{
|
|
||||||
val = ex.X_add_number;
|
|
||||||
if (sizeof (ex.X_add_number) < sizeof (val)
|
|
||||||
&& (ex.X_add_number < 0) != ex.X_extrabit)
|
|
||||||
val = val ^ ((addressT) -1 ^ (uint64_t) -1);
|
|
||||||
}
|
|
||||||
if (reloc != BFD_RELOC_NONE)
|
if (reloc != BFD_RELOC_NONE)
|
||||||
switch (reloc)
|
switch (reloc)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user